結果

問題 No.1954 CHECKER×CHECKER(2)
ユーザー tailstails
提出日時 2022-05-24 14:25:30
言語 Perl
(5.38.2)
結果
AC  
実行時間 10 ms / 1,000 ms
コード長 237 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 6,112 KB
実行使用メモリ 6,220 KB
最終ジャッジ日時 2023-10-20 18:47:59
合計ジャッジ時間 2,002 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
6,152 KB
testcase_01 AC 8 ms
6,152 KB
testcase_02 AC 8 ms
6,152 KB
testcase_03 AC 7 ms
6,148 KB
testcase_04 AC 8 ms
6,152 KB
testcase_05 AC 7 ms
6,152 KB
testcase_06 AC 7 ms
6,152 KB
testcase_07 AC 8 ms
6,156 KB
testcase_08 AC 7 ms
6,152 KB
testcase_09 AC 7 ms
6,148 KB
testcase_10 AC 7 ms
6,160 KB
testcase_11 AC 8 ms
6,160 KB
testcase_12 AC 7 ms
6,148 KB
testcase_13 AC 9 ms
6,216 KB
testcase_14 AC 8 ms
6,152 KB
testcase_15 AC 8 ms
6,152 KB
testcase_16 AC 7 ms
6,148 KB
testcase_17 AC 8 ms
6,152 KB
testcase_18 AC 7 ms
6,152 KB
testcase_19 AC 8 ms
6,160 KB
testcase_20 AC 8 ms
6,160 KB
testcase_21 AC 9 ms
6,212 KB
testcase_22 AC 10 ms
6,216 KB
testcase_23 AC 8 ms
6,160 KB
testcase_24 AC 10 ms
6,216 KB
testcase_25 AC 8 ms
6,216 KB
testcase_26 AC 8 ms
6,152 KB
testcase_27 AC 7 ms
6,192 KB
testcase_28 AC 9 ms
6,212 KB
testcase_29 AC 8 ms
6,152 KB
testcase_30 AC 10 ms
6,220 KB
testcase_31 AC 8 ms
6,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Reversed /= operator at Main.pl line 5.
Main.pl syntax OK

ソースコード

diff #

sub x{exit!print"No"}
($h,$w)=glob<>;
@s=<>;
($s[0]^$s[$_])=~/^(.)\1*.$/||x for 1..$h-1;
$t[$`][$']=/ / for@s[$h+1..$#s];
$t[1][$_]|$s[$_-1]ne$s[$_]||x for 1..$h-1;
$t[2][$_]|vec($s[0],$_-1,8)-vec($s[0],$_,8)||x for 1..$w-1;
print"Yes";
0