Stay Hungry Stay Foolish

SWEA

[SWEA] 13218. 조별과제 (Python/D3)

dev스카이 2024. 10. 20. 14:09

[문제 링크] 👇

 

SW Expert Academy

SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!

swexpertacademy.com

 


 

풀이

최대 3개의 조이므로 학생 수를 3으로 나누면 된다.

 

 

Solution

test_case = int(input())
for tc in range(1, test_case + 1):
    n = int(input()) #학생 수
    result = 0
    print("#%d %d" %(tc, int(n / 3)))