土拨鼠串
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目背景
给定字符串, 如果其中有子串和子串,我们就称为土拨鼠串。如果只含有,则称为A串,如果只含有,则称为B串。其中,是的倒序。如:=“abc”,则=“cba”。
题目描述
给定和,求。
输入输出
输
若同时含有和, 输出Both;若为A串,输出A;若为B串,输出B;若不是土拨鼠串,输出None。
样例
abccba
abc
Both
提示
时间限制:1s 内存限制:6MB
中可能含有空白符,但和中没有。
zzy
- Status
- Done
- Rule
- Ledo
- Problem
- 4
- Start at
- 2024-5-26 15:45
- End at
- 2024-5-26 16:25
- Duration
- 0.7 hour(s)
- Host
- Partic.
- 2