結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー tacker530tacker530
提出日時 2021-11-22 18:22:32
言語 Ruby
(3.3.0)
結果
AC  
実行時間 257 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 11,364 KB
実行使用メモリ 48,004 KB
最終ジャッジ日時 2023-09-06 11:47:39
合計ジャッジ時間 3,829 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,276 KB
testcase_01 AC 74 ms
15,188 KB
testcase_02 AC 73 ms
15,140 KB
testcase_03 AC 78 ms
15,316 KB
testcase_04 AC 78 ms
15,088 KB
testcase_05 AC 77 ms
15,084 KB
testcase_06 AC 76 ms
15,464 KB
testcase_07 AC 82 ms
15,612 KB
testcase_08 AC 97 ms
19,512 KB
testcase_09 AC 116 ms
22,188 KB
testcase_10 AC 187 ms
39,472 KB
testcase_11 AC 193 ms
39,856 KB
testcase_12 AC 201 ms
40,464 KB
testcase_13 AC 201 ms
41,288 KB
testcase_14 AC 202 ms
41,884 KB
testcase_15 AC 200 ms
42,288 KB
testcase_16 AC 257 ms
48,004 KB
testcase_17 AC 81 ms
15,060 KB
testcase_18 AC 81 ms
15,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: assigned but unused variable - count
Syntax OK

ソースコード

diff #

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

count = 0

A = gets.chomp.split.map(&:to_i)

puts "#{A.sum}"
0