結果

問題 No.970 数列変換マシン
ユーザー raven7959raven7959
提出日時 2021-09-17 21:04:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 87,008 KB
実行使用メモリ 95,260 KB
最終ジャッジ日時 2023-09-12 06:27:42
合計ジャッジ時間 4,153 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
95,208 KB
testcase_01 AC 113 ms
94,948 KB
testcase_02 AC 115 ms
95,260 KB
testcase_03 AC 108 ms
93,636 KB
testcase_04 AC 107 ms
93,532 KB
testcase_05 AC 107 ms
93,944 KB
testcase_06 AC 103 ms
92,712 KB
testcase_07 AC 106 ms
93,504 KB
testcase_08 AC 107 ms
93,484 KB
testcase_09 AC 74 ms
75,320 KB
testcase_10 AC 73 ms
75,680 KB
testcase_11 AC 81 ms
76,984 KB
testcase_12 AC 81 ms
76,612 KB
testcase_13 AC 75 ms
75,164 KB
testcase_14 AC 82 ms
76,788 KB
testcase_15 AC 71 ms
71,360 KB
testcase_16 AC 69 ms
71,580 KB
testcase_17 AC 69 ms
71,352 KB
testcase_18 AC 68 ms
71,312 KB
testcase_19 AC 69 ms
71,120 KB
testcase_20 AC 69 ms
71,320 KB
testcase_21 AC 70 ms
71,348 KB
testcase_22 AC 69 ms
71,228 KB
testcase_23 AC 69 ms
71,316 KB
testcase_24 AC 69 ms
71,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
Y=list(map(int,input().split()))
S=sum(Y)
ANS=[0]*N
for i in range(N):
    ANS[i]=S-Y[i]*(N-1)
print(*ANS)
0