/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 21ms 3.035 MiB
#2 Accepted 21ms 3.129 MiB
#3 Accepted 595ms 3.641 MiB
#4 Accepted 609ms 4.066 MiB

Code

def count_pairs(n):
    return (n - 1) // 2

t = int(input())
for _ in range(t):
    n = int(input())
    print(count_pairs(n))

Information

Submit By
Type
Submission
Problem
P1073 Pair Sum
Contest
Bangladesh 2.0
Language
Python 3 (Python 3.12.3)
Submit At
2024-08-16 15:49:04
Judged At
2024-10-03 13:29:48
Judged By
Score
100
Total Time
609ms
Peak Memory
4.066 MiB