結果
| 問題 |
No.176 2種類の切手
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-11-30 00:53:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 192 bytes |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 58,112 KB |
| 最終ジャッジ日時 | 2024-09-26 13:46:36 |
| 合計ジャッジ時間 | 2,758 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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(min(ans, now*B))
rlangevin