結果

問題 No.415 ぴょん
ユーザー kohei2019kohei2019
提出日時 2022-01-23 13:17:05
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 86 bytes
コンパイル時間 2,174 ms
コンパイル使用メモリ 86,704 KB
実行使用メモリ 71,632 KB
最終ジャッジ日時 2023-08-19 17:55:00
合計ジャッジ時間 6,283 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,632 KB
testcase_01 AC 76 ms
71,564 KB
testcase_02 AC 77 ms
71,348 KB
testcase_03 AC 77 ms
71,388 KB
testcase_04 AC 76 ms
71,512 KB
testcase_05 AC 77 ms
71,412 KB
testcase_06 AC 76 ms
71,544 KB
testcase_07 AC 78 ms
71,516 KB
testcase_08 AC 77 ms
71,532 KB
testcase_09 AC 77 ms
71,180 KB
testcase_10 AC 77 ms
71,068 KB
testcase_11 AC 79 ms
71,412 KB
testcase_12 AC 75 ms
71,392 KB
testcase_13 AC 77 ms
71,508 KB
testcase_14 AC 76 ms
71,392 KB
testcase_15 AC 74 ms
71,272 KB
testcase_16 AC 75 ms
71,068 KB
testcase_17 AC 73 ms
71,184 KB
testcase_18 AC 75 ms
71,288 KB
testcase_19 AC 74 ms
71,224 KB
testcase_20 AC 73 ms
71,068 KB
testcase_21 AC 73 ms
71,212 KB
testcase_22 AC 77 ms
71,360 KB
testcase_23 AC 76 ms
71,396 KB
testcase_24 AC 75 ms
71,436 KB
testcase_25 AC 75 ms
71,596 KB
testcase_26 AC 75 ms
71,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N,D = map(int,input().split())
gcd = math.gcd(N,D)
ii = N//gcd-1
print(ii)
0