/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.023 MiB
#2 Accepted 16ms 3.004 MiB
#3 Accepted 547ms 3.613 MiB
#4 Accepted 561ms 3.895 MiB

Code

for i in range(int(input())):
    x = int(input())
    if x % 2 == 0:
        print(int(x / 2) - 1)
    else:
        print(int(x / 2))
  

Information

Submit By
Type
Submission
Problem
P1073 Pair Sum
Language
Python 3 (Python 3.12.3)
Submit At
2024-08-20 16:27:39
Judged At
2024-11-11 03:06:47
Judged By
Score
100
Total Time
561ms
Peak Memory
3.895 MiB