結果

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

テストケース

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

ソースコード

diff #

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

s = raw_input()
print func(s)
0