結果

問題 No.1517 Party Location
ユーザー nasubi24nasubi24
提出日時 2021-05-28 20:52:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 75,836 KB
最終ジャッジ日時 2023-09-02 04:09:51
合計ジャッジ時間 2,041 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,264 KB
testcase_01 AC 66 ms
71,504 KB
testcase_02 AC 67 ms
75,836 KB
testcase_03 AC 66 ms
75,796 KB
testcase_04 AC 66 ms
75,740 KB
testcase_05 AC 73 ms
75,636 KB
testcase_06 AC 71 ms
75,744 KB
testcase_07 AC 66 ms
71,292 KB
testcase_08 AC 67 ms
75,780 KB
testcase_09 AC 70 ms
75,716 KB
testcase_10 AC 68 ms
75,740 KB
testcase_11 AC 68 ms
75,744 KB
testcase_12 AC 67 ms
71,360 KB
testcase_13 AC 70 ms
75,740 KB
testcase_14 AC 68 ms
75,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d=int(input())
a,b=map(int,input().split())
ans=10**10
for i in range(d+1):
    ans=min(ans,i*a+(d-i)*b)
print(ans)
0