結果

問題 No.176 2種類の切手
ユーザー None
提出日時 2021-05-01 00:52:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 57,728 KB
最終ジャッジ日時 2024-07-19 04:50:10
合計ジャッジ時間 2,610 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,T=map(int, input().split())
res=float("inf")
for y in range(min(A+1,T//B+1)):
    res=min(res,A*((T-B*y-1)//A+1)+B*y)
print(res)
0