結果

問題 No.970 数列変換マシン
ユーザー roarisroaris
提出日時 2020-01-17 21:38:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 975 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 94,848 KB
最終ジャッジ日時 2023-09-08 01:55:09
合計ジャッジ時間 4,061 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
94,848 KB
testcase_01 AC 111 ms
94,740 KB
testcase_02 AC 111 ms
94,756 KB
testcase_03 AC 104 ms
93,336 KB
testcase_04 AC 107 ms
93,068 KB
testcase_05 AC 106 ms
93,528 KB
testcase_06 AC 103 ms
92,740 KB
testcase_07 AC 107 ms
93,284 KB
testcase_08 AC 107 ms
93,280 KB
testcase_09 AC 73 ms
75,700 KB
testcase_10 AC 74 ms
75,424 KB
testcase_11 AC 79 ms
76,880 KB
testcase_12 AC 81 ms
76,872 KB
testcase_13 AC 76 ms
75,292 KB
testcase_14 AC 80 ms
76,920 KB
testcase_15 AC 68 ms
71,404 KB
testcase_16 AC 69 ms
71,620 KB
testcase_17 AC 69 ms
71,300 KB
testcase_18 AC 69 ms
71,432 KB
testcase_19 AC 68 ms
71,416 KB
testcase_20 AC 69 ms
71,252 KB
testcase_21 AC 67 ms
71,408 KB
testcase_22 AC 69 ms
71,228 KB
testcase_23 AC 70 ms
71,476 KB
testcase_24 AC 69 ms
71,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
y = list(map(int, input().split()))
Y = sum(y)
ans = [-1]*N

for i in range(N):
    ans[i] = Y-(N-1)*y[i]

print(*ans)
0