結果
| 問題 |
No.1134 Deviation Score Ⅱ
|
| ユーザー |
fastmath
|
| 提出日時 | 2020-08-03 19:42:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 217 bytes |
| コンパイル時間 | 359 ms |
| コンパイル使用メモリ | 81,964 KB |
| 実行使用メモリ | 82,792 KB |
| 最終ジャッジ日時 | 2024-09-13 14:19:55 |
| 合計ジャッジ時間 | 2,832 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
m = int(input())-1
av = sum(a)/n
k = 0
for e in a:
k += (e - av) ** 2
r = (k/n) ** 0.5
if r == 0:
print(50)
else:
print(int((a[m]-av)*10/r+50))
fastmath