結果

問題 No.881 sin(x)/xの和
ユーザー mousemoodmousemood
提出日時 2019-09-16 18:01:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 57,304 KB
最終ジャッジ日時 2023-08-13 13:05:30
合計ジャッジ時間 7,520 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 175 ms
29,852 KB
testcase_01 AC 133 ms
29,684 KB
testcase_02 AC 136 ms
29,684 KB
testcase_03 AC 135 ms
29,576 KB
testcase_04 AC 136 ms
29,900 KB
testcase_05 AC 137 ms
29,676 KB
testcase_06 AC 135 ms
29,508 KB
testcase_07 AC 136 ms
29,616 KB
testcase_08 AC 140 ms
29,724 KB
testcase_09 AC 137 ms
29,752 KB
testcase_10 AC 136 ms
29,752 KB
testcase_11 AC 133 ms
29,708 KB
testcase_12 AC 139 ms
29,788 KB
testcase_13 AC 134 ms
29,752 KB
testcase_14 AC 137 ms
29,548 KB
testcase_15 AC 136 ms
29,736 KB
testcase_16 AC 137 ms
29,796 KB
testcase_17 AC 135 ms
29,536 KB
testcase_18 AC 135 ms
29,644 KB
testcase_19 AC 137 ms
29,772 KB
testcase_20 AC 136 ms
29,516 KB
testcase_21 AC 137 ms
29,692 KB
testcase_22 AC 140 ms
57,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

n = int(input())

l = np.array([list(map(float, input().split())) for i in range(n)]).T

print(np.pi * l[1].sum())
0