Submission #2927364

Source Code Expand

Copy
n,m=map(int,raw_input().split())
from fractions import gcd
g=gcd(n,m)
print m-g

Submission Info

Submission Time
Task D - Bus Tour
User naoya_t
Language Python2 (2.7.6)
Score 300
Code Size 82 Byte
Status
Exec Time 32 ms
Memory 4388 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt, sample_03.txt
All 300 / 300 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 32 ms 4388 KB
sample_02.txt 19 ms 4004 KB
sample_03.txt 19 ms 4004 KB
subtask_1_1.txt 19 ms 4004 KB
subtask_1_10.txt 20 ms 4004 KB
subtask_1_11.txt 19 ms 4004 KB
subtask_1_12.txt 19 ms 4004 KB
subtask_1_13.txt 19 ms 4004 KB
subtask_1_14.txt 19 ms 4004 KB
subtask_1_15.txt 19 ms 4004 KB
subtask_1_16.txt 19 ms 4004 KB
subtask_1_17.txt 20 ms 4004 KB
subtask_1_18.txt 20 ms 4004 KB
subtask_1_19.txt 20 ms 4004 KB
subtask_1_2.txt 20 ms 4004 KB
subtask_1_20.txt 19 ms 4004 KB
subtask_1_21.txt 20 ms 4004 KB
subtask_1_22.txt 19 ms 4004 KB
subtask_1_23.txt 19 ms 4004 KB
subtask_1_24.txt 19 ms 4004 KB
subtask_1_25.txt 19 ms 4004 KB
subtask_1_3.txt 19 ms 4004 KB
subtask_1_4.txt 19 ms 4004 KB
subtask_1_5.txt 19 ms 4004 KB
subtask_1_6.txt 19 ms 4004 KB
subtask_1_7.txt 19 ms 4004 KB
subtask_1_8.txt 20 ms 4004 KB
subtask_1_9.txt 19 ms 4004 KB