Submission #17408047


Source Code Expand

Copy
from math import gcd
N,M=map(int,input().split());print(M-gcd(N,M))

Submission Info

Submission Time
Task D - Bus Tour
User soraie
Language Python (3.8.2)
Score 300
Code Size 68 Byte
Status
Exec Time 28 ms
Memory 9144 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 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 22 ms 9008 KB
sample_02.txt 24 ms 9032 KB
sample_03.txt 20 ms 8832 KB
subtask_1_1.txt 25 ms 9096 KB
subtask_1_10.txt 20 ms 8964 KB
subtask_1_11.txt 19 ms 9096 KB
subtask_1_12.txt 21 ms 9096 KB
subtask_1_13.txt 21 ms 8864 KB
subtask_1_14.txt 25 ms 9096 KB
subtask_1_15.txt 22 ms 9024 KB
subtask_1_16.txt 19 ms 8860 KB
subtask_1_17.txt 21 ms 8828 KB
subtask_1_18.txt 20 ms 8936 KB
subtask_1_19.txt 19 ms 8804 KB
subtask_1_2.txt 20 ms 9004 KB
subtask_1_20.txt 19 ms 8856 KB
subtask_1_21.txt 24 ms 9144 KB
subtask_1_22.txt 19 ms 9004 KB
subtask_1_23.txt 28 ms 9068 KB
subtask_1_24.txt 19 ms 9140 KB
subtask_1_25.txt 22 ms 9024 KB
subtask_1_3.txt 22 ms 8824 KB
subtask_1_4.txt 25 ms 9140 KB
subtask_1_5.txt 18 ms 8976 KB
subtask_1_6.txt 18 ms 9020 KB
subtask_1_7.txt 22 ms 9032 KB
subtask_1_8.txt 19 ms 8824 KB
subtask_1_9.txt 20 ms 9000 KB