結果

問題 No.894 二種類のバス
ユーザー 👑 KazunKazun
提出日時 2020-06-12 14:42:33
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 106 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 71,780 KB
最終ジャッジ日時 2023-09-06 09:13:41
合計ジャッジ時間 3,458 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,400 KB
testcase_01 AC 74 ms
71,780 KB
testcase_02 AC 74 ms
71,392 KB
testcase_03 AC 80 ms
71,200 KB
testcase_04 AC 75 ms
71,212 KB
testcase_05 AC 76 ms
71,508 KB
testcase_06 AC 74 ms
71,756 KB
testcase_07 AC 75 ms
71,572 KB
testcase_08 AC 74 ms
71,364 KB
testcase_09 AC 74 ms
71,460 KB
testcase_10 AC 75 ms
71,672 KB
testcase_11 AC 72 ms
71,360 KB
testcase_12 AC 74 ms
71,216 KB
testcase_13 AC 73 ms
71,572 KB
testcase_14 AC 72 ms
71,508 KB
testcase_15 AC 75 ms
71,516 KB
testcase_16 AC 75 ms
71,296 KB
testcase_17 AC 74 ms
71,412 KB
testcase_18 AC 74 ms
71,212 KB
testcase_19 AC 73 ms
71,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
T,A,B=map(int,input().split())
L=(A//gcd(A,B))*B

print((T-1)//A+(T-1)//B-(T-1)//L+1)
0