結果

問題 No.999 てん vs. ほむ
ユーザー Kodai
提出日時 2020-04-16 23:40:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 41,292 KB
最終ジャッジ日時 2024-10-03 04:05:08
合計ジャッジ時間 5,013 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 WA * 1 TLE * 1 -- * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A_list = list(map(int, input().split()))

A_sum = sum(A_list)
homura = max([sum(A_list[0:i*2:2])+sum(A_list[-1:i*2:-2]) for i in range(N)])
print(2*homura-A_sum)
0