結果

問題 No.342 一番ワロタww
ユーザー cielciel
提出日時 2016-02-13 21:26:56
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 11,928 KB
実行使用メモリ 16,140 KB
最終ジャッジ日時 2023-10-22 05:01:09
合計ジャッジ時間 2,419 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
16,116 KB
testcase_01 AC 84 ms
16,116 KB
testcase_02 AC 89 ms
16,116 KB
testcase_03 AC 85 ms
16,116 KB
testcase_04 AC 85 ms
16,116 KB
testcase_05 AC 90 ms
16,116 KB
testcase_06 AC 85 ms
16,116 KB
testcase_07 AC 85 ms
16,116 KB
testcase_08 AC 85 ms
16,116 KB
testcase_09 AC 85 ms
16,116 KB
testcase_10 AC 87 ms
16,116 KB
testcase_11 WA -
testcase_12 AC 84 ms
16,116 KB
testcase_13 AC 84 ms
16,116 KB
testcase_14 AC 85 ms
16,116 KB
testcase_15 AC 85 ms
16,116 KB
testcase_16 AC 85 ms
16,116 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],-1].min}.map(&:last)
0