結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー Makot3Makot3
提出日時 2017-06-28 21:58:44
言語 Ruby
(3.3.0)
結果
AC  
実行時間 298 ms / 3,000 ms
コード長 64 bytes
コンパイル時間 449 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 15,484 KB
最終ジャッジ日時 2023-08-26 17:11:26
合計ジャッジ時間 4,402 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
15,268 KB
testcase_01 AC 74 ms
15,236 KB
testcase_02 AC 71 ms
15,124 KB
testcase_03 AC 68 ms
15,036 KB
testcase_04 AC 69 ms
15,312 KB
testcase_05 AC 71 ms
15,088 KB
testcase_06 AC 71 ms
15,260 KB
testcase_07 AC 74 ms
15,408 KB
testcase_08 AC 97 ms
15,160 KB
testcase_09 AC 116 ms
15,184 KB
testcase_10 AC 246 ms
15,204 KB
testcase_11 AC 252 ms
15,208 KB
testcase_12 AC 264 ms
15,412 KB
testcase_13 AC 264 ms
15,432 KB
testcase_14 AC 265 ms
15,196 KB
testcase_15 AC 266 ms
15,200 KB
testcase_16 AC 298 ms
15,484 KB
testcase_17 AC 71 ms
15,284 KB
testcase_18 AC 70 ms
15,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
sum = 0
n.times do
  sum += gets.to_i
end
puts sum
0