結果

問題 No.970 数列変換マシン
ユーザー 👑 yumechiyumechi
提出日時 2020-01-17 21:39:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 607 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 94,080 KB
最終ジャッジ日時 2023-09-08 02:00:14
合計ジャッジ時間 4,265 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
93,792 KB
testcase_01 AC 120 ms
94,080 KB
testcase_02 AC 116 ms
94,000 KB
testcase_03 AC 101 ms
88,348 KB
testcase_04 AC 95 ms
88,288 KB
testcase_05 AC 100 ms
89,040 KB
testcase_06 AC 101 ms
86,080 KB
testcase_07 AC 110 ms
92,924 KB
testcase_08 AC 111 ms
91,636 KB
testcase_09 AC 75 ms
71,428 KB
testcase_10 AC 74 ms
71,516 KB
testcase_11 AC 80 ms
76,732 KB
testcase_12 AC 79 ms
76,376 KB
testcase_13 AC 74 ms
71,408 KB
testcase_14 AC 77 ms
76,332 KB
testcase_15 AC 71 ms
71,280 KB
testcase_16 AC 70 ms
71,312 KB
testcase_17 AC 69 ms
71,536 KB
testcase_18 AC 69 ms
71,308 KB
testcase_19 AC 69 ms
71,300 KB
testcase_20 AC 68 ms
71,088 KB
testcase_21 AC 69 ms
71,408 KB
testcase_22 AC 71 ms
71,168 KB
testcase_23 AC 70 ms
71,424 KB
testcase_24 AC 73 ms
71,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
y = [int(i) for i in input().split()]
a = [0]*n
s = sum(y)
for i,v in enumerate(y):
  t = (s - (n - 1) * v)
  a[i] = str(t)
print(" ".join(a))
0