結果
| 問題 |
No.233 めぐるはめぐる (3)
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2015-06-27 00:14:52 |
| 言語 | Perl (5.40.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 271 bytes |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 71,840 KB |
| 最終ジャッジ日時 | 2024-07-07 19:31:55 |
| 合計ジャッジ時間 | 4,276 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 4 TLE * 1 -- * 6 |
コンパイルメッセージ
Unquoted string "inabameguru" may clash with future reserved word at Main.pl line 10. Main.pl syntax OK
ソースコード
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";
tails