結果

問題 No.179 塗り分け
ユーザー syarosyaro
提出日時 2016-02-23 21:57:08
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 106 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,544 KB
最終ジャッジ日時 2024-04-14 05:59:21
合計ジャッジ時間 5,672 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
12,288 KB
testcase_01 AC 87 ms
12,160 KB
testcase_02 AC 87 ms
12,160 KB
testcase_03 AC 89 ms
12,160 KB
testcase_04 AC 90 ms
12,416 KB
testcase_05 WA -
testcase_06 AC 85 ms
12,416 KB
testcase_07 AC 86 ms
12,288 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 86 ms
12,160 KB
testcase_11 AC 86 ms
12,416 KB
testcase_12 WA -
testcase_13 AC 87 ms
12,288 KB
testcase_14 AC 87 ms
12,288 KB
testcase_15 AC 87 ms
12,288 KB
testcase_16 AC 85 ms
12,160 KB
testcase_17 AC 86 ms
12,160 KB
testcase_18 AC 86 ms
12,160 KB
testcase_19 AC 88 ms
12,160 KB
testcase_20 WA -
testcase_21 AC 131 ms
12,288 KB
testcase_22 WA -
testcase_23 AC 87 ms
12,160 KB
testcase_24 AC 102 ms
12,544 KB
testcase_25 AC 90 ms
12,288 KB
testcase_26 AC 94 ms
12,416 KB
testcase_27 AC 92 ms
12,288 KB
testcase_28 AC 90 ms
12,416 KB
testcase_29 AC 92 ms
12,160 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 91 ms
12,416 KB
testcase_33 AC 91 ms
12,288 KB
testcase_34 AC 91 ms
12,288 KB
testcase_35 WA -
testcase_36 AC 90 ms
12,288 KB
testcase_37 AC 90 ms
12,160 KB
testcase_38 WA -
testcase_39 AC 90 ms
12,160 KB
testcase_40 AC 91 ms
12,160 KB
testcase_41 AC 90 ms
12,288 KB
testcase_42 AC 90 ms
12,288 KB
testcase_43 AC 92 ms
12,544 KB
testcase_44 AC 93 ms
12,416 KB
testcase_45 AC 91 ms
12,416 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
s=gets p
r=1..$$
puts s[?#]&&r.any?{|d|t=s*1
r.all?{|i|t[i-=1]==?#?t[i+=d]==?#&&t[i]=?1:0}}?:YES:"NO"
0