結果
| 問題 |
No.2681 ゲームセンターの両替
|
| コンテスト | |
| ユーザー |
mymelochan
|
| 提出日時 | 2024-03-20 21:12:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 629 bytes |
| コンパイル時間 | 329 ms |
| コンパイル使用メモリ | 81,988 KB |
| 実行使用メモリ | 55,940 KB |
| 最終ジャッジ日時 | 2024-10-05 04:02:28 |
| 合計ジャッジ時間 | 1,903 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#############################################################
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)
mymelochan