結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー maimai
提出日時 2017-03-29 13:20:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 252 ms / 2,000 ms
コード長 48 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 43,028 KB
最終ジャッジ日時 2023-09-20 20:11:14
合計ジャッジ時間 3,774 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,172 KB
testcase_01 AC 80 ms
15,148 KB
testcase_02 AC 77 ms
15,064 KB
testcase_03 AC 78 ms
15,040 KB
testcase_04 AC 78 ms
15,232 KB
testcase_05 AC 82 ms
15,140 KB
testcase_06 AC 78 ms
15,308 KB
testcase_07 AC 82 ms
15,540 KB
testcase_08 AC 102 ms
18,400 KB
testcase_09 AC 119 ms
20,752 KB
testcase_10 AC 193 ms
35,396 KB
testcase_11 AC 194 ms
35,892 KB
testcase_12 AC 196 ms
36,432 KB
testcase_13 AC 201 ms
36,848 KB
testcase_14 AC 201 ms
37,412 KB
testcase_15 AC 205 ms
37,872 KB
testcase_16 AC 252 ms
43,028 KB
testcase_17 AC 79 ms
15,084 KB
testcase_18 AC 78 ms
15,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n=gets.to_i
p gets.split.map!(&:to_i).inject(:+)
0