結果

問題 No.1517 Party Location
ユーザー 齋藤悠輔
提出日時 2021-06-09 20:00:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 109 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-28 19:44:07
合計ジャッジ時間 1,450 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for x in range(d+1):
    n = min([x*a + (d-x)*b])
print(n)
0