結果

問題 No.470 Inverse S+T Problem
ユーザー tailstails
提出日時 2021-03-23 16:17:55
言語 Perl
(5.38.2)
結果
AC  
実行時間 441 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 5,380 KB
実行使用メモリ 60,348 KB
最終ジャッジ日時 2023-08-24 01:43:46
合計ジャッジ時間 3,274 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,656 KB
testcase_01 AC 3 ms
4,732 KB
testcase_02 AC 3 ms
4,736 KB
testcase_03 AC 3 ms
4,812 KB
testcase_04 AC 2 ms
4,836 KB
testcase_05 AC 2 ms
4,804 KB
testcase_06 AC 441 ms
60,348 KB
testcase_07 AC 440 ms
60,336 KB
testcase_08 AC 438 ms
60,208 KB
testcase_09 AC 3 ms
4,820 KB
testcase_10 AC 3 ms
4,700 KB
testcase_11 AC 4 ms
4,788 KB
testcase_12 AC 3 ms
4,556 KB
testcase_13 AC 3 ms
4,708 KB
testcase_14 AC 3 ms
4,784 KB
testcase_15 AC 3 ms
4,612 KB
testcase_16 AC 3 ms
4,840 KB
testcase_17 AC 3 ms
4,608 KB
testcase_18 AC 3 ms
4,600 KB
testcase_19 AC 3 ms
4,736 KB
testcase_20 AC 3 ms
4,808 KB
testcase_21 AC 3 ms
4,740 KB
testcase_22 AC 3 ms
4,640 KB
testcase_23 AC 3 ms
4,848 KB
testcase_24 AC 4 ms
4,776 KB
testcase_25 AC 3 ms
4,584 KB
testcase_26 AC 3 ms
4,948 KB
testcase_27 AC 3 ms
4,888 KB
testcase_28 AC 59 ms
12,940 KB
testcase_29 AC 11 ms
6,376 KB
testcase_30 AC 33 ms
9,604 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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