結果
| 問題 |
No.1517 Party Location
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-30 16:55:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 113 bytes |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 82,248 KB |
| 実行使用メモリ | 53,520 KB |
| 最終ジャッジ日時 | 2024-11-19 07:28:52 |
| 合計ジャッジ時間 | 1,309 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
d = int(input())
a, b = map(int, input().split())
if a>b:
x = 0
else:
x = d
ans = x*a+(d-x)*b
print(ans)