/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.094 MiB
#2 Wrong Answer 35ms 4.23 MiB
#3 Time Exceeded ≥1001ms ≥4.297 MiB

Code

#Lu Football Matches
t = int(input())
for i in range(t):
    n = int(input())
    lst = []
    for j in range(1,n):
        lst.append(j)
    add = sum(lst)
    ans = add + 1
    if n == 1:
        print(0)
    else:
        print(ans)

Information

Submit By
Type
Submission
Problem
P1026 LUFA cup 2024
Contest
Brain booster #2
Language
Python 3 (Python 3.12.3)
Submit At
2024-03-06 13:41:46
Judged At
2024-11-11 03:42:14
Judged By
Score
10
Total Time
≥1001ms
Peak Memory
≥4.297 MiB