結果
問題 |
No.176 2種類の切手
|
ユーザー |
![]() |
提出日時 | 2020-11-29 19:43:24 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 198 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,252 KB |
実行使用メモリ | 59,416 KB |
最終ジャッジ日時 | 2024-09-13 02:05:01 |
合計ジャッジ時間 | 2,462 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 4 |
ソースコード
import sys def MI(): return map(int,sys.stdin.readline().rstrip().split()) A,B,T = MI() inf = 10**18 ans = inf for i in range(min(T//B,A)+1): ans = min(ans,A*((T-B*i+A-1)//A)+B*i) print(ans)