結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー LaLa
提出日時 2020-11-23 14:15:52
言語 Ruby
(3.3.0)
結果
AC  
実行時間 380 ms / 3,000 ms
コード長 82 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 11,404 KB
実行使用メモリ 19,496 KB
最終ジャッジ日時 2023-09-30 23:46:24
合計ジャッジ時間 5,350 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,084 KB
testcase_01 AC 80 ms
15,180 KB
testcase_02 AC 80 ms
15,084 KB
testcase_03 AC 81 ms
15,200 KB
testcase_04 AC 80 ms
15,088 KB
testcase_05 AC 80 ms
14,992 KB
testcase_06 AC 82 ms
15,240 KB
testcase_07 AC 88 ms
15,608 KB
testcase_08 AC 115 ms
15,552 KB
testcase_09 AC 146 ms
16,132 KB
testcase_10 AC 325 ms
18,400 KB
testcase_11 AC 328 ms
18,556 KB
testcase_12 AC 334 ms
18,524 KB
testcase_13 AC 339 ms
18,952 KB
testcase_14 AC 345 ms
18,748 KB
testcase_15 AC 348 ms
18,864 KB
testcase_16 AC 380 ms
19,496 KB
testcase_17 AC 81 ms
14,928 KB
testcase_18 AC 80 ms
14,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N=gets.to_i
A=N.times.map{gets.to_i}
sum=0

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

puts sum
0