結果

問題 No.3072 Sum of sqrt(x)
ユーザー maspymaspy
提出日時 2020-06-18 23:19:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
OLE  
実行時間 -
コード長 321 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 107,644 KB
最終ジャッジ日時 2023-09-11 10:47:30
合計ジャッジ時間 59,429 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
29,592 KB
testcase_01 AC 132 ms
29,580 KB
testcase_02 AC 136 ms
29,440 KB
testcase_03 AC 131 ms
29,536 KB
testcase_04 AC 131 ms
29,496 KB
testcase_05 AC 136 ms
29,600 KB
testcase_06 AC 133 ms
29,512 KB
testcase_07 OLE -
testcase_08 AC 784 ms
107,644 KB
testcase_09 AC 1,138 ms
107,580 KB
testcase_10 OLE -
testcase_11 OLE -
testcase_12 OLE -
testcase_13 OLE -
testcase_14 OLE -
testcase_15 OLE -
testcase_16 OLE -
testcase_17 OLE -
testcase_18 OLE -
testcase_19 OLE -
testcase_20 OLE -
testcase_21 OLE -
testcase_22 OLE -
testcase_23 OLE -
testcase_24 OLE -
testcase_25 OLE -
testcase_26 OLE -
testcase_27 OLE -
testcase_28 OLE -
testcase_29 OLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())
nums = np.array(read().split(), np.longdouble)
np.sqrt(nums, out=nums)
nums = nums.astype(np.longdouble)
np.cumsum(nums, out=nums)

print(*nums.tolist(), sep='\n')
0