본문 바로가기
python-algorithm

codeforces 1335A - Candies and Two Sisters

by 무적김두칠 2022. 5. 2.

1
2
3
4
5
6
def sol(n):
    if n%2 == 0 : ans = n//2 -1
    else : ans = n//2
    return ans
for i in range(int(input())):
    print(sol(int(input())))
cs
반응형

댓글