/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.02 MiB
#2 Accepted 87ms 3.133 MiB
#3 Time Exceeded ≥1089ms ≥3.062 MiB
#4 Time Exceeded ≥1092ms ≥2.957 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-11-11 03:14:32
Judged By
Score
40
Total Time
≥1092ms
Peak Memory
≥3.133 MiB