結果

問題 No.1517 Party Location
ユーザー pypypymipypypymi
提出日時 2022-02-19 14:06:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 86,884 KB
実行使用メモリ 75,780 KB
最終ジャッジ日時 2023-09-11 20:38:48
合計ジャッジ時間 2,532 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,264 KB
testcase_01 AC 67 ms
71,332 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 73 ms
75,752 KB
testcase_05 AC 72 ms
75,596 KB
testcase_06 AC 74 ms
75,660 KB
testcase_07 AC 69 ms
71,336 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 70 ms
71,296 KB
testcase_13 WA -
testcase_14 AC 74 ms
75,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d = int(input())
a,b = map(int,input().split())
min_val = 1000*1000
for x in range(0,d+1):
    if  x*a+(d-x)*b<min_val:
        min_val=x*a+(d-x)*b
print(min_val)
    
0