結果

問題 No.1517 Party Location
ユーザー tktk
提出日時 2021-05-28 22:05:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 76,148 KB
最終ジャッジ日時 2023-09-02 04:12:09
合計ジャッジ時間 2,382 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,140 KB
testcase_01 AC 72 ms
71,168 KB
testcase_02 AC 76 ms
76,148 KB
testcase_03 AC 76 ms
76,088 KB
testcase_04 AC 75 ms
75,996 KB
testcase_05 AC 76 ms
76,004 KB
testcase_06 AC 75 ms
76,144 KB
testcase_07 AC 71 ms
71,476 KB
testcase_08 AC 74 ms
76,088 KB
testcase_09 AC 75 ms
76,036 KB
testcase_10 AC 75 ms
75,956 KB
testcase_11 AC 74 ms
76,060 KB
testcase_12 AC 71 ms
71,408 KB
testcase_13 AC 74 ms
76,072 KB
testcase_14 AC 77 ms
76,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d = int(input())
a,b = map(int,input().split())
#x*a + (d-x)*b のmin
MM = []
for i in range(d+1):
    MM.append(i*a + (d-i)*b)
print(min(MM))
0