結果

問題 No.233 めぐるはめぐる (3)
ユーザー tailstails
提出日時 2015-06-27 00:14:52
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 271 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 67,820 KB
最終ジャッジ日時 2023-09-22 02:44:16
合計ジャッジ時間 4,064 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
57,000 KB
testcase_01 AC 98 ms
36,580 KB
testcase_02 AC 48 ms
20,472 KB
testcase_03 AC 108 ms
39,860 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "inabameguru" may clash with future reserved word at Main.pl line 10.
Main.pl syntax OK

ソースコード

diff #

sub f{
	my($a,$u)=@_;
	if($u==0x7ff){
		$a.="\n";
		exit!print$a if!$$a && $a!~/[nbmgr]$/;
		return;
	}
	for(0..10){
		if(!($u&1<<$_)){
			my $c=$a.substr(inabameguru,$_,1);
			if($c!~/[nbmgr][nbmgr]/){
				f($c,$u|1<<$_);
			}
		}
	}
}
<>;$$_++for<>;f('',0);
print"NO";
0