結果
問題 |
No.176 2種類の切手
|
ユーザー |
![]() |
提出日時 | 2023-11-30 00:48:34 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 180 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 57,856 KB |
最終ジャッジ日時 | 2024-09-26 13:46:32 |
合計ジャッジ時間 | 2,740 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 4 |
ソースコード
A, B, T = map(int, input().split()) ans = 10 ** 18 now = 0 while T - now * B >= 0 and now <= A: ans = min(ans, (T - now * B + A - 1)//A*A + now * B) now += 1 print(ans)