結果

問題 No.52 よくある文字列の問題
ユーザー %20%20
提出日時 2017-08-19 19:25:46
言語 Perl
(5.38.2)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 135 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 5,368 KB
実行使用メモリ 5,620 KB
最終ジャッジ日時 2023-10-22 04:10:15
合計ジャッジ時間 937 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
5,564 KB
testcase_01 AC 3 ms
5,564 KB
testcase_02 AC 4 ms
5,560 KB
testcase_03 AC 3 ms
5,564 KB
testcase_04 AC 4 ms
5,620 KB
testcase_05 AC 3 ms
5,564 KB
testcase_06 AC 4 ms
5,608 KB
testcase_07 AC 3 ms
5,572 KB
testcase_08 AC 3 ms
5,560 KB
testcase_09 AC 3 ms
5,564 KB
testcase_10 AC 3 ms
5,564 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

@S=<>=~/./g;
for$p(0..2**(@S-1)-1){
	($l,$r)=(0,$#S);
	$a='';
	$a.=$S[$p>>$_&1?$l++:$r--]for 0..@S-2;
	$h{$a.$S[$l]}=1
}
print~~keys%h
0