結果

問題 No.176 2種類の切手
ユーザー ckawatakckawatak
提出日時 2017-09-23 19:21:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 785 ms / 1,000 ms
コード長 192 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,072 KB
実行使用メモリ 59,048 KB
最終ジャッジ日時 2024-04-26 15:40:31
合計ジャッジ時間 4,778 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,648 KB
testcase_01 AC 34 ms
52,448 KB
testcase_02 AC 34 ms
52,640 KB
testcase_03 AC 33 ms
52,068 KB
testcase_04 AC 32 ms
52,568 KB
testcase_05 AC 33 ms
51,556 KB
testcase_06 AC 35 ms
52,100 KB
testcase_07 AC 36 ms
51,864 KB
testcase_08 AC 36 ms
51,848 KB
testcase_09 AC 35 ms
52,488 KB
testcase_10 AC 36 ms
52,760 KB
testcase_11 AC 36 ms
53,356 KB
testcase_12 AC 34 ms
52,620 KB
testcase_13 AC 36 ms
53,120 KB
testcase_14 AC 36 ms
51,624 KB
testcase_15 AC 37 ms
52,560 KB
testcase_16 AC 36 ms
52,096 KB
testcase_17 AC 35 ms
52,376 KB
testcase_18 AC 35 ms
53,364 KB
testcase_19 AC 37 ms
52,420 KB
testcase_20 AC 37 ms
51,944 KB
testcase_21 AC 785 ms
59,048 KB
testcase_22 AC 767 ms
58,116 KB
testcase_23 AC 649 ms
57,704 KB
testcase_24 AC 36 ms
52,596 KB
testcase_25 AC 36 ms
52,788 KB
testcase_26 AC 446 ms
57,328 KB
testcase_27 AC 35 ms
52,168 KB
testcase_28 AC 33 ms
52,692 KB
testcase_29 AC 40 ms
58,180 KB
testcase_30 AC 40 ms
57,912 KB
testcase_31 AC 36 ms
52,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

tmin = (T + B-1)//B * B
for i in range(0, T+1, B):
    if T < tmin:
        t = i + (T-i + A-1)//A * A
        tmin = min(tmin, t)
print(int(tmin))
0