結果

問題 No.2681 ゲームセンターの両替
ユーザー mymelochanmymelochan
提出日時 2024-03-20 21:12:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 629 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 56,064 KB
最終ジャッジ日時 2024-04-15 10:11:38
合計ジャッジ時間 2,236 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
55,280 KB
testcase_01 AC 46 ms
54,412 KB
testcase_02 AC 45 ms
55,048 KB
testcase_03 AC 45 ms
54,968 KB
testcase_04 AC 45 ms
55,740 KB
testcase_05 AC 45 ms
54,804 KB
testcase_06 AC 45 ms
54,624 KB
testcase_07 AC 45 ms
55,304 KB
testcase_08 AC 46 ms
56,064 KB
testcase_09 AC 46 ms
55,108 KB
testcase_10 AC 45 ms
55,004 KB
testcase_11 AC 45 ms
54,640 KB
testcase_12 AC 45 ms
55,328 KB
testcase_13 AC 44 ms
54,508 KB
testcase_14 AC 45 ms
54,792 KB
testcase_15 AC 46 ms
54,848 KB
testcase_16 AC 45 ms
55,876 KB
testcase_17 AC 44 ms
55,476 KB
testcase_18 AC 45 ms
55,144 KB
testcase_19 AC 46 ms
54,720 KB
testcase_20 AC 45 ms
54,396 KB
testcase_21 AC 47 ms
55,052 KB
testcase_22 AC 45 ms
55,552 KB
testcase_23 AC 45 ms
55,160 KB
testcase_24 AC 46 ms
54,172 KB
testcase_25 AC 46 ms
55,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#############################################################

import sys
sys.setrecursionlimit(10**7)

from heapq import heappop,heappush
from collections import deque,defaultdict,Counter
from bisect import bisect_left, bisect_right
from itertools import product,combinations,permutations

ipt = sys.stdin.readline

def iin():
    return int(ipt())
def lmin():
    return list(map(int,ipt().split()))

MOD = 998244353
#############################################################

C,Y = lmin()
Y = Y//100
if Y < C:
    print("can't exchange")
elif Y%5 >= C:
    print("no exchange")
else:
    D = C-Y%5
    print(Y%5+(D+4)//5*5)
0