結果
問題 | No.3072 Sum of sqrt(x) |
ユーザー | akasia_midori |
提出日時 | 2022-05-03 06:58:39 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 750 ms |
コンパイル使用メモリ | 10,548 KB |
実行使用メモリ | 150,828 KB |
最終ジャッジ日時 | 2023-09-15 06:34:45 |
合計ジャッジ時間 | 22,227 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 20 ms
9,140 KB |
testcase_01 | AC | 21 ms
9,140 KB |
testcase_02 | AC | 21 ms
9,100 KB |
testcase_03 | AC | 21 ms
8,996 KB |
testcase_04 | AC | 19 ms
9,064 KB |
testcase_05 | AC | 20 ms
9,140 KB |
testcase_06 | AC | 20 ms
9,276 KB |
testcase_07 | OLE | - |
testcase_08 | AC | 1,217 ms
150,768 KB |
testcase_09 | AC | 1,252 ms
150,604 KB |
testcase_10 | AC | 1,399 ms
150,720 KB |
testcase_11 | AC | 1,426 ms
150,828 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 | -- | - |
ソースコード
import decimal import sys input = sys.stdin.readline decimal.getcontext().prec = 20 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")