結果

問題 No.970 数列変換マシン
ユーザー koba-e964koba-e964
提出日時 2020-02-27 01:56:38
言語 Ruby
(3.3.0)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 11,252 KB
実行使用メモリ 25,444 KB
最終ジャッジ日時 2023-08-03 18:35:28
合計ジャッジ時間 5,772 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 171 ms
25,444 KB
testcase_01 AC 175 ms
25,256 KB
testcase_02 AC 172 ms
25,340 KB
testcase_03 AC 164 ms
25,180 KB
testcase_04 AC 166 ms
25,100 KB
testcase_05 AC 168 ms
25,400 KB
testcase_06 AC 163 ms
24,428 KB
testcase_07 AC 165 ms
25,236 KB
testcase_08 AC 167 ms
25,148 KB
testcase_09 AC 80 ms
15,276 KB
testcase_10 AC 81 ms
15,128 KB
testcase_11 AC 81 ms
15,160 KB
testcase_12 AC 80 ms
15,156 KB
testcase_13 AC 80 ms
15,272 KB
testcase_14 AC 81 ms
15,148 KB
testcase_15 AC 78 ms
15,224 KB
testcase_16 AC 78 ms
15,040 KB
testcase_17 AC 78 ms
15,268 KB
testcase_18 AC 79 ms
15,272 KB
testcase_19 AC 78 ms
15,184 KB
testcase_20 AC 77 ms
15,088 KB
testcase_21 AC 79 ms
15,264 KB
testcase_22 AC 77 ms
15,200 KB
testcase_23 AC 78 ms
15,316 KB
testcase_24 AC 79 ms
15,240 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
b=gets.split.map &:to_i
sa=b.inject(0, :+)

a=b.map{|v| sa-v*(n-1)}
puts a*' '
0