結果
| 問題 | No.176 2種類の切手 |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-11-30 00:54:38 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 1,000 ms |
| + 365µs | |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 253 ms |
| コンパイル使用メモリ | 96,208 KB |
| 実行使用メモリ | 82,688 KB |
| 最終ジャッジ日時 | 2026-09-04 21:02:23 |
| 合計ジャッジ時間 | 4,390 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
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, (T + B - 1)//B*B))
rlangevin