結果
問題 |
No.3066 Collecting Coins Speedrun 1
|
ユーザー |
|
提出日時 | 2025-03-21 21:39:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 973 ms |
コンパイル使用メモリ | 11,776 KB |
実行使用メモリ | 20,980 KB |
最終ジャッジ日時 | 2025-03-21 21:39:37 |
合計ジャッジ時間 | 3,706 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 WA * 12 |
ソースコード
N=int(input()) C=list(map(int, input().split())) minus_max = -1 plus_max = -1 for c in C: if c < 0: minus_max = max(minus_max, abs(c)) else: plus_max = max(plus_max, c) print((minus_max + plus_max) * 2)