Submission #17408037


Source Code Expand

Copy
from math import gcd
N,M=map(in,intput().split())
print(M-gcd(N,M))

Submission Info

Submission Time
Task D - Bus Tour
User soraie
Language Python (3.8.2)
Score 0
Code Size 69 Byte
Status
Exec Time 26 ms
Memory 8988 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
× 3
× 28
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_1.txt, subtask_1_10.txt, subtask_1_11.txt, subtask_1_12.txt, subtask_1_13.txt, subtask_1_14.txt, subtask_1_15.txt, subtask_1_16.txt, subtask_1_17.txt, subtask_1_18.txt, subtask_1_19.txt, subtask_1_2.txt, subtask_1_20.txt, subtask_1_21.txt, subtask_1_22.txt, subtask_1_23.txt, subtask_1_24.txt, subtask_1_25.txt, subtask_1_3.txt, subtask_1_4.txt, subtask_1_5.txt, subtask_1_6.txt, subtask_1_7.txt, subtask_1_8.txt, subtask_1_9.txt
Case Name Status Exec Time Memory
sample_01.txt 23 ms 8856 KB
sample_02.txt 24 ms 8988 KB
sample_03.txt 18 ms 8808 KB
subtask_1_1.txt 25 ms 8916 KB
subtask_1_10.txt 18 ms 8696 KB
subtask_1_11.txt 17 ms 8852 KB
subtask_1_12.txt 17 ms 8684 KB
subtask_1_13.txt 22 ms 8700 KB
subtask_1_14.txt 19 ms 8808 KB
subtask_1_15.txt 18 ms 8856 KB
subtask_1_16.txt 26 ms 8856 KB
subtask_1_17.txt 18 ms 8700 KB
subtask_1_18.txt 19 ms 8700 KB
subtask_1_19.txt 19 ms 8804 KB
subtask_1_2.txt 19 ms 8668 KB
subtask_1_20.txt 19 ms 8804 KB
subtask_1_21.txt 19 ms 8712 KB
subtask_1_22.txt 25 ms 8848 KB
subtask_1_23.txt 17 ms 8708 KB
subtask_1_24.txt 17 ms 8800 KB
subtask_1_25.txt 17 ms 8696 KB
subtask_1_3.txt 26 ms 8776 KB
subtask_1_4.txt 21 ms 8988 KB
subtask_1_5.txt 19 ms 8700 KB
subtask_1_6.txt 18 ms 8696 KB
subtask_1_7.txt 18 ms 8696 KB
subtask_1_8.txt 18 ms 8808 KB
subtask_1_9.txt 19 ms 8700 KB