結果

問題 No.970 数列変換マシン
ユーザー tails1434tails1434
提出日時 2020-01-20 21:58:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 844 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 95,076 KB
最終ジャッジ日時 2023-09-15 21:44:13
合計ジャッジ時間 4,840 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
94,964 KB
testcase_01 AC 117 ms
94,784 KB
testcase_02 AC 115 ms
95,076 KB
testcase_03 AC 108 ms
93,668 KB
testcase_04 AC 113 ms
93,440 KB
testcase_05 AC 109 ms
93,820 KB
testcase_06 AC 107 ms
92,796 KB
testcase_07 AC 108 ms
93,440 KB
testcase_08 AC 110 ms
93,480 KB
testcase_09 AC 76 ms
75,540 KB
testcase_10 AC 75 ms
75,288 KB
testcase_11 AC 81 ms
76,768 KB
testcase_12 AC 82 ms
76,780 KB
testcase_13 AC 75 ms
75,160 KB
testcase_14 AC 82 ms
76,836 KB
testcase_15 AC 71 ms
71,068 KB
testcase_16 AC 70 ms
71,360 KB
testcase_17 AC 70 ms
71,196 KB
testcase_18 AC 71 ms
71,268 KB
testcase_19 AC 70 ms
71,236 KB
testcase_20 AC 70 ms
71,392 KB
testcase_21 AC 71 ms
71,464 KB
testcase_22 AC 70 ms
71,248 KB
testcase_23 AC 69 ms
71,340 KB
testcase_24 AC 70 ms
71,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    y = list(map(int,input().split()))
    sumy = sum(y)
    x = [0] * N
    for i in range(N):
        x[i] = sumy - (N - 1) * y[i]

    print(*x)

if __name__ == "__main__":
    main()
0