結果

問題 No.273 回文分解
ユーザー dangodango
提出日時 2023-06-16 20:19:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 76,100 KB
最終ジャッジ日時 2023-09-06 17:41:04
合計ジャッジ時間 5,153 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,444 KB
testcase_01 AC 73 ms
71,368 KB
testcase_02 AC 83 ms
71,256 KB
testcase_03 AC 76 ms
71,364 KB
testcase_04 AC 76 ms
71,272 KB
testcase_05 AC 77 ms
71,388 KB
testcase_06 AC 78 ms
71,096 KB
testcase_07 AC 89 ms
71,580 KB
testcase_08 AC 73 ms
71,276 KB
testcase_09 AC 75 ms
71,532 KB
testcase_10 AC 75 ms
71,100 KB
testcase_11 AC 75 ms
71,408 KB
testcase_12 AC 76 ms
71,496 KB
testcase_13 AC 74 ms
71,568 KB
testcase_14 AC 78 ms
76,068 KB
testcase_15 AC 75 ms
71,448 KB
testcase_16 AC 74 ms
71,516 KB
testcase_17 AC 74 ms
71,068 KB
testcase_18 AC 75 ms
71,096 KB
testcase_19 AC 74 ms
71,464 KB
testcase_20 AC 76 ms
71,536 KB
testcase_21 AC 76 ms
71,604 KB
testcase_22 AC 79 ms
76,032 KB
testcase_23 AC 78 ms
76,100 KB
testcase_24 AC 79 ms
75,928 KB
testcase_25 AC 78 ms
75,944 KB
testcase_26 AC 80 ms
75,892 KB
testcase_27 AC 78 ms
76,052 KB
testcase_28 AC 79 ms
75,752 KB
testcase_29 AC 77 ms
71,380 KB
testcase_30 AC 78 ms
75,908 KB
testcase_31 AC 74 ms
71,388 KB
testcase_32 AC 73 ms
71,100 KB
testcase_33 AC 73 ms
71,256 KB
testcase_34 AC 73 ms
71,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
N = len(S)
C = 0
for i in range(N):
	for j in range(i + 1, N + 1):
		T = S[i:j]
		if T == T[::-1]: 
			if C < len(T) < N: C = len(T)
print(C)
0