土拨鼠串
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
中可能含有空白符,但和中没有。
土拨鼠の比赛
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2023-4-20 20:15
- End at
- 2023-4-20 21:15
- Duration
- 1 hour(s)
- Host
- Partic.
- 0