結果

問題 No.1389 Clumsy Calculation
ユーザー kotatsugamekotatsugame
提出日時 2021-02-12 21:27:37
言語 Ruby
(3.3.0)
結果
AC  
実行時間 161 ms / 2,000 ms
コード長 66 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 11,404 KB
実行使用メモリ 28,836 KB
最終ジャッジ日時 2023-09-27 02:49:51
合計ジャッジ時間 6,025 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,044 KB
testcase_01 AC 82 ms
15,328 KB
testcase_02 AC 82 ms
15,132 KB
testcase_03 AC 86 ms
15,136 KB
testcase_04 AC 85 ms
15,140 KB
testcase_05 AC 87 ms
15,144 KB
testcase_06 AC 85 ms
15,336 KB
testcase_07 AC 85 ms
15,340 KB
testcase_08 AC 82 ms
15,208 KB
testcase_09 AC 161 ms
28,836 KB
testcase_10 AC 149 ms
27,048 KB
testcase_11 AC 85 ms
15,136 KB
testcase_12 AC 83 ms
15,224 KB
testcase_13 AC 85 ms
15,132 KB
testcase_14 AC 158 ms
28,152 KB
testcase_15 AC 156 ms
28,292 KB
testcase_16 AC 156 ms
28,092 KB
testcase_17 AC 158 ms
28,284 KB
testcase_18 AC 161 ms
28,224 KB
testcase_19 AC 159 ms
28,224 KB
testcase_20 AC 161 ms
28,284 KB
testcase_21 AC 159 ms
28,284 KB
testcase_22 AC 157 ms
28,176 KB
testcase_23 AC 157 ms
28,424 KB
testcase_24 AC 157 ms
28,220 KB
testcase_25 AC 160 ms
28,468 KB
testcase_26 AC 155 ms
27,940 KB
testcase_27 AC 155 ms
28,056 KB
testcase_28 AC 159 ms
28,216 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,x=gets.split.map &:to_i
s=gets.split.map &:to_i
p s.sum-(n-1)*x
0