結果

問題 No.176 2種類の切手
ユーザー ayaoniayaoni
提出日時 2020-11-29 19:49:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 75,996 KB
最終ジャッジ日時 2023-10-11 02:33:01
合計ジャッジ時間 3,990 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,380 KB
testcase_01 AC 71 ms
71,520 KB
testcase_02 AC 71 ms
71,420 KB
testcase_03 WA -
testcase_04 AC 73 ms
71,556 KB
testcase_05 WA -
testcase_06 AC 71 ms
71,280 KB
testcase_07 AC 70 ms
71,452 KB
testcase_08 AC 72 ms
71,168 KB
testcase_09 AC 72 ms
71,120 KB
testcase_10 AC 72 ms
71,176 KB
testcase_11 AC 72 ms
71,420 KB
testcase_12 WA -
testcase_13 AC 72 ms
71,420 KB
testcase_14 AC 71 ms
71,324 KB
testcase_15 WA -
testcase_16 AC 73 ms
71,320 KB
testcase_17 AC 71 ms
71,480 KB
testcase_18 AC 71 ms
71,588 KB
testcase_19 WA -
testcase_20 AC 74 ms
71,320 KB
testcase_21 AC 73 ms
71,568 KB
testcase_22 AC 72 ms
71,584 KB
testcase_23 AC 72 ms
71,280 KB
testcase_24 AC 73 ms
71,524 KB
testcase_25 AC 73 ms
71,292 KB
testcase_26 AC 74 ms
71,156 KB
testcase_27 AC 73 ms
71,320 KB
testcase_28 AC 73 ms
71,448 KB
testcase_29 AC 77 ms
75,932 KB
testcase_30 AC 76 ms
75,996 KB
testcase_31 AC 74 ms
71,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())


A,B,T = MI()
ans = 10**18
for i in range(min(T//B,A)+2):
    ans = min(ans,A*((T-B*i+A-1)//A)+B*i)

print(ans)
0