結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー cielciel
提出日時 2017-03-21 15:49:39
言語 Ruby
(3.3.0)
結果
AC  
実行時間 245 ms / 3,000 ms
コード長 42 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 11,160 KB
実行使用メモリ 50,864 KB
最終ジャッジ日時 2023-08-26 16:58:26
合計ジャッジ時間 3,810 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,248 KB
testcase_01 AC 73 ms
15,136 KB
testcase_02 AC 76 ms
15,152 KB
testcase_03 AC 76 ms
15,280 KB
testcase_04 AC 75 ms
15,100 KB
testcase_05 AC 77 ms
15,256 KB
testcase_06 AC 74 ms
15,256 KB
testcase_07 AC 81 ms
15,584 KB
testcase_08 AC 105 ms
19,192 KB
testcase_09 AC 128 ms
22,828 KB
testcase_10 AC 200 ms
41,780 KB
testcase_11 AC 209 ms
42,308 KB
testcase_12 AC 207 ms
43,160 KB
testcase_13 AC 207 ms
43,820 KB
testcase_14 AC 207 ms
44,280 KB
testcase_15 AC 205 ms
44,864 KB
testcase_16 AC 245 ms
50,864 KB
testcase_17 AC 75 ms
15,316 KB
testcase_18 AC 76 ms
15,276 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n,*a=`dd`.split.map(&:to_i)
p a.reduce(:+)
0