結果

問題 No.342 一番ワロタww
ユーザー Tsuneo YoshiokaTsuneo Yoshioka
提出日時 2016-02-12 22:51:09
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 11,868 KB
実行使用メモリ 16,052 KB
最終ジャッジ日時 2023-10-22 03:18:36
合計ジャッジ時間 2,065 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
16,052 KB
testcase_01 AC 76 ms
16,052 KB
testcase_02 AC 76 ms
16,052 KB
testcase_03 AC 79 ms
16,052 KB
testcase_04 AC 74 ms
16,052 KB
testcase_05 AC 76 ms
16,052 KB
testcase_06 AC 77 ms
16,052 KB
testcase_07 AC 74 ms
16,052 KB
testcase_08 AC 74 ms
16,052 KB
testcase_09 AC 71 ms
16,052 KB
testcase_10 AC 73 ms
16,052 KB
testcase_11 AC 71 ms
16,052 KB
testcase_12 AC 71 ms
16,052 KB
testcase_13 AC 72 ms
16,052 KB
testcase_14 WA -
testcase_15 AC 71 ms
16,052 KB
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s=gets.chomp
l=(s.split(/[^w]/).map(&:size)+[0]).max
puts (s.scan(/([^w]*)(w+)/) + [[0,""]]).select{|v| v[0]!="" && v[1].size==l}.map{|v| v[0]}
0