結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
|
提出日時 | 2020-11-17 23:37:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 239 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 97,364 KB |
最終ジャッジ日時 | 2024-07-23 08:33:52 |
合計ジャッジ時間 | 19,708 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 TLE * 1 -- * 22 |
ソースコード
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()