結果

問題 No.970 数列変換マシン
ユーザー 👑 tamatotamato
提出日時 2020-01-17 21:23:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 86,960 KB
実行使用メモリ 94,736 KB
最終ジャッジ日時 2023-09-08 01:23:48
合計ジャッジ時間 4,298 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
94,560 KB
testcase_01 AC 113 ms
94,736 KB
testcase_02 AC 112 ms
94,568 KB
testcase_03 AC 106 ms
93,056 KB
testcase_04 AC 106 ms
93,044 KB
testcase_05 AC 111 ms
93,360 KB
testcase_06 AC 105 ms
92,524 KB
testcase_07 AC 107 ms
93,108 KB
testcase_08 AC 106 ms
93,144 KB
testcase_09 AC 73 ms
75,460 KB
testcase_10 AC 72 ms
75,600 KB
testcase_11 AC 79 ms
76,696 KB
testcase_12 AC 78 ms
76,848 KB
testcase_13 AC 72 ms
75,112 KB
testcase_14 AC 80 ms
76,820 KB
testcase_15 AC 69 ms
71,288 KB
testcase_16 AC 70 ms
71,232 KB
testcase_17 AC 69 ms
71,284 KB
testcase_18 AC 69 ms
71,320 KB
testcase_19 AC 68 ms
71,336 KB
testcase_20 AC 67 ms
71,512 KB
testcase_21 AC 67 ms
71,520 KB
testcase_22 AC 69 ms
71,256 KB
testcase_23 AC 72 ms
71,272 KB
testcase_24 AC 70 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    import sys
    input = sys.stdin.readline

    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)


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