結果

問題 No.599 回文かい
ユーザー koromooo_koromooo_
提出日時 2017-11-25 00:01:59
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 343 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 13,880 KB
最終ジャッジ日時 2024-05-05 11:47:18
合計ジャッジ時間 5,627 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,400 KB
testcase_01 AC 10 ms
6,272 KB
testcase_02 AC 10 ms
6,272 KB
testcase_03 AC 9 ms
6,400 KB
testcase_04 AC 34 ms
6,400 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
evil_0.txt -- -
権限があれば一括ダウンロードができます

ソースコード

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