結果
| 問題 | No.1954 CHECKER×CHECKER(2) |
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2022-05-24 14:25:30 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 1,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 7,076 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-20 14:23:12 |
| 合計ジャッジ時間 | 1,527 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
コンパイルメッセージ
Reversed /= operator at Main.pl line 5. Main.pl syntax OK
ソースコード
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";
tails