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