![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hash
文章平均质量分 68
giao源
这是一位来自广东靓仔,平时喜欢收收房租,打打代码
展开
-
SPOJ - EPALIN - Extend to Palindrome
Your task is, given an integer N, to make a palindrome (word that reads the same when you reverse it) of length at least N (1原创 2022-07-04 15:59:38 · 162 阅读 · 0 评论 -
学奥一本通1459:friends BalticOI 2014
有三个好朋友喜欢在一起玩游戏,A 君写下一个字符串 S,B 君将其复制一遍得到 T,C 君在 T 的任意位置(包括首尾)插入一个字符得到 U。现在你得到了 U,请你找出 S。【输入】 第一行一个数 N,表示 U 的长度。 第二行一个字符串 U,保证 U 由大写字母组成。【输出】 输出一行,若 S 不存在,输出 NOT POSSIBLE。若 S 不唯一,输出 NOT UNIQUE,否则输出 S。【输入样例】 【输出样例】 【提示】 样例输入2: 样例输出2: 样例输入3: 样例输出3: 数据范围:2≤N≤20原创 2022-06-28 21:10:24 · 951 阅读 · 0 评论