結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
|
| 提出日時 | 2020-11-17 23:37:17 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 803 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 87,884 KB |
| 最終ジャッジ日時 | 2026-04-03 13:29:40 |
| 合計ジャッジ時間 | 16,352 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 2 -- * 21 |
ソースコード
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()