結果

問題 No.970 数列変換マシン
ユーザー kohei2019kohei2019
提出日時 2022-01-03 20:46:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 82,276 KB
実行使用メモリ 99,236 KB
最終ジャッジ日時 2024-04-21 09:56:03
合計ジャッジ時間 3,752 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
98,960 KB
testcase_01 AC 95 ms
99,148 KB
testcase_02 AC 96 ms
99,236 KB
testcase_03 AC 88 ms
97,808 KB
testcase_04 AC 89 ms
97,736 KB
testcase_05 AC 89 ms
98,184 KB
testcase_06 AC 86 ms
96,988 KB
testcase_07 AC 90 ms
98,252 KB
testcase_08 AC 92 ms
97,836 KB
testcase_09 AC 46 ms
58,908 KB
testcase_10 AC 44 ms
58,968 KB
testcase_11 AC 51 ms
64,540 KB
testcase_12 AC 51 ms
63,144 KB
testcase_13 AC 45 ms
60,028 KB
testcase_14 AC 52 ms
63,952 KB
testcase_15 AC 40 ms
51,896 KB
testcase_16 AC 40 ms
52,408 KB
testcase_17 AC 38 ms
52,944 KB
testcase_18 AC 39 ms
52,096 KB
testcase_19 AC 39 ms
53,052 KB
testcase_20 AC 39 ms
52,272 KB
testcase_21 AC 39 ms
52,652 KB
testcase_22 AC 39 ms
52,064 KB
testcase_23 AC 39 ms
51,952 KB
testcase_24 AC 40 ms
53,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
lsy = list(map(int,input().split()))

sumy = sum(lsy)
ans = []
for i in range(N):
    a = sumy-lsy[i]*(N-1)
    ans.append(a)
print(*ans)
0