結果

問題 No.3044 April Sum of Odd
ユーザー %20%20
提出日時 2019-04-01 22:05:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 179 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 11,536 KB
実行使用メモリ 36,896 KB
最終ジャッジ日時 2023-08-18 01:12:55
合計ジャッジ時間 2,178 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,032 KB
testcase_01 AC 80 ms
15,112 KB
testcase_02 AC 78 ms
15,244 KB
testcase_03 AC 92 ms
15,512 KB
testcase_04 AC 92 ms
15,192 KB
testcase_05 AC 91 ms
15,360 KB
testcase_06 AC 94 ms
15,564 KB
testcase_07 AC 84 ms
15,264 KB
testcase_08 AC 89 ms
15,384 KB
testcase_09 AC 90 ms
15,188 KB
testcase_10 AC 179 ms
36,896 KB
testcase_11 AC 108 ms
15,404 KB
testcase_12 AC 78 ms
15,248 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval'N,M='+gets.split*?,
gets.scan(/(?: ?\b\d*?[13579]\b){#{M},}/){|s|
	x=0
	s.split.map{|a|x+=a.to_i}
	p x
}
0