/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 16ms 2.934 MiB
#2 Accepted 16ms 3.066 MiB
#3 Accepted 517ms 3.605 MiB
#4 Accepted 529ms 4.062 MiB

Code

def count(a):
    return (a - 1) // 2

def solve():
    s = int(input())
    for _ in range(s):
        a = int(input())
        print(count(a))

solve()

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:44:48
Judged At
2024-10-03 13:30:10
Judged By
Score
100
Total Time
529ms
Peak Memory
4.062 MiB