Submission #17408031


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 68 Byte
Status
Exec Time 27 ms
Memory 8904 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 19 ms 8736 KB
sample_02.txt 17 ms 8752 KB
sample_03.txt 20 ms 8720 KB
subtask_1_1.txt 27 ms 8660 KB
subtask_1_10.txt 18 ms 8620 KB
subtask_1_11.txt 18 ms 8720 KB
subtask_1_12.txt 17 ms 8660 KB
subtask_1_13.txt 18 ms 8756 KB
subtask_1_14.txt 19 ms 8764 KB
subtask_1_15.txt 25 ms 8772 KB
subtask_1_16.txt 19 ms 8724 KB
subtask_1_17.txt 26 ms 8904 KB
subtask_1_18.txt 20 ms 8664 KB
subtask_1_19.txt 22 ms 8660 KB
subtask_1_2.txt 24 ms 8656 KB
subtask_1_20.txt 18 ms 8756 KB
subtask_1_21.txt 18 ms 8720 KB
subtask_1_22.txt 21 ms 8660 KB
subtask_1_23.txt 24 ms 8876 KB
subtask_1_24.txt 17 ms 8724 KB
subtask_1_25.txt 18 ms 8728 KB
subtask_1_3.txt 26 ms 8652 KB
subtask_1_4.txt 19 ms 8660 KB
subtask_1_5.txt 18 ms 8724 KB
subtask_1_6.txt 21 ms 8724 KB
subtask_1_7.txt 17 ms 8724 KB
subtask_1_8.txt 19 ms 8656 KB
subtask_1_9.txt 23 ms 8664 KB