結果
| 問題 | No.731 等差数列がだいすき |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-09 14:53:03 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 227 bytes |
| 記録 | |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 77,944 KB |
| 最終ジャッジ日時 | 2025-12-04 01:22:54 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 18 |
ソースコード
#yuki731 import numpy as np from functools import reduce n=int(raw_input()) l=np.array(map(float,raw_input().split())) a,b=np.polyfit(np.array(range(n)),l,1) print b,a res=0 for i in xrange(n): res+=(l[i]-b-a*i)**2 print res