/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 12ms 2.688 MiB
#2 Accepted 13ms 2.758 MiB
#3 Accepted 12ms 2.652 MiB

Code

def odd_numbers(n):
    return (n + 1) // 2

def main():
    t = int(input().strip())
    for i in range(t):
        n = int(input().strip())
        result = odd_numbers(n)
        print(result)

if __name__ == "__main__":
    main()

Information

Submit By
Type
Submission
Problem
P1041 Odd number
Contest
TLE_Headquarters - round #1
Language
Python 3 (Python 3.12.3)
Submit At
2024-03-27 18:08:03
Judged At
2024-03-27 18:08:03
Judged By
Score
100
Total Time
13ms
Peak Memory
2.758 MiB