結果

問題 No.731 等差数列がだいすき
ユーザー H3PO4H3PO4
提出日時 2020-12-21 09:16:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 533 ms / 1,500 ms
コード長 118 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 11,716 KB
実行使用メモリ 45,944 KB
最終ジャッジ日時 2023-10-21 11:29:09
合計ジャッジ時間 12,601 ms
ジャッジサーバーID
(参考情報)
judge14 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 533 ms
45,784 KB
testcase_01 AC 484 ms
45,800 KB
testcase_02 AC 482 ms
45,800 KB
testcase_03 AC 490 ms
45,796 KB
testcase_04 AC 486 ms
45,796 KB
testcase_05 AC 489 ms
45,796 KB
testcase_06 AC 497 ms
45,796 KB
testcase_07 AC 486 ms
45,796 KB
testcase_08 AC 485 ms
45,796 KB
testcase_09 AC 492 ms
45,796 KB
testcase_10 AC 495 ms
45,796 KB
testcase_11 AC 502 ms
45,804 KB
testcase_12 AC 503 ms
45,796 KB
testcase_13 AC 494 ms
45,796 KB
testcase_14 AC 489 ms
45,796 KB
testcase_15 AC 489 ms
45,796 KB
testcase_16 AC 487 ms
45,796 KB
testcase_17 AC 499 ms
45,796 KB
testcase_18 AC 490 ms
45,796 KB
testcase_19 AC 491 ms
45,796 KB
testcase_20 AC 488 ms
45,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy;p,q,*_=numpy.polyfit(range(int(input())),[*map(int,input().split())],1,full=1);print(p[1],p[0],'\n',q[0])
0