結果
| 問題 | No.3066 Collecting Coins Speedrun 1 |
| コンテスト | |
| ユーザー |
あじゃじゃ
|
| 提出日時 | 2025-03-21 21:37:24 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 96,240 KB |
| 実行使用メモリ | 98,576 KB |
| 最終ジャッジ日時 | 2026-07-07 14:26:55 |
| 合計ジャッジ時間 | 3,937 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 WA * 6 |
ソースコード
n=int(input())
c=list(map(int,input().split()))
if n==1:
exit(print(abs(c[0])*2))
mn=min(c)
mx=max(c)
ans=2*mx
if mn*mx<0:ans=2*(mx-mn)
print(ans)
あじゃじゃ