結果

問題 No.2681 ゲームセンターの両替
ユーザー 👑 hitonanodehitonanode
提出日時 2024-04-05 00:12:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2024-04-05 00:12:18
合計ジャッジ時間 2,051 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,856 KB
testcase_01 AC 27 ms
9,856 KB
testcase_02 AC 28 ms
9,856 KB
testcase_03 AC 28 ms
9,856 KB
testcase_04 WA -
testcase_05 AC 27 ms
9,856 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 27 ms
9,856 KB
testcase_09 WA -
testcase_10 AC 27 ms
9,856 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 27 ms
9,856 KB
testcase_14 AC 28 ms
9,856 KB
testcase_15 AC 27 ms
9,856 KB
testcase_16 AC 32 ms
9,856 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 27 ms
9,856 KB
testcase_21 AC 27 ms
9,856 KB
testcase_22 AC 27 ms
9,856 KB
testcase_23 AC 27 ms
9,856 KB
testcase_24 AC 27 ms
9,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

C, Y = map(int, input().split())

n100 = Y % 500 // 100

if n100 >= C:
    print("no exchange")
elif Y >= C * 100:
    print((C + 4) // 5 * 5)
else:
    print("can't exchange")
0