Submission #19560441


Source Code Expand

Copy
import math
n=int(input())
l=1
for i in range (2,n+1):
    l=(l*i)//math.gcd(l,i)
print(l+1)

Submission Info

Submission Time
Task A - Redundant Redundancy
User coder_sounak
Language Python (3.8.2)
Score 300
Code Size 97 Byte
Status AC
Exec Time 33 ms
Memory 9144 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 32 ms 9004 KB
sample_02.txt AC 24 ms 8852 KB
testcase_1.txt AC 19 ms 9016 KB
testcase_10.txt AC 22 ms 9144 KB
testcase_11.txt AC 19 ms 8844 KB
testcase_12.txt AC 33 ms 8828 KB
testcase_13.txt AC 21 ms 8856 KB
testcase_14.txt AC 23 ms 9016 KB
testcase_15.txt AC 20 ms 9080 KB
testcase_16.txt AC 19 ms 9076 KB
testcase_2.txt AC 23 ms 9080 KB
testcase_3.txt AC 19 ms 9080 KB
testcase_4.txt AC 19 ms 8952 KB
testcase_5.txt AC 19 ms 8960 KB
testcase_6.txt AC 18 ms 8952 KB
testcase_7.txt AC 25 ms 9004 KB
testcase_8.txt AC 21 ms 9140 KB
testcase_9.txt AC 30 ms 9132 KB