結果
| 問題 |
No.999 てん vs. ほむ
|
| コンテスト | |
| ユーザー |
rythem00359
|
| 提出日時 | 2020-08-27 14:32:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| コンパイル時間 | 873 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 32,632 KB |
| 最終ジャッジ日時 | 2024-11-07 17:39:33 |
| 合計ジャッジ時間 | 3,585 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 2 |
ソースコード
from itertools import accumulate n=int(input()) a=[*map(int,input().split())] r1=[x-y for x,y in zip(a[::2],a[1::2])] r2=list(accumulate(r1)) print(max(r2)*2-sum(r1))
rythem00359