結果

問題 No.415 ぴょん
ユーザー lllllll88938494lllllll88938494
提出日時 2023-05-26 03:19:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 63 ms / 1,000 ms
コード長 123 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 86,900 KB
実行使用メモリ 71,532 KB
最終ジャッジ日時 2023-08-26 02:08:16
合計ジャッジ時間 3,568 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,048 KB
testcase_01 AC 62 ms
71,180 KB
testcase_02 AC 61 ms
71,172 KB
testcase_03 AC 59 ms
71,504 KB
testcase_04 AC 61 ms
71,228 KB
testcase_05 AC 59 ms
71,236 KB
testcase_06 AC 60 ms
71,168 KB
testcase_07 AC 59 ms
71,408 KB
testcase_08 AC 60 ms
71,384 KB
testcase_09 AC 60 ms
71,448 KB
testcase_10 AC 59 ms
71,384 KB
testcase_11 AC 59 ms
71,532 KB
testcase_12 AC 60 ms
71,076 KB
testcase_13 AC 60 ms
71,052 KB
testcase_14 AC 61 ms
71,160 KB
testcase_15 AC 59 ms
71,056 KB
testcase_16 AC 60 ms
71,192 KB
testcase_17 AC 60 ms
71,244 KB
testcase_18 AC 61 ms
71,080 KB
testcase_19 AC 60 ms
71,200 KB
testcase_20 AC 60 ms
71,216 KB
testcase_21 AC 60 ms
71,276 KB
testcase_22 AC 59 ms
71,324 KB
testcase_23 AC 59 ms
71,384 KB
testcase_24 AC 63 ms
71,332 KB
testcase_25 AC 61 ms
71,080 KB
testcase_26 AC 62 ms
71,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,d = map(int,input().split())
def cal(x,y):
    if y == 0:
        return x
    return cal(y,x%y)


print(n//cal(n,d)-1)

0