結果

問題 No.3072 Sum of sqrt(x)
ユーザー akasia_midoriakasia_midori
提出日時 2022-05-03 06:44:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 443 bytes
コンパイル時間 716 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 48,360 KB
最終ジャッジ日時 2023-09-15 06:08:11
合計ジャッジ時間 24,579 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,308 KB
testcase_01 AC 25 ms
9,248 KB
testcase_02 AC 21 ms
9,240 KB
testcase_03 AC 22 ms
9,060 KB
testcase_04 AC 21 ms
9,052 KB
testcase_05 AC 25 ms
9,152 KB
testcase_06 AC 23 ms
9,096 KB
testcase_07 WA -
testcase_08 AC 1,355 ms
17,040 KB
testcase_09 AC 1,377 ms
16,876 KB
testcase_10 AC 1,596 ms
48,360 KB
testcase_11 AC 1,563 ms
48,328 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

def one_str():
    return input()

def many_int():
    return list(map(int, input().split()))

from decimal import *
getcontext().prec = 17

input_count = 0
N = many_int()[0]
now = 0
dicts = {}
A = []
for i in range(N):
    num = int(input())
    A.append(num)
    if num not in dicts:
        dicts[num] = decimal.Decimal(num**(1/2))
now = 0
for a in A:
    now += dicts[a]
    print(now)
0