結果
問題 | No.3066 Collecting Coins Speedrun 1 |
ユーザー |
👑 |
提出日時 | 2025-03-21 21:26:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 61 ms / 2,000 ms |
コード長 | 201 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 81,960 KB |
実行使用メモリ | 83,368 KB |
最終ジャッジ日時 | 2025-03-21 21:26:48 |
合計ジャッジ時間 | 2,843 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge7 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
N = int(input()) C = list(map(int, input().split())) min_C, max_C = min(C), max(C) if 0 <= min_C: print(2 * max_C) elif max_C <= 0: print(2 * abs(min_C)) else: print(2 * (max_C - min_C))