結果
問題 | No.483 マッチ並べ |
ユーザー | tails |
提出日時 | 2017-02-10 23:04:24 |
言語 | Perl (5.38.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 525 bytes |
コンパイル時間 | 555 ms |
コンパイル使用メモリ | 5,360 KB |
実行使用メモリ | 8,780 KB |
最終ジャッジ日時 | 2023-08-28 11:32:50 |
合計ジャッジ時間 | 4,097 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
8,460 KB |
testcase_01 | AC | 28 ms
8,624 KB |
testcase_02 | AC | 29 ms
8,592 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 30 ms
8,424 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 30 ms
8,572 KB |
testcase_12 | AC | 30 ms
8,708 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 29 ms
8,496 KB |
testcase_17 | AC | 29 ms
8,460 KB |
testcase_18 | AC | 29 ms
8,688 KB |
testcase_19 | WA | - |
testcase_20 | AC | 29 ms
8,560 KB |
testcase_21 | AC | 29 ms
8,524 KB |
testcase_22 | AC | 29 ms
8,696 KB |
testcase_23 | AC | 29 ms
8,716 KB |
testcase_24 | AC | 29 ms
8,680 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 30 ms
8,460 KB |
testcase_28 | AC | 30 ms
8,508 KB |
testcase_29 | AC | 30 ms
8,636 KB |
testcase_30 | WA | - |
testcase_31 | AC | 31 ms
8,700 KB |
testcase_32 | AC | 30 ms
8,548 KB |
testcase_33 | AC | 29 ms
8,612 KB |
testcase_34 | AC | 30 ms
8,564 KB |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | AC | 30 ms
8,520 KB |
testcase_41 | AC | 30 ms
8,560 KB |
testcase_42 | AC | 30 ms
8,636 KB |
testcase_43 | WA | - |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | WA | - |
testcase_47 | WA | - |
testcase_48 | WA | - |
testcase_49 | WA | - |
testcase_50 | WA | - |
testcase_51 | WA | - |
testcase_52 | WA | - |
testcase_53 | AC | 29 ms
8,488 KB |
testcase_54 | AC | 29 ms
8,404 KB |
testcase_55 | AC | 29 ms
8,684 KB |
コンパイルメッセージ
Name "main::i" used only once: possible typo at Main.pl line 2. Main.pl syntax OK
ソースコード
$n=<>; for$i(1..$n){ ($r1,$c1,$r2,$c2)=glob<>; push@{"$r1,$c1"},"$r2,$c2"; push@{"$r2,$c2"},"$r1,$c1"; $a{"$r1,$c1,$r2,$c2"}=1; $a{"$r2,$c2,$r1,$c1"}=1; } sub hoge1 { my($yx)=@_; @$yx=grep{$a{"$yx,$_"}}@$yx; if(@$yx==1){ $z=pop@$yx; $a{"$yx,$z"}=0; $a{"z,$yx"}=0; hoge1($z); } } for$y(1..100){ for$x(1..100){ hoge1("$y,$x"); } } sub hoge2 { my($yx)=@_; if(@$yx>2){ $f=1; } my@t=@$yx; @$yx=(); for(@t){ hoge2($_); } } for$y(1..100){ for$x(1..100){ hoge2("$y,$x"); } } print $f?NO:YES;