結果

問題 No.870 無敵囲い
ユーザー tailstails
提出日時 2019-08-30 21:23:44
言語 Perl
(5.38.2)
結果
AC  
実行時間 7 ms / 300 ms
コード長 267 bytes
コンパイル時間 661 ms
コンパイル使用メモリ 5,432 KB
実行使用メモリ 5,364 KB
最終ジャッジ日時 2023-09-11 16:05:46
合計ジャッジ時間 1,807 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,180 KB
testcase_01 AC 6 ms
5,120 KB
testcase_02 AC 6 ms
5,236 KB
testcase_03 AC 6 ms
5,228 KB
testcase_04 AC 7 ms
5,124 KB
testcase_05 AC 6 ms
5,108 KB
testcase_06 AC 6 ms
5,288 KB
testcase_07 AC 6 ms
5,120 KB
testcase_08 AC 6 ms
5,328 KB
testcase_09 AC 6 ms
5,124 KB
testcase_10 AC 6 ms
5,228 KB
testcase_11 AC 6 ms
5,108 KB
testcase_12 AC 6 ms
5,176 KB
testcase_13 AC 6 ms
5,228 KB
testcase_14 AC 7 ms
5,204 KB
testcase_15 AC 6 ms
5,108 KB
testcase_16 AC 6 ms
5,232 KB
testcase_17 AC 6 ms
5,116 KB
testcase_18 AC 6 ms
5,288 KB
testcase_19 AC 6 ms
5,180 KB
testcase_20 AC 6 ms
5,364 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$ax=2;$ay=8;
$bx=3;$by=9;
$cx=7;$cy=9;
<>;
while(<>){
	($x0,$y0,$x1,$y1)=glob;
	if($ax==$x0&&$ay==$y0){$ax=$x1;$ay=$y1;}
	if($bx==$x0&&$by==$y0){$bx=$x1;$by=$y1;}
	if($cx==$x0&&$cy==$y0){$cx=$x1;$cy=$y1;}
}
print $ax==5&&$ay==8&&$bx==4&&$by==8&&$cx==6&&$cy==8?YES:NO
0