/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.0 MiB
#2 Accepted 15ms 2.938 MiB
#3 Accepted 16ms 3.066 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-11-11 03:37:18
Judged By
Score
100
Total Time
16ms
Peak Memory
3.066 MiB