結果
| 問題 | No.176 2種類の切手 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-01 00:54:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 148 bytes |
| 記録 | |
| コンパイル時間 | 175 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 57,728 KB |
| 最終ジャッジ日時 | 2024-07-19 04:51:30 |
| 合計ジャッジ時間 | 2,338 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
ソースコード
A,B,T=map(int, input().split())
res=float("inf")
for y in range(A+1):
if B*y>T:
break
res=min(res,A*((T-B*y-1)//A+1)+B*y)
print(res)