/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 12ms 2.789 MiB
#2 Accepted 35ms 2.875 MiB
#3 Accepted 112ms 2.879 MiB

Code

t = int(input())
for _ in range(t):
    n = int(input())
    ans = 0
    for i in range(1,n+1):
        if(i%2):
            ans += 1
    print(ans)

Information

Submit By
Type
Submission
Problem
P1041 Odd number
Language
Python 3 (Python 3.12.3)
Submit At
2024-03-24 08:34:53
Judged At
2024-03-24 08:34:53
Judged By
Score
100
Total Time
112ms
Peak Memory
2.879 MiB