結果

問題 No.2681 ゲームセンターの両替
ユーザー KudeKude
提出日時 2024-03-20 22:45:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,208 KB
実行使用メモリ 53,392 KB
最終ジャッジ日時 2024-04-15 10:13:34
合計ジャッジ時間 2,223 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,204 KB
testcase_01 AC 40 ms
53,008 KB
testcase_02 AC 41 ms
52,412 KB
testcase_03 AC 39 ms
51,812 KB
testcase_04 AC 40 ms
51,884 KB
testcase_05 AC 44 ms
52,040 KB
testcase_06 AC 41 ms
53,088 KB
testcase_07 AC 40 ms
51,700 KB
testcase_08 AC 41 ms
51,824 KB
testcase_09 AC 40 ms
52,752 KB
testcase_10 AC 44 ms
52,484 KB
testcase_11 AC 39 ms
52,324 KB
testcase_12 AC 41 ms
52,740 KB
testcase_13 AC 41 ms
52,340 KB
testcase_14 AC 40 ms
51,996 KB
testcase_15 AC 41 ms
52,664 KB
testcase_16 AC 41 ms
52,976 KB
testcase_17 AC 40 ms
52,364 KB
testcase_18 AC 40 ms
52,248 KB
testcase_19 AC 41 ms
53,392 KB
testcase_20 AC 40 ms
52,012 KB
testcase_21 AC 40 ms
52,456 KB
testcase_22 AC 39 ms
53,208 KB
testcase_23 AC 40 ms
52,180 KB
testcase_24 AC 39 ms
52,076 KB
testcase_25 AC 40 ms
52,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

c, y = map(int, input().split())
y //= 100
if y < c:
    print("can't exchange")
elif y % 5 >= c:
    print("no exchange")
else:
    while c % 5 != y % 5:
        c += 1
    print(c)
0