結果

問題 No.342 一番ワロタww
ユーザー cielciel
提出日時 2016-02-13 21:24:55
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 11,832 KB
実行使用メモリ 16,052 KB
最終ジャッジ日時 2023-10-22 05:01:05
合計ジャッジ時間 3,141 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a=gets.chars.chunk{|c|c=='w'}.drop_while{|k,v|k==true}.each_slice(2).map{|(a,b),(c,d)|[-(d||[]).size,b*'']}.sort
puts a.take_while{|x,y|x==a[0][0]}.map(&:last)
0