結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー letrangerletranger
提出日時 2017-04-08 16:32:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 260 ms / 2,000 ms
コード長 69 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,456 KB
実行使用メモリ 48,264 KB
最終ジャッジ日時 2023-09-24 23:27:37
合計ジャッジ時間 3,900 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,084 KB
testcase_01 AC 83 ms
15,156 KB
testcase_02 AC 81 ms
15,268 KB
testcase_03 AC 79 ms
15,348 KB
testcase_04 AC 81 ms
15,284 KB
testcase_05 AC 79 ms
15,300 KB
testcase_06 AC 80 ms
15,260 KB
testcase_07 AC 85 ms
15,296 KB
testcase_08 AC 105 ms
18,864 KB
testcase_09 AC 122 ms
21,848 KB
testcase_10 AC 202 ms
39,024 KB
testcase_11 AC 202 ms
39,372 KB
testcase_12 AC 203 ms
39,840 KB
testcase_13 AC 205 ms
40,220 KB
testcase_14 AC 211 ms
42,288 KB
testcase_15 AC 212 ms
42,936 KB
testcase_16 AC 260 ms
48,264 KB
testcase_17 AC 80 ms
15,156 KB
testcase_18 AC 83 ms
15,120 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
puts gets.split(" ").first(N).map(&:to_i).inject(0, :+)
0