結果
| 問題 |
No.2196 Pair Bonus
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-30 04:10:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 314 bytes |
| コンパイル時間 | 332 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 65,152 KB |
| 最終ジャッジ日時 | 2024-06-11 13:46:00 |
| 合計ジャッジ時間 | 3,320 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 15 |
ソースコード
def solve(n, x, y, a, b):
ans = 0
for i in range(n):
ans += max(a[i] + a[n + i] + x, a[i] + b[n + i] + y, b[i] + a[n + i] + y, b[i] + b[n + i] + x)
return ans
n, x, y = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
print(solve(n, x, y, a, b))