結果
問題 | No.2235 Line Up Colored Balls |
ユーザー |
![]() |
提出日時 | 2023-01-26 12:32:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 144 bytes |
コンパイル時間 | 365 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 50,440 KB |
最終ジャッジ日時 | 2024-07-22 07:17:30 |
合計ジャッジ時間 | 35,582 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 55 |
ソースコード
import numpy as npN = int(input())a = np.array(list(map(int, input().split())))s = np.sum(a)t = np.sum(a**2)ans = (s*s-t)/s+1print(ans)