이게 왜 D3? 라는 생각이 드는 문제이다.
몫과 나머지를 계산할 줄 안다면 금방 풀린다.
T = int(input()) for testcase in range(1, T + 1): N = int(input()) answer = N // 3 print(f'#{testcase} {answer}')