/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.07 MiB
#2 Accepted 101ms 3.117 MiB
#3 Time Exceeded ≥1095ms ≥2.973 MiB
#4 Time Exceeded ≥1071ms ≥3.07 MiB

Code

T=int(input())
for i in range(T):
    N=int(input())
    count=0
    a=int(N//2)
    for i in range(1,a+1):
        for j in range(a+1,N):
            if (i+j==N):
                count=count+1
    print(count)

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 16:34:53
Judged At
2024-10-03 13:26:40
Judged By
Score
40
Total Time
≥1095ms
Peak Memory
≥3.117 MiB