/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.125 MiB
#2 Wrong Answer 17ms 3.133 MiB
#3 Accepted 16ms 3.027 MiB
#4 Wrong Answer 67ms 3.121 MiB
#5 Time Exceeded ≥1094ms ≥3.09 MiB
#6 Time Exceeded ≥1089ms ≥3.102 MiB
#7 Time Exceeded ≥1089ms ≥3.012 MiB
#8 Time Exceeded ≥1079ms ≥3.113 MiB

Code

t=int(input())
for x in range(t):
    n=int(input())
    if n%2==0:
        print(n//2)
    else:
        lcm=1
        for i in range(2,n):
            if n%i==0:
                lcm=i
                break
        print(lcm)
		

Information

Submit By
Type
Submission
Problem
P1052 Yet Another Array Partition
Contest
Brain Booster #3
Language
Python 3 (Python 3.12.3)
Submit At
2024-05-06 15:55:41
Judged At
2024-10-03 13:51:07
Judged By
Score
10
Total Time
≥1094ms
Peak Memory
≥3.133 MiB