結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー LaLa
提出日時 2020-11-23 14:13:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 281 ms / 2,000 ms
コード長 82 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 47,020 KB
最終ジャッジ日時 2023-09-30 23:45:59
合計ジャッジ時間 4,040 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,088 KB
testcase_01 AC 76 ms
15,296 KB
testcase_02 AC 75 ms
15,128 KB
testcase_03 AC 75 ms
15,268 KB
testcase_04 AC 74 ms
15,072 KB
testcase_05 AC 74 ms
15,092 KB
testcase_06 AC 75 ms
15,428 KB
testcase_07 AC 80 ms
15,564 KB
testcase_08 AC 100 ms
18,628 KB
testcase_09 AC 123 ms
21,604 KB
testcase_10 AC 212 ms
38,620 KB
testcase_11 AC 220 ms
39,020 KB
testcase_12 AC 223 ms
39,540 KB
testcase_13 AC 228 ms
40,412 KB
testcase_14 AC 229 ms
40,824 KB
testcase_15 AC 227 ms
41,252 KB
testcase_16 AC 281 ms
47,020 KB
testcase_17 AC 76 ms
15,280 KB
testcase_18 AC 76 ms
15,332 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N=gets.to_i
A=gets.split.map(&:to_i)
sum=0

A.each do |i|
    sum+=i
end

puts sum
0