結果

問題 No.176 2種類の切手
ユーザー qibqib
提出日時 2022-12-31 03:50:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 175 bytes
コンパイル時間 662 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 76,156 KB
最終ジャッジ日時 2023-08-17 07:29:48
合計ジャッジ時間 4,174 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,632 KB
testcase_01 AC 71 ms
71,644 KB
testcase_02 AC 72 ms
71,324 KB
testcase_03 WA -
testcase_04 AC 73 ms
71,436 KB
testcase_05 WA -
testcase_06 AC 73 ms
71,352 KB
testcase_07 AC 73 ms
71,320 KB
testcase_08 AC 72 ms
71,464 KB
testcase_09 AC 72 ms
71,360 KB
testcase_10 AC 73 ms
71,480 KB
testcase_11 AC 73 ms
71,456 KB
testcase_12 WA -
testcase_13 AC 74 ms
71,152 KB
testcase_14 AC 75 ms
71,452 KB
testcase_15 WA -
testcase_16 AC 74 ms
71,504 KB
testcase_17 AC 75 ms
71,312 KB
testcase_18 AC 75 ms
71,472 KB
testcase_19 WA -
testcase_20 AC 74 ms
71,504 KB
testcase_21 AC 75 ms
71,608 KB
testcase_22 AC 75 ms
71,304 KB
testcase_23 AC 74 ms
71,632 KB
testcase_24 AC 71 ms
71,656 KB
testcase_25 AC 73 ms
71,316 KB
testcase_26 AC 72 ms
71,320 KB
testcase_27 AC 74 ms
71,396 KB
testcase_28 AC 72 ms
71,508 KB
testcase_29 AC 76 ms
76,000 KB
testcase_30 AC 75 ms
76,156 KB
testcase_31 AC 70 ms
71,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, t = map(int, input().split())

ans = 1 << 60
for y in range(min((t + b - 1) // b, a - 1) + 1):
  x = (t - b * y + a - 1) // a
  ans = min(ans, a * x + b * y)

print(ans)
0