/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 14ms 3.062 MiB
#2 Wrong Answer 15ms 3.09 MiB
#3 Accepted 14ms 3.094 MiB
#4 Wrong Answer 15ms 3.125 MiB
#5 Wrong Answer 67ms 3.184 MiB
#6 Accepted 67ms 3.148 MiB
#7 Wrong Answer 65ms 3.145 MiB
#8 Wrong Answer 67ms 3.152 MiB

Code

t=int(input())
for x in range(t):
    n=int(input())
    if n%2==0:
        print(n//2)
    else:
        lcm=1
        for j in (3,n-1,2):
            if n%j==0:
                lcm=j
                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 17:54:49
Judged At
2024-10-03 13:47:46
Judged By
Score
25
Total Time
67ms
Peak Memory
3.184 MiB