Submission #9807589


Source Code Expand

Copy
a,b = list(map(int, input().split()))

def gcd(a,b):
    while b:
        a, b = b, a%b
    return a

def lcm(a,b):
    return (a*b)//gcd(a,b)

print(lcm(a,b))

Submission Info

Submission Time
Task C - Snack
User koiitirou
Language PyPy3 (2.4.0)
Score 300
Code Size 169 Byte
Status
Exec Time 177 ms
Memory 38256 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt
All 300 / 300 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-small-01.txt, 01-small-02.txt, 01-small-03.txt, 02-large-01.txt, 02-large-02.txt, 02-large-03.txt, 03-coprime-01.txt, 03-coprime-02.txt, 03-coprime-03.txt, 04-multiple-01.txt, 04-multiple-02.txt, 04-multiple-03.txt, 05-corner-01.txt, 05-corner-02.txt
Case Name Status Exec Time Memory
00-sample-01.txt 169 ms 38256 KB
00-sample-02.txt 169 ms 38256 KB
00-sample-03.txt 171 ms 38256 KB
01-small-01.txt 169 ms 38256 KB
01-small-02.txt 169 ms 38256 KB
01-small-03.txt 164 ms 38256 KB
02-large-01.txt 167 ms 38256 KB
02-large-02.txt 168 ms 38256 KB
02-large-03.txt 177 ms 38256 KB
03-coprime-01.txt 171 ms 38256 KB
03-coprime-02.txt 165 ms 38256 KB
03-coprime-03.txt 169 ms 38256 KB
04-multiple-01.txt 165 ms 38256 KB
04-multiple-02.txt 166 ms 38256 KB
04-multiple-03.txt 166 ms 38256 KB
05-corner-01.txt 170 ms 38256 KB
05-corner-02.txt 173 ms 38256 KB