/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Wrong Answer 20ms 3.082 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 12, in <module> ValueError: min() iterable argument is empty 50ms 4.965 MiB
#3 Wrong Answer 77ms 4.863 MiB
#4 Accepted 78ms 4.969 MiB
#5 Wrong Answer 92ms 4.816 MiB
#6 Wrong Answer 131ms 4.738 MiB
#7 Wrong Answer 215ms 5.145 MiB
#8 Wrong Answer 1824ms 8.945 MiB
#9 Wrong Answer 1836ms 12.355 MiB
#10 Wrong Answer 1742ms 12.793 MiB
#11 Wrong Answer 1845ms 12.918 MiB
#12 Wrong Answer 1909ms 12.977 MiB
#13 Wrong Answer 266ms 12.863 MiB
#14 Time Exceeded ≥4049ms ≥12.977 MiB
#15 Time Exceeded ≥4030ms ≥12.887 MiB
#16 Time Exceeded ≥4020ms ≥12.781 MiB
#17 Time Exceeded ≥4045ms ≥4.113 MiB
#18 Time Exceeded ≥4090ms ≥3.535 MiB

Code

t=int(input())
for x in range(t):
    n,y=map(int,input().split())
    li=list(map(int,input().split()))
    res=[]
    for i in range(2,y+1):
        high=0
        for j in li:
            if j%i==0:
                high+=j
        res.append(high)
    print(res.index(min(res))+1)


Information

Submit By
Type
Submission
Problem
P1039 Prince Roy, the undisputed ruler of the world
Contest
Brain Booster #3
Language
Python 3 (Python 3.12.3)
Submit At
2024-05-06 17:40:52
Judged At
2024-10-03 13:48:11
Judged By
Score
5
Total Time
4090ms
Peak Memory
12.977 MiB