結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー simansiman
提出日時 2023-01-18 18:57:13
言語 Ruby
(3.3.0)
結果
AC  
実行時間 265 ms / 2,000 ms
コード長 53 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 11,220 KB
実行使用メモリ 47,068 KB
最終ジャッジ日時 2023-09-02 12:54:48
合計ジャッジ時間 4,251 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,180 KB
testcase_01 AC 84 ms
15,208 KB
testcase_02 AC 84 ms
15,196 KB
testcase_03 AC 85 ms
15,100 KB
testcase_04 AC 88 ms
15,192 KB
testcase_05 AC 84 ms
15,256 KB
testcase_06 AC 82 ms
15,308 KB
testcase_07 AC 89 ms
15,328 KB
testcase_08 AC 108 ms
18,576 KB
testcase_09 AC 131 ms
21,592 KB
testcase_10 AC 207 ms
38,604 KB
testcase_11 AC 208 ms
39,060 KB
testcase_12 AC 209 ms
39,564 KB
testcase_13 AC 212 ms
40,280 KB
testcase_14 AC 216 ms
40,820 KB
testcase_15 AC 220 ms
41,368 KB
testcase_16 AC 265 ms
47,068 KB
testcase_17 AC 83 ms
15,200 KB
testcase_18 AC 84 ms
15,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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

puts A.sum
0