結果
| 問題 |
No.2196 Pair Bonus
|
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2023-01-20 21:48:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 171 ms / 2,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 428 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 139,348 KB |
| 最終ジャッジ日時 | 2024-06-23 09:44:58 |
| 合計ジャッジ時間 | 3,153 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
x = list(map(int,input().split()))
y = list(map(int,input().split()))
ans = 0
for i in range(n):
ans += max([x[i] + a[2*i] + a[2*i + 1], x[i] + b[2*i] + b[2*i + 1], y[i] + a[2*i] + b[2*i+1], y[i] + a[2*i+1] + b[2*i]])
print(ans)
shobonvip