Submission #18573876
Source Code Expand
Copy
import math#最大公約数def lcm(x, y):return (x * y) // math.gcd(x, y)temp = 1N = int(input())for i in range(2,N+1):temp = lcm(temp,i)print(temp +1)
import math #最大公約数 def lcm(x, y): return (x * y) // math.gcd(x, y) temp = 1 N = int(input()) for i in range(2,N+1): temp = lcm(temp,i) print(temp +1)
Submission Info
Submission Time | |
---|---|
Task | A - Redundant Redundancy |
User | H20 |
Language | Python (3.8.2) |
Score | 300 |
Code Size | 177 Byte |
Status | AC |
Exec Time | 25 ms |
Memory | 9152 KB |
Judge Result
Set Name | All | Sample | ||||
---|---|---|---|---|---|---|
Score / Max Score | 300 / 300 | 0 / 0 | ||||
Status |
|
|
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 | 23 ms | 8860 KB |
sample_02.txt | AC | 21 ms | 8860 KB |
testcase_1.txt | AC | 24 ms | 8852 KB |
testcase_10.txt | AC | 25 ms | 9152 KB |
testcase_11.txt | AC | 18 ms | 9124 KB |
testcase_12.txt | AC | 17 ms | 8856 KB |
testcase_13.txt | AC | 19 ms | 8852 KB |
testcase_14.txt | AC | 20 ms | 8960 KB |
testcase_15.txt | AC | 17 ms | 9032 KB |
testcase_16.txt | AC | 18 ms | 8860 KB |
testcase_2.txt | AC | 17 ms | 9020 KB |
testcase_3.txt | AC | 19 ms | 8864 KB |
testcase_4.txt | AC | 21 ms | 8972 KB |
testcase_5.txt | AC | 18 ms | 9016 KB |
testcase_6.txt | AC | 20 ms | 9032 KB |
testcase_7.txt | AC | 17 ms | 8860 KB |
testcase_8.txt | AC | 24 ms | 9012 KB |
testcase_9.txt | AC | 17 ms | 8856 KB |