백준 5346번: Frodo Sequence #Python

ColorlessDia·2024년 3월 11일

algorithm/baekjoon

목록 보기
111/808
import sys
from math import ceil

while True:
    n = int(sys.stdin.readline())

    if n == 0:
        break

    print(ceil(n / 2))

0개의 댓글