Submission #18573130


Source Code Expand

Copy
import sys
from math import gcd

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

x = 1
for n in range(1, 31):
    x = x // gcd(x, n) * n

print(x + 1)

Submission Info

Submission Time
Task A - Redundant Redundancy
User maspy
Language Python (3.8.2)
Score 300
Code Size 219 Byte
Status AC
Exec Time 23 ms
Memory 9096 KB

Judge Result

Set Name All Sample
Score / Max Score 300 / 300 0 / 0
Status
AC × 18
AC × 2
Set Name Test Cases
All sample_01.txt, sample_02.txt, testcase_1.txt, testcase_10.txt, testcase_11.txt, testcase_12.txt, testcase_13.txt, testcase_14.txt, testcase_15.txt, testcase_16.txt, testcase_2.txt, testcase_3.txt, testcase_4.txt, testcase_5.txt, testcase_6.txt, testcase_7.txt, testcase_8.txt, testcase_9.txt
Sample sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
sample_01.txt AC 18 ms 9036 KB
sample_02.txt AC 21 ms 8904 KB
testcase_1.txt AC 17 ms 8900 KB
testcase_10.txt AC 18 ms 8960 KB
testcase_11.txt AC 21 ms 8960 KB
testcase_12.txt AC 17 ms 9096 KB
testcase_13.txt AC 19 ms 8884 KB
testcase_14.txt AC 16 ms 8956 KB
testcase_15.txt AC 23 ms 9028 KB
testcase_16.txt AC 20 ms 9028 KB
testcase_2.txt AC 22 ms 8800 KB
testcase_3.txt AC 18 ms 8908 KB
testcase_4.txt AC 17 ms 8960 KB
testcase_5.txt AC 22 ms 9092 KB
testcase_6.txt AC 18 ms 8908 KB
testcase_7.txt AC 21 ms 8800 KB
testcase_8.txt AC 19 ms 8904 KB
testcase_9.txt AC 18 ms 8796 KB