結果

問題 No.970 数列変換マシン
ユーザー uni_pythonuni_python
提出日時 2020-09-13 20:07:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 436 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 92,556 KB
最終ジャッジ日時 2023-09-03 23:55:44
合計ジャッジ時間 5,173 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
92,556 KB
testcase_01 AC 100 ms
92,312 KB
testcase_02 AC 100 ms
92,332 KB
testcase_03 AC 94 ms
91,112 KB
testcase_04 AC 96 ms
91,196 KB
testcase_05 AC 97 ms
91,720 KB
testcase_06 AC 93 ms
89,968 KB
testcase_07 AC 97 ms
91,312 KB
testcase_08 AC 97 ms
91,300 KB
testcase_09 AC 72 ms
71,376 KB
testcase_10 AC 72 ms
71,044 KB
testcase_11 AC 76 ms
76,104 KB
testcase_12 AC 75 ms
76,312 KB
testcase_13 AC 72 ms
71,356 KB
testcase_14 AC 76 ms
76,096 KB
testcase_15 AC 69 ms
71,328 KB
testcase_16 AC 70 ms
71,360 KB
testcase_17 AC 70 ms
71,324 KB
testcase_18 AC 71 ms
71,340 KB
testcase_19 AC 69 ms
71,324 KB
testcase_20 AC 70 ms
71,428 KB
testcase_21 AC 69 ms
71,464 KB
testcase_22 AC 70 ms
71,356 KB
testcase_23 AC 69 ms
71,336 KB
testcase_24 AC 69 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    N=I()
    Y=LI()
    S=sum(Y)
    X=[0]*N
    
    for i in range(N):
        X[i]=S-Y[i]*(N-1)
        
    print(' '.join(map(str, X)))
        


main()
0