結果

問題 No.3072 Sum of sqrt(x)
ユーザー maspymaspy
提出日時 2020-06-21 01:57:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 344 bytes
コンパイル時間 1,054 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 118,708 KB
最終ジャッジ日時 2023-09-11 12:17:47
合計ジャッジ時間 75,571 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
29,168 KB
testcase_01 AC 129 ms
29,412 KB
testcase_02 AC 129 ms
29,264 KB
testcase_03 AC 128 ms
29,420 KB
testcase_04 AC 126 ms
29,360 KB
testcase_05 AC 127 ms
29,320 KB
testcase_06 AC 127 ms
29,296 KB
testcase_07 TLE -
testcase_08 AC 1,109 ms
83,948 KB
testcase_09 AC 1,466 ms
84,164 KB
testcase_10 AC 1,947 ms
118,336 KB
testcase_11 TLE -
testcase_12 TLE -
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
testcase_21 TLE -
testcase_22 TLE -
testcase_23 TLE -
testcase_24 TLE -
testcase_25 TLE -
testcase_26 TLE -
testcase_27 TLE -
testcase_28 TLE -
testcase_29 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import numpy as np
import time

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

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

for x in nums.tolist():
    print(str(x)[:17])
0