結果

問題 No.588 空白と回文
ユーザー convexineqconvexineq
提出日時 2021-03-08 02:12:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 75,536 KB
最終ジャッジ日時 2024-04-17 18:21:28
合計ジャッジ時間 2,229 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,312 KB
testcase_01 AC 35 ms
52,820 KB
testcase_02 AC 36 ms
52,556 KB
testcase_03 AC 84 ms
75,024 KB
testcase_04 AC 38 ms
53,616 KB
testcase_05 AC 36 ms
53,072 KB
testcase_06 AC 42 ms
60,200 KB
testcase_07 AC 37 ms
52,828 KB
testcase_08 AC 35 ms
53,184 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 84 ms
75,088 KB
testcase_12 AC 79 ms
75,304 KB
testcase_13 WA -
testcase_14 AC 34 ms
52,488 KB
testcase_15 WA -
testcase_16 AC 35 ms
53,364 KB
testcase_17 AC 72 ms
75,308 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 81 ms
75,536 KB
testcase_21 AC 79 ms
75,212 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 37 ms
52,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(s,t):
    return sum(si==ti for si,ti in zip(s,s[::-1]))

s = input()
ans = 0
for i in range(len(s)):
    ans = max(ans,solve(s[i:],s[::-1]))
print(ans)
0