結果

問題 No.470 Inverse S+T Problem
ユーザー tailstails
提出日時 2016-12-20 03:20:02
言語 Perl
(5.38.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 277 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 5,380 KB
実行使用メモリ 4,976 KB
最終ジャッジ日時 2023-08-24 01:12:07
合計ジャッジ時間 1,907 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 3 ms
4,608 KB
testcase_07 AC 3 ms
4,568 KB
testcase_08 AC 3 ms
4,692 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 3 ms
4,672 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 3 ms
4,740 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 4 ms
4,920 KB
testcase_25 WA -
testcase_26 AC 3 ms
4,728 KB
testcase_27 WA -
testcase_28 AC 2 ms
4,616 KB
testcase_29 AC 3 ms
4,700 KB
testcase_30 AC 3 ms
4,704 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub e{exit!print"Impossible"}sub f{$1[$_]||=${$1[$_]="$` $'
",g($`,$')&&return 1while$@[$_]=~//g}}sub g{my($a,$b)=@_;!$v{$a}&!$v{$b}&&($v{$a}=$v{$b}=1,map{f||return$v{$a}=$v{$b}=0for@$_}$a,$b)}e if<>>52;map{chop;map{push@$_,$-}$',$`while/\B/g;++$-}@@=<>;f||e for 0..$#@;print@1
0