/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.09 MiB
#2 Wrong Answer 16ms 3.035 MiB
#3 Accepted 16ms 3.023 MiB
#4 Wrong Answer 16ms 3.117 MiB

Code

from math import*
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,sqrt(n)+1,2):
            if n%j==0:
                lcm=j
                break
        print(n//lcm)

Information

Submit By
Type
Submission
Problem
P1052 Yet Another Array Partition
Language
Python 3 (Python 3.12.3)
Submit At
2024-05-07 12:34:44
Judged At
2024-11-11 03:30:54
Judged By
Score
10
Total Time
16ms
Peak Memory
3.117 MiB