結果

問題 No.52 よくある文字列の問題
ユーザー JunOnumaJunOnuma
提出日時 2017-06-14 16:46:45
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 7,064 KB
実行使用メモリ 6,456 KB
最終ジャッジ日時 2023-10-25 02:01:26
合計ジャッジ時間 748 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,420 KB
testcase_01 AC 10 ms
6,420 KB
testcase_02 AC 10 ms
6,420 KB
testcase_03 AC 10 ms
6,420 KB
testcase_04 AC 12 ms
6,420 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 11 ms
6,420 KB
testcase_09 AC 11 ms
6,420 KB
testcase_10 AC 11 ms
6,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def func(s):
    if max(s) == min(s):
        return 1
    elif s[0] == s[-1]:
        return func(s[1:])
    else:
        return func(s[1:]) + func(s[:-1])

s = raw_input()
print func(s)
0