結果
問題 | No.3072 Sum of sqrt(x) |
ユーザー | kai yo |
提出日時 | 2020-11-08 17:28:44 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 10,656 KB |
実行使用メモリ | 34,528 KB |
最終ジャッジ日時 | 2023-09-29 21:29:29 |
合計ジャッジ時間 | 11,665 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 126 ms
34,528 KB |
testcase_01 | AC | 126 ms
29,480 KB |
testcase_02 | AC | 124 ms
29,448 KB |
testcase_03 | AC | 125 ms
29,580 KB |
testcase_04 | AC | 125 ms
29,432 KB |
testcase_05 | AC | 131 ms
29,412 KB |
testcase_06 | AC | 131 ms
29,552 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
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 | -- | - |
ソースコード
import numpy as np A = input() B = [0] * int(A) C = [0] * int(A) counter = 0 for x in range(int(A)): B.append(input()) counter = 0 for y in B: C[x] = C[x] + np.sqrt(int(B[counter])) counter = counter + 1 counter = 0 for x in C: print(C[counter]) counter = counter + 1