結果

問題 No.176 2種類の切手
ユーザー ckawatak
提出日時 2017-09-23 19:10:43
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 176 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,728 KB
実行使用メモリ 60,732 KB
最終ジャッジ日時 2024-11-14 04:21:11
合計ジャッジ時間 11,465 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,T = list(map(int, input().split(' ')))

tmin = float('inf')
for y in range(A+1):
    if y*B <= T+B:
        tmin = min(tmin, y*B + int((T-y*B + A-1)/A)*A)
print(int(tmin))
0