結果

問題 No.970 数列変換マシン
ユーザー brthyyjpbrthyyjp
提出日時 2020-03-10 03:09:30
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 86,888 KB
実行使用メモリ 95,176 KB
最終ジャッジ日時 2023-08-10 00:25:44
合計ジャッジ時間 4,856 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
95,176 KB
testcase_01 AC 125 ms
95,168 KB
testcase_02 AC 120 ms
95,060 KB
testcase_03 AC 115 ms
93,608 KB
testcase_04 AC 113 ms
93,660 KB
testcase_05 AC 115 ms
93,912 KB
testcase_06 AC 116 ms
92,904 KB
testcase_07 AC 118 ms
93,660 KB
testcase_08 AC 114 ms
93,756 KB
testcase_09 AC 80 ms
75,256 KB
testcase_10 AC 82 ms
75,420 KB
testcase_11 AC 86 ms
76,424 KB
testcase_12 AC 87 ms
76,860 KB
testcase_13 AC 80 ms
75,576 KB
testcase_14 AC 87 ms
76,720 KB
testcase_15 AC 75 ms
71,244 KB
testcase_16 AC 74 ms
71,420 KB
testcase_17 AC 74 ms
71,312 KB
testcase_18 AC 75 ms
71,396 KB
testcase_19 AC 74 ms
71,384 KB
testcase_20 AC 74 ms
71,448 KB
testcase_21 AC 75 ms
71,220 KB
testcase_22 AC 72 ms
71,388 KB
testcase_23 AC 73 ms
71,460 KB
testcase_24 AC 73 ms
71,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
Y = list(map(int, input().split()))

S = sum(Y)
X = [0]*n
for i in range(n):
    X[i] = S - (n-1)*Y[i]
print(*X)
0