結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー cielciel
提出日時 2017-03-21 15:49:21
言語 Ruby
(3.3.0)
結果
AC  
実行時間 279 ms / 2,000 ms
コード長 42 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 11,164 KB
実行使用メモリ 51,032 KB
最終ジャッジ日時 2023-09-18 15:25:57
合計ジャッジ時間 4,478 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,132 KB
testcase_01 AC 83 ms
15,160 KB
testcase_02 AC 83 ms
15,324 KB
testcase_03 AC 83 ms
15,348 KB
testcase_04 AC 83 ms
15,056 KB
testcase_05 AC 83 ms
15,120 KB
testcase_06 AC 83 ms
15,460 KB
testcase_07 AC 89 ms
15,740 KB
testcase_08 AC 116 ms
19,352 KB
testcase_09 AC 133 ms
22,464 KB
testcase_10 AC 218 ms
41,568 KB
testcase_11 AC 218 ms
42,244 KB
testcase_12 AC 221 ms
43,228 KB
testcase_13 AC 224 ms
43,496 KB
testcase_14 AC 226 ms
44,456 KB
testcase_15 AC 229 ms
44,772 KB
testcase_16 AC 279 ms
51,032 KB
testcase_17 AC 85 ms
15,056 KB
testcase_18 AC 85 ms
15,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

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