結果

問題 No.1131 Deviation Score
ユーザー 👑 colognecologne
提出日時 2023-07-14 12:37:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 599 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 16,720 KB
最終ジャッジ日時 2023-10-14 02:04:35
合計ジャッジ時間 9,466 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
10,960 KB
testcase_01 AC 40 ms
9,852 KB
testcase_02 AC 533 ms
15,744 KB
testcase_03 AC 256 ms
12,512 KB
testcase_04 AC 486 ms
15,360 KB
testcase_05 AC 197 ms
11,884 KB
testcase_06 AC 521 ms
15,728 KB
testcase_07 AC 260 ms
12,516 KB
testcase_08 AC 464 ms
15,196 KB
testcase_09 AC 195 ms
11,556 KB
testcase_10 AC 441 ms
15,008 KB
testcase_11 AC 452 ms
15,116 KB
testcase_12 AC 402 ms
14,380 KB
testcase_13 AC 517 ms
15,716 KB
testcase_14 AC 130 ms
10,916 KB
testcase_15 AC 127 ms
10,904 KB
testcase_16 AC 471 ms
15,436 KB
testcase_17 AC 206 ms
11,852 KB
testcase_18 AC 599 ms
16,720 KB
testcase_19 AC 32 ms
9,608 KB
testcase_20 AC 31 ms
9,688 KB
testcase_21 AC 30 ms
9,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import Fraction


def main():
    N = int(input())
    *X, = map(int, input().split())
    A = Fraction(sum(X), N)
    for x in X:
        print(int(50-(A-x)/2))


if __name__ == '__main__':
    main()
0