結果

問題 No.176 2種類の切手
ユーザー ckawatakckawatak
提出日時 2017-09-23 19:10:43
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 176 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,216 KB
実行使用メモリ 60,444 KB
最終ジャッジ日時 2024-04-26 15:39:51
合計ジャッジ時間 11,042 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,768 KB
testcase_01 AC 38 ms
52,712 KB
testcase_02 AC 36 ms
52,328 KB
testcase_03 TLE -
testcase_04 AC 35 ms
52,468 KB
testcase_05 AC 35 ms
52,076 KB
testcase_06 AC 37 ms
57,280 KB
testcase_07 AC 535 ms
58,460 KB
testcase_08 AC 369 ms
57,752 KB
testcase_09 TLE -
testcase_10 AC 619 ms
58,596 KB
testcase_11 AC 934 ms
58,028 KB
testcase_12 AC 91 ms
57,768 KB
testcase_13 TLE -
testcase_14 AC 103 ms
58,076 KB
testcase_15 AC 566 ms
58,480 KB
testcase_16 AC 986 ms
59,544 KB
testcase_17 AC 191 ms
57,248 KB
testcase_18 AC 36 ms
52,264 KB
testcase_19 AC 35 ms
52,436 KB
testcase_20 AC 38 ms
58,296 KB
testcase_21 AC 36 ms
53,108 KB
testcase_22 AC 36 ms
51,724 KB
testcase_23 AC 35 ms
52,076 KB
testcase_24 AC 275 ms
57,680 KB
testcase_25 AC 573 ms
58,784 KB
testcase_26 AC 36 ms
51,832 KB
testcase_27 AC 43 ms
58,476 KB
testcase_28 AC 52 ms
57,424 KB
testcase_29 AC 41 ms
59,672 KB
testcase_30 AC 45 ms
60,444 KB
testcase_31 AC 37 ms
52,152 KB
権限があれば一括ダウンロードができます

ソースコード

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