随笔分类 -  09.字符串

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