結果

問題 No.3072 Sum of sqrt(x)
ユーザー maspymaspy
提出日時 2020-06-21 02:35:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 361 bytes
コンパイル時間 679 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 178,632 KB
最終ジャッジ日時 2023-09-11 21:43:01
合計ジャッジ時間 76,904 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
29,568 KB
testcase_01 AC 127 ms
29,600 KB
testcase_02 AC 127 ms
29,560 KB
testcase_03 AC 130 ms
29,484 KB
testcase_04 AC 127 ms
29,516 KB
testcase_05 AC 126 ms
29,508 KB
testcase_06 AC 131 ms
29,480 KB
testcase_07 WA -
testcase_08 AC 601 ms
146,868 KB
testcase_09 AC 727 ms
146,832 KB
testcase_10 AC 1,186 ms
178,460 KB
testcase_11 AC 1,564 ms
178,236 KB
testcase_12 TLE -
testcase_13 AC 1,757 ms
178,632 KB
testcase_14 AC 1,813 ms
177,652 KB
testcase_15 AC 1,855 ms
178,404 KB
testcase_16 AC 1,713 ms
178,360 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

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)
nums = nums.astype(np.float64)
print('\n'.join(map(str, nums.tolist())))
0