結果

問題 No.1389 Clumsy Calculation
ユーザー maimai
提出日時 2021-02-12 21:26:47
言語 Ruby
(3.3.0)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 87 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 11,432 KB
実行使用メモリ 28,672 KB
最終ジャッジ日時 2023-09-27 02:47:56
合計ジャッジ時間 5,392 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,088 KB
testcase_01 AC 85 ms
15,284 KB
testcase_02 AC 83 ms
15,068 KB
testcase_03 AC 85 ms
15,160 KB
testcase_04 AC 86 ms
15,284 KB
testcase_05 AC 88 ms
15,060 KB
testcase_06 AC 83 ms
15,124 KB
testcase_07 AC 85 ms
15,100 KB
testcase_08 AC 82 ms
15,128 KB
testcase_09 AC 165 ms
28,672 KB
testcase_10 AC 151 ms
26,908 KB
testcase_11 AC 84 ms
15,232 KB
testcase_12 AC 85 ms
15,016 KB
testcase_13 AC 84 ms
15,036 KB
testcase_14 AC 160 ms
28,032 KB
testcase_15 AC 161 ms
28,052 KB
testcase_16 AC 159 ms
28,096 KB
testcase_17 AC 161 ms
28,312 KB
testcase_18 AC 159 ms
28,488 KB
testcase_19 AC 161 ms
28,180 KB
testcase_20 AC 162 ms
28,248 KB
testcase_21 AC 162 ms
28,224 KB
testcase_22 AC 159 ms
28,472 KB
testcase_23 AC 161 ms
28,480 KB
testcase_24 AC 160 ms
28,292 KB
testcase_25 AC 161 ms
28,312 KB
testcase_26 AC 157 ms
27,916 KB
testcase_27 AC 158 ms
28,244 KB
testcase_28 AC 158 ms
28,188 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def lscan; gets.split.map(&:to_i); end

n, x = lscan
aa = lscan
p aa.reduce(:+)-x*(n-1)
0