結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,516 KB
testcase_01 AC 71 ms
71,384 KB
testcase_02 AC 72 ms
71,584 KB
testcase_03 AC 71 ms
71,460 KB
testcase_04 AC 70 ms
71,136 KB
testcase_05 AC 71 ms
71,288 KB
testcase_06 AC 70 ms
71,404 KB
testcase_07 AC 71 ms
71,452 KB
testcase_08 AC 69 ms
71,452 KB
testcase_09 AC 70 ms
71,484 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 70 ms
71,344 KB
testcase_13 AC 70 ms
71,460 KB
testcase_14 AC 70 ms
71,400 KB
testcase_15 AC 70 ms
71,284 KB
testcase_16 AC 70 ms
71,384 KB
testcase_17 WA -
testcase_18 AC 70 ms
71,348 KB
testcase_19 AC 69 ms
71,356 KB
testcase_20 AC 70 ms
71,356 KB
testcase_21 AC 69 ms
71,264 KB
testcase_22 AC 70 ms
71,340 KB
testcase_23 AC 71 ms
71,404 KB
testcase_24 AC 69 ms
71,144 KB
testcase_25 WA -
testcase_26 AC 70 ms
71,180 KB
testcase_27 AC 70 ms
71,460 KB
testcase_28 AC 70 ms
71,660 KB
testcase_29 AC 76 ms
75,832 KB
testcase_30 AC 73 ms
75,852 KB
testcase_31 AC 69 ms
71,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


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

print(ans)
0