結果

問題 No.970 数列変換マシン
ユーザー yansi819yansi819
提出日時 2024-05-11 14:32:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 82,400 KB
実行使用メモリ 94,112 KB
最終ジャッジ日時 2024-05-11 14:32:10
合計ジャッジ時間 3,536 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
94,112 KB
testcase_01 AC 77 ms
93,964 KB
testcase_02 AC 79 ms
94,060 KB
testcase_03 AC 71 ms
92,472 KB
testcase_04 AC 72 ms
92,656 KB
testcase_05 AC 73 ms
92,984 KB
testcase_06 AC 69 ms
91,980 KB
testcase_07 AC 71 ms
92,596 KB
testcase_08 AC 77 ms
92,532 KB
testcase_09 AC 38 ms
58,992 KB
testcase_10 AC 41 ms
59,636 KB
testcase_11 AC 47 ms
63,516 KB
testcase_12 AC 42 ms
63,460 KB
testcase_13 AC 38 ms
59,068 KB
testcase_14 AC 43 ms
64,568 KB
testcase_15 AC 34 ms
52,064 KB
testcase_16 AC 34 ms
52,572 KB
testcase_17 AC 35 ms
52,264 KB
testcase_18 AC 33 ms
52,064 KB
testcase_19 AC 35 ms
52,012 KB
testcase_20 AC 35 ms
52,068 KB
testcase_21 AC 35 ms
52,980 KB
testcase_22 AC 33 ms
52,444 KB
testcase_23 AC 32 ms
52,812 KB
testcase_24 AC 34 ms
52,120 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 - y[i] * (N - 1)
print(*x)
0