結果
問題 |
No.2235 Line Up Colored Balls
|
ユーザー |
![]() |
提出日時 | 2023-02-19 01:37:25 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 126 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 87,808 KB |
最終ジャッジ日時 | 2024-07-22 07:18:37 |
合計ジャッジ時間 | 5,154 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 55 |
ソースコード
N = int(input()) a = list(map(float, input().split())) s = 0 t = 0 for x in a: s += x t += x*x ans = (s*s-t)/s+1 print(ans)