結果
問題 | No.3066 Collecting Coins Speedrun 1 |
ユーザー |
![]() |
提出日時 | 2025-03-21 21:39:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 73 ms / 2,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 344 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 82,432 KB |
最終ジャッジ日時 | 2025-03-21 21:39:52 |
合計ジャッジ時間 | 3,451 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
N=int(input()) C=list(map(int,input().split())) if max(C)>=0 and min(C)>=0: print(max(C)*2) elif max(C)<=0 and min(C)<=0: print(-min(C)*2) else: print(max(C)*2+abs(min(C))*2)