結果
問題 | No.3072 Sum of sqrt(x) |
ユーザー | maspy |
提出日時 | 2020-06-17 12:23:49 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 338 bytes |
コンパイル時間 | 669 ms |
コンパイル使用メモリ | 10,628 KB |
実行使用メモリ | 146,644 KB |
最終ジャッジ日時 | 2023-09-11 09:30:17 |
合計ジャッジ時間 | 66,492 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 130 ms
29,492 KB |
testcase_01 | AC | 133 ms
29,380 KB |
testcase_02 | AC | 131 ms
29,428 KB |
testcase_03 | AC | 134 ms
29,472 KB |
testcase_04 | AC | 131 ms
29,448 KB |
testcase_05 | AC | 136 ms
29,444 KB |
testcase_06 | AC | 135 ms
29,440 KB |
testcase_07 | WA | - |
testcase_08 | AC | 1,351 ms
68,576 KB |
testcase_09 | AC | 1,524 ms
131,140 KB |
testcase_10 | AC | 1,850 ms
131,640 KB |
testcase_11 | AC | 1,965 ms
139,500 KB |
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 | - |
ソースコード
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.float64) np.sqrt(nums, out=nums) nums = nums.astype(np.longdouble) np.cumsum(nums, out=nums) print(*('{:.16g}'.format(x) for x in nums), sep='\n')