結果

問題 No.179 塗り分け
ユーザー tailstails
提出日時 2015-04-06 00:04:54
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 703 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 7,168 KB
最終ジャッジ日時 2024-04-10 11:22:36
合計ジャッジ時間 38,373 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
6,816 KB
testcase_01 AC 4 ms
6,940 KB
testcase_02 AC 3 ms
6,940 KB
testcase_03 AC 4 ms
6,944 KB
testcase_04 AC 4 ms
6,940 KB
testcase_05 AC 328 ms
6,940 KB
testcase_06 AC 9 ms
6,940 KB
testcase_07 WA -
testcase_08 AC 2,714 ms
7,168 KB
testcase_09 WA -
testcase_10 AC 34 ms
7,168 KB
testcase_11 AC 31 ms
7,040 KB
testcase_12 AC 2,404 ms
7,040 KB
testcase_13 AC 7 ms
6,940 KB
testcase_14 AC 21 ms
6,944 KB
testcase_15 AC 3 ms
6,944 KB
testcase_16 AC 3 ms
6,940 KB
testcase_17 AC 3 ms
6,940 KB
testcase_18 AC 87 ms
7,168 KB
testcase_19 AC 84 ms
7,040 KB
testcase_20 AC 2,544 ms
7,040 KB
testcase_21 AC 2,857 ms
7,168 KB
testcase_22 TLE -
testcase_23 AC 34 ms
7,168 KB
testcase_24 AC 2,742 ms
7,168 KB
testcase_25 AC 46 ms
7,168 KB
testcase_26 AC 402 ms
7,168 KB
testcase_27 AC 2,716 ms
7,168 KB
testcase_28 AC 130 ms
7,168 KB
testcase_29 AC 2,713 ms
7,168 KB
testcase_30 AC 1,109 ms
7,168 KB
testcase_31 AC 2,721 ms
7,168 KB
testcase_32 AC 745 ms
7,168 KB
testcase_33 AC 2,715 ms
7,168 KB
testcase_34 AC 519 ms
7,168 KB
testcase_35 AC 2,711 ms
7,168 KB
testcase_36 AC 4 ms
6,940 KB
testcase_37 AC 4 ms
6,940 KB
testcase_38 AC 4 ms
6,940 KB
testcase_39 AC 4 ms
6,948 KB
testcase_40 AC 4 ms
6,940 KB
testcase_41 AC 3 ms
6,940 KB
testcase_42 AC 4 ms
6,944 KB
testcase_43 AC 119 ms
6,944 KB
testcase_44 AC 393 ms
6,940 KB
testcase_45 AC 14 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($h,$w)=<>=~/\d+/g;
$/=\1;
for$y(0..$h-1){
    for$x(0..$w-1){
        $a[$x|$y<<8]=<>;
    }
    die if <> ne "\n";
}

for$v(0..$h-1){
    for$u(1-$w..$w-1){
        if($v+$u){
          hoge1:{
              @b=@a;
              for$y(0..$h-1){
                  for$x(0..$w-1){
                      if($b[$x|$y<<8] eq '#'){
                          if($x+$u>=0 && $b[$x+$u|$y+$v<<8] eq '#'){
                              $b[$x+$u|$y+$v<<8]=0;
                          }else{
                              last hoge1;
                          }
                      }
                  }
              }
              print 'YES';
              exit;
            }
        }
    }
}
print 'NO';
0