結果

問題 No.599 回文かい
ユーザー koromooo_
提出日時 2017-11-25 00:12:00
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 343 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 15,872 KB
最終ジャッジ日時 2024-11-27 08:41:21
合計ジャッジ時間 41,195 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 RE * 4 TLE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

s = raw_input()
count = 1

def look_for_kai(st):
    global count
    left = 0
    right = len(st) - 1
    while True:
        if(left >= right):
            break
        if(st[:left+1] == st[right:]):
            count+=1
            look_for_kai(st[left+1:right])
        left += 1
        right -= 1

look_for_kai(s)
print count%1000000007
0