結果

問題 No.2681 ゲームセンターの両替
ユーザー 👑 rin204rin204
提出日時 2024-03-03 14:51:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 82,264 KB
実行使用メモリ 53,296 KB
最終ジャッジ日時 2024-04-15 10:11:03
合計ジャッジ時間 2,122 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
51,908 KB
testcase_01 AC 39 ms
52,364 KB
testcase_02 AC 38 ms
53,292 KB
testcase_03 AC 39 ms
52,124 KB
testcase_04 AC 39 ms
52,504 KB
testcase_05 AC 39 ms
52,400 KB
testcase_06 AC 38 ms
53,296 KB
testcase_07 AC 40 ms
52,368 KB
testcase_08 AC 40 ms
52,552 KB
testcase_09 AC 38 ms
52,556 KB
testcase_10 AC 38 ms
52,048 KB
testcase_11 AC 38 ms
52,168 KB
testcase_12 AC 39 ms
52,168 KB
testcase_13 AC 39 ms
53,240 KB
testcase_14 AC 38 ms
52,772 KB
testcase_15 AC 39 ms
52,316 KB
testcase_16 AC 38 ms
53,036 KB
testcase_17 AC 39 ms
52,436 KB
testcase_18 AC 40 ms
53,136 KB
testcase_19 AC 38 ms
53,220 KB
testcase_20 AC 38 ms
52,824 KB
testcase_21 AC 39 ms
51,944 KB
testcase_22 AC 38 ms
53,012 KB
testcase_23 AC 38 ms
53,072 KB
testcase_24 AC 39 ms
52,216 KB
testcase_25 AC 39 ms
52,492 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:
    c += (y - c) % 5
    print(c)
0