/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 1, in <module> ValueError: not enough values to unpack (expected 2, got 1) 14ms 3.117 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 1, in <module> ValueError: not enough values to unpack (expected 2, got 1) 14ms 3.062 MiB
#3 Runtime Error Traceback (most recent call last): File "foo.py", line 1, in <module> ValueError: not enough values to unpack (expected 2, got 1) 14ms 3.102 MiB

Code

a, b = map(int, input("").split())
for n in range(1, 1000):
    if a % n == 0 and b % n == 0 and n != 1:
        print(n)
    elif a % n != 0 and b % n != 0 and n != 1:
        print(-1)
        break

Information

Submit By
Type
Submission
Problem
P1011 LCD
Contest
Brain booster - 1
Language
Python 3 (Python 3.12.3)
Submit At
2023-12-31 15:08:55
Judged At
2024-10-03 14:05:42
Judged By
Score
0
Total Time
14ms
Peak Memory
3.117 MiB