結果

問題 No.3072 Sum of sqrt(x)
ユーザー akasia_midoriakasia_midori
提出日時 2022-05-03 07:00:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 316 bytes
コンパイル時間 1,455 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 340,636 KB
最終ジャッジ日時 2023-09-15 06:37:11
合計ジャッジ時間 22,426 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
9,184 KB
testcase_01 AC 20 ms
9,132 KB
testcase_02 AC 20 ms
9,104 KB
testcase_03 AC 20 ms
8,948 KB
testcase_04 AC 20 ms
8,852 KB
testcase_05 AC 20 ms
9,184 KB
testcase_06 AC 20 ms
9,036 KB
testcase_07 WA -
testcase_08 AC 1,234 ms
150,804 KB
testcase_09 AC 1,246 ms
150,600 KB
testcase_10 AC 1,454 ms
150,644 KB
testcase_11 AC 1,428 ms
150,780 KB
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 decimal
import sys
input = sys.stdin.readline
decimal.getcontext().prec = 18

N = int(input())
dicts = {}
output = []
now=0
for i in range(N):
    num = int(input())
    if num not in dicts:
        dicts[num] = decimal.Decimal(num**(1/2))
    now += dicts[num]
    output.append(now)
print(*output, sep="\n")
0