結果

問題 No.588 空白と回文
ユーザー tailstails
提出日時 2017-11-03 22:34:29
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 175 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 11,936 KB
最終ジャッジ日時 2024-05-02 05:06:41
合計ジャッジ時間 3,616 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
10,368 KB
testcase_01 AC 4 ms
5,376 KB
testcase_02 AC 4 ms
5,376 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$_=<>;chop;$l=length;
for$a(0..$l-1){
	for$b($a..$l-1){
		$c=0;
		for$i($a..$b){
			$c+=substr($_,$i,1)eq substr($_,$a+$b-$i,1);
		}
		if($d<$c){
			$d=$c;
		}
	}
}
print$d+0;
0