結果

問題 No.179 塗り分け
ユーザー gigurururugigurururu
提出日時 2015-04-06 10:25:40
言語 Ruby
(3.2.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 296 bytes
コンパイル時間 561 ms
コンパイル使用メモリ 11,300 KB
実行使用メモリ 16,036 KB
最終ジャッジ日時 2023-09-23 03:44:04
合計ジャッジ時間 8,947 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,232 KB
testcase_01 AC 84 ms
15,148 KB
testcase_02 AC 83 ms
15,036 KB
testcase_03 AC 83 ms
15,216 KB
testcase_04 AC 83 ms
15,104 KB
testcase_05 AC 93 ms
15,344 KB
testcase_06 AC 83 ms
15,028 KB
testcase_07 AC 83 ms
15,100 KB
testcase_08 AC 87 ms
15,196 KB
testcase_09 AC 117 ms
15,196 KB
testcase_10 AC 87 ms
15,100 KB
testcase_11 AC 85 ms
15,232 KB
testcase_12 AC 175 ms
15,240 KB
testcase_13 AC 83 ms
15,104 KB
testcase_14 AC 82 ms
15,040 KB
testcase_15 AC 82 ms
15,120 KB
testcase_16 AC 82 ms
15,028 KB
testcase_17 AC 82 ms
15,072 KB
testcase_18 AC 85 ms
15,164 KB
testcase_19 AC 85 ms
15,232 KB
testcase_20 AC 116 ms
15,304 KB
testcase_21 AC 258 ms
15,152 KB
testcase_22 AC 702 ms
15,312 KB
testcase_23 AC 85 ms
15,100 KB
testcase_24 AC 126 ms
15,388 KB
testcase_25 AC 84 ms
15,256 KB
testcase_26 AC 88 ms
15,248 KB
testcase_27 AC 93 ms
15,548 KB
testcase_28 AC 87 ms
15,180 KB
testcase_29 AC 93 ms
15,708 KB
testcase_30 AC 94 ms
15,576 KB
testcase_31 AC 107 ms
15,536 KB
testcase_32 AC 87 ms
15,800 KB
testcase_33 AC 94 ms
15,880 KB
testcase_34 AC 84 ms
15,804 KB
testcase_35 AC 96 ms
16,036 KB
testcase_36 AC 82 ms
15,136 KB
testcase_37 AC 83 ms
15,284 KB
testcase_38 WA -
testcase_39 AC 83 ms
15,124 KB
testcase_40 AC 81 ms
15,232 KB
testcase_41 AC 82 ms
15,100 KB
testcase_42 AC 82 ms
15,292 KB
testcase_43 AC 83 ms
15,284 KB
testcase_44 AC 86 ms
15,512 KB
testcase_45 AC 87 ms
15,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
m=$<.read

ans=false
if m[?#]
  (1...m.size).each{|i|
    tm=m.dup
    m.size.times{|j|
      if tm[j]==?#
        if tm[i+j]==?#
          tm[j]=tm[i+j]=?.
        else
          break
        end
      end
    }
    if !tm[?#]
      ans=true
      break
    end
  }
end
puts ans ?:YES:"NO"
0