結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー arito_asuarito_asu
提出日時 2020-06-13 08:17:21
言語 Ruby
(3.3.0)
結果
AC  
実行時間 267 ms / 2,000 ms
コード長 41 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 11,476 KB
実行使用メモリ 47,144 KB
最終ジャッジ日時 2023-09-07 00:32:41
合計ジャッジ時間 5,002 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,300 KB
testcase_01 AC 80 ms
15,268 KB
testcase_02 AC 80 ms
15,000 KB
testcase_03 AC 80 ms
15,064 KB
testcase_04 AC 80 ms
15,112 KB
testcase_05 AC 81 ms
15,108 KB
testcase_06 AC 80 ms
15,268 KB
testcase_07 AC 85 ms
15,604 KB
testcase_08 AC 106 ms
18,764 KB
testcase_09 AC 126 ms
21,588 KB
testcase_10 AC 201 ms
38,472 KB
testcase_11 AC 204 ms
39,220 KB
testcase_12 AC 207 ms
39,540 KB
testcase_13 AC 210 ms
40,328 KB
testcase_14 AC 213 ms
40,948 KB
testcase_15 AC 213 ms
41,340 KB
testcase_16 AC 267 ms
47,144 KB
testcase_17 AC 78 ms
15,180 KB
testcase_18 AC 80 ms
15,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - a
Syntax OK

ソースコード

diff #

a = gets
p gets.split.map{|x|x.to_i}.sum
0