結果

問題 No.3072 Sum of sqrt(x)
ユーザー fgshunfgshun
提出日時 2020-11-17 23:37:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 370 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 76,832 KB
最終ジャッジ日時 2023-09-30 14:31:58
合計ジャッジ時間 26,154 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
29,688 KB
testcase_01 AC 131 ms
29,592 KB
testcase_02 AC 129 ms
29,552 KB
testcase_03 AC 129 ms
29,568 KB
testcase_04 AC 130 ms
29,556 KB
testcase_05 AC 128 ms
29,624 KB
testcase_06 AC 130 ms
29,560 KB
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from itertools import islice
import numpy as np


def resolve(in_):
    N = int(next(in_))
    K = np.fromiter(map(int, islice(in_, N)), np.float128)
    np.savetxt(sys.stdout, np.add.accumulate(np.sqrt(K, dtype=np.float128), dtype=np.float128), fmt='%.18g', delimiter='\n')


def main():
    resolve(sys.stdin.buffer)


if __name__ == '__main__':
    main()
0