結果

問題 No.970 数列変換マシン
ユーザー stngstng
提出日時 2022-08-15 16:50:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 82,540 KB
実行使用メモリ 93,776 KB
最終ジャッジ日時 2024-04-10 04:27:43
合計ジャッジ時間 3,221 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
93,776 KB
testcase_01 AC 81 ms
93,704 KB
testcase_02 AC 81 ms
93,744 KB
testcase_03 AC 75 ms
92,556 KB
testcase_04 AC 76 ms
92,492 KB
testcase_05 AC 78 ms
92,620 KB
testcase_06 AC 72 ms
91,856 KB
testcase_07 AC 75 ms
92,332 KB
testcase_08 AC 74 ms
92,660 KB
testcase_09 AC 40 ms
58,912 KB
testcase_10 AC 40 ms
58,880 KB
testcase_11 AC 45 ms
63,216 KB
testcase_12 AC 44 ms
63,376 KB
testcase_13 AC 39 ms
59,032 KB
testcase_14 AC 47 ms
64,476 KB
testcase_15 AC 33 ms
52,632 KB
testcase_16 AC 32 ms
52,940 KB
testcase_17 AC 33 ms
52,424 KB
testcase_18 AC 32 ms
52,032 KB
testcase_19 AC 33 ms
52,752 KB
testcase_20 AC 32 ms
51,816 KB
testcase_21 AC 34 ms
53,328 KB
testcase_22 AC 33 ms
52,280 KB
testcase_23 AC 34 ms
52,204 KB
testcase_24 AC 32 ms
52,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
y = [int(i) for i in input().split()]

sv = sum(y)
ans = []
for i in range(n):
    ans.append(sv-y[i]*(n-1))
print(*ans)
0