結果
問題 | No.1134 Deviation Score Ⅱ |
ユーザー | mkawa2 |
提出日時 | 2023-05-10 23:06:01 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 860 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 10,868 KB |
実行使用メモリ | 16,352 KB |
最終ジャッジ日時 | 2023-08-18 01:11:32 |
合計ジャッジ時間 | 3,075 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,816 KB |
testcase_01 | AC | 45 ms
14,816 KB |
testcase_02 | AC | 36 ms
12,828 KB |
testcase_03 | AC | 40 ms
14,112 KB |
testcase_04 | AC | 27 ms
10,644 KB |
testcase_05 | AC | 44 ms
14,856 KB |
testcase_06 | AC | 23 ms
10,100 KB |
testcase_07 | AC | 21 ms
9,628 KB |
testcase_08 | AC | 40 ms
13,604 KB |
testcase_09 | AC | 21 ms
9,416 KB |
testcase_10 | AC | 16 ms
8,616 KB |
testcase_11 | AC | 36 ms
12,736 KB |
testcase_12 | AC | 34 ms
12,480 KB |
testcase_13 | AC | 47 ms
15,780 KB |
testcase_14 | AC | 36 ms
12,584 KB |
testcase_15 | AC | 29 ms
11,248 KB |
testcase_16 | AC | 21 ms
9,576 KB |
testcase_17 | AC | 34 ms
12,568 KB |
testcase_18 | AC | 36 ms
12,848 KB |
testcase_19 | AC | 41 ms
14,364 KB |
testcase_20 | AC | 29 ms
11,464 KB |
testcase_21 | RE | - |
testcase_22 | RE | - |
testcase_23 | RE | - |
testcase_24 | RE | - |
testcase_25 | AC | 19 ms
9,308 KB |
testcase_26 | AC | 49 ms
16,352 KB |
testcase_27 | AC | 16 ms
7,836 KB |
ソースコード
import sys # sys.setrecursionlimit(200005) # sys.set_int_max_str_digits(200005) int1 = lambda x: int(x)-1 pDB = lambda *x: print(*x, end="\n", file=sys.stderr) p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr) def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def LI1(): return list(map(int1, sys.stdin.readline().split())) def LLI1(rows_number): return [LI1() for _ in range(rows_number)] def SI(): return sys.stdin.readline().rstrip() dij = [(0, 1), (-1, 0), (0, -1), (1, 0)] # dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)] inf = (1 << 63)-1 # md = 10**9+7 md = 998244353 n=II() xx=LI() m=II() a=sum(xx)/n s2=sum(x**2 for x in xx)/n-a**2 s=s2**0.5 ans=int((xx[m-1]-a)*10/s+50) print(ans)