Runtime Error
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-11-11 03:45:57
- Judged By
- Score
- 0
- Total Time
- 14ms
- Peak Memory
- 3.102 MiB