結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー tacker530tacker530
提出日時 2021-11-22 18:18:44
言語 Ruby
(3.3.0)
結果
AC  
実行時間 375 ms / 3,000 ms
コード長 195 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 11,216 KB
実行使用メモリ 15,456 KB
最終ジャッジ日時 2023-09-06 11:43:23
合計ジャッジ時間 4,955 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,200 KB
testcase_01 AC 81 ms
15,356 KB
testcase_02 AC 81 ms
15,152 KB
testcase_03 AC 79 ms
15,120 KB
testcase_04 AC 80 ms
15,064 KB
testcase_05 AC 81 ms
15,164 KB
testcase_06 AC 82 ms
15,256 KB
testcase_07 AC 87 ms
15,356 KB
testcase_08 AC 114 ms
15,372 KB
testcase_09 AC 144 ms
15,208 KB
testcase_10 AC 319 ms
15,408 KB
testcase_11 AC 327 ms
15,384 KB
testcase_12 AC 332 ms
15,456 KB
testcase_13 AC 338 ms
15,140 KB
testcase_14 AC 338 ms
15,312 KB
testcase_15 AC 348 ms
15,184 KB
testcase_16 AC 375 ms
15,172 KB
testcase_17 AC 81 ms
15,328 KB
testcase_18 AC 79 ms
15,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
N = gets.chomp.to_i

count = 0
N.times do |i|
    count += gets.chomp.to_i
end
puts "#{count}"
0