随笔分类 - 09.字符串
摘要:题目链接:https://codeforces.com/contest/670/problem/F 题意: 有一个非负整数 ,在它的右侧添上它的位数后,被发送出去;例如 ,加上位数 ,变成 ,发送出去。 但是,接受者接收到的数字则是被打乱了的,例如接收到了 $0
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/603/A 题意: 给定一个 串,我们“交替子序列”为这个串的一个不连续子序列,它满足任意的两个相邻的数字不相等。 现在,我们要对这个 串的某一段非空连续子串进行反转操作,即将这一段上的所
阅读全文
摘要:题目链接:https://www.luogu.org/problemnew/show/P1603 题目背景 根据斯诺登事件出的一道水题 题目描述 2013年X月X日,俄罗斯办理了斯诺登的护照,于是他混迹于一架开往委内瑞拉的飞机。但是,这件事情太不周密了,因为FBI的间谍早已获悉他的具体位置——但这不
阅读全文
摘要:P1055 ISBN号码 P1200 [USACO1.1]你的飞碟在这儿Your Ride Is He… P1308 统计单词数 (我觉得这题输入输出有毛病……跳过吧) P1553 数字反转(升级版) P1598 垂直柱状图 P1914 小书童——密码
阅读全文
摘要:题目链接:https://codeforces.com/problemset/problem/1099/E You are given an table, consisting of characters «A», «G», «C», «T». Let's call a table ni
阅读全文
摘要:题目链接:https://www.luogu.org/problemnew/show/P1098 题目描述在初赛普及组的“阅读程序写结果”的问题中,我们曾给出一个字符串展开的例子:如果在输入的字符串中,含有类似于“d-h”或者“4-8”的字串,我们就把它当作一种简写,输出时,用连续递增的字母或数字串
阅读全文
摘要:题目链接:https://codeforces.com/contest/1090/problem/B Examplesstandard input standard output standard input standard output 题意: 文章末尾这个参考文献的顺序可能是错乱的,需要你修正
阅读全文
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4060 题意: 给出两个 字符串 ,现在你有两次对 作区间翻转()的操
阅读全文
摘要:题目链接:https://hihocoder.com/problemset/problem/1829 时间限制:1000ms 单点时限:1000ms 内存限制:256MB 时间限制:1000ms 单点时限:1000ms 内存限制:256MB 描述 Lara Croft, the fiercely i
阅读全文
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3983 题意: 给出一个长度为 的字符串 ,且 仅仅由三种字符组成: 个 "g"、 个 "a"、 个 "o"; 现在,每次可以
阅读全文
摘要:题目链接:https://www.patest.cn/contests/gplt/L1-039 时间限制 400 ms 内存限制 65536 kB 内存限制 65536 kB 代码长度限制 8000 B 代码长度限制 8000 B 判题程序 Standard 判题程序 Standard 作者 陈越
阅读全文
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3985 题意: 给出一个长度为n的字符串,全部由'C'和'P'组成; then,可以在原有字符串的基础上添加任意多个’C’或’P’,每次添加一个就要花费一些 $val
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/883/H Time limit: 3000 ms Memory limit: 262144 kB Kolya has a string s of length n consisting of lowerca
阅读全文