프로그램/코딩테스트

삼성 Expert 14178 1차원 정원

차보루타 2022. 6. 13. 19:44
import math
count = 0
 
for _ in range(int(input())):
    N, D = map(int, input().split())
 
    count += 1
 
    num = 1 + D * 2
 
    print(f'#{count} {math.ceil(N/num)}')​
저작자표시 비영리 변경금지 (새창열림)