結果
| 問題 |
No.176 2種類の切手
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-11-16 14:36:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 135 bytes |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 81,664 KB |
| 実行使用メモリ | 57,344 KB |
| 最終ジャッジ日時 | 2024-11-16 14:36:37 |
| 合計ジャッジ時間 | 2,410 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
ソースコード
A,B,T=map(int,input().split())
a=A*B*T
for i in range(min(A,(T+B-1)//B)+1):
if T-B*i>=0:
a=min(a,B*i+((T-B*i+A-1)//A)*A)
print(a)
sasa8uyauya