結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,284 KB
testcase_01 AC 78 ms
15,056 KB
testcase_02 AC 83 ms
15,232 KB
testcase_03 AC 78 ms
15,124 KB
testcase_04 AC 79 ms
15,136 KB
testcase_05 AC 78 ms
15,232 KB
testcase_06 AC 78 ms
15,112 KB
testcase_07 AC 82 ms
15,408 KB
testcase_08 AC 101 ms
18,484 KB
testcase_09 AC 120 ms
21,620 KB
testcase_10 AC 197 ms
38,728 KB
testcase_11 AC 199 ms
39,084 KB
testcase_12 AC 201 ms
39,568 KB
testcase_13 AC 204 ms
40,252 KB
testcase_14 AC 207 ms
40,652 KB
testcase_15 AC 208 ms
41,260 KB
testcase_16 AC 258 ms
47,172 KB
testcase_17 AC 77 ms
15,096 KB
testcase_18 AC 78 ms
15,264 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