随笔分类 - 水题-模拟
摘要:题目链接:http://codeforces.com/contest/1009/problem/B 解题心得: 题意就是给你一个只包含012三个字符的字符串,位置并且逻辑相邻的字符可以相互交换位置,就是相邻的01交换,12交换,不可以02交换。最后需要输出字典序最小的字符串。 其实想想就很容易明白在
阅读全文
摘要:题目链接:http://codeforces.com/contest/1009/problem/A 解题心得: 题意就是给你两个数列c,a,你需要从c中选择一个子串从a头开始匹配,要求子串中的连续的前k个数都要比对应的a中数小,问k最大是多少。 大比赛的时候自己在枚举题意,搞了好久心态差点崩了。 #
阅读全文
摘要:题目链接:http://codeforces.com/contest/979/problem/B 解题心得: 这个题题意就是三个人玩游戏,每个人都有一个相同长度的字符串,一共有n轮游戏,每一轮三个人必须改变自己字符串中的一个字母,最后得分就是字符串中出现字符最多的字母的次数。 感觉这个题从题目描述到
阅读全文
摘要:传送门:http://poj.org/problem?id=1017PacketsTime Limit: 1000MS Memory Limit: 10000K Total Submissions: 59106 Accepted: 20072D...
阅读全文
摘要:A. Supermarkettime limit per test2 seconds memory limit per test256 megabytesProblem DescriptionWe often go to supermarkets to buy som...
阅读全文
摘要:A. Eleventime limit per test1 second memory limit per test256 megabytesProblem DescriptionEleven wants to choose a new name for hersel...
阅读全文
摘要:传送门:http://codeforces.com/contest/912/problem/AA. Tricky Alchemytime limit per test1 second memory limit per test256 megabytesProblem ...
阅读全文
摘要:传送门:http://codeforces.com/contest/895/problem/AA. Pizza Separationtime limit per test1 second memory limit per test256 megabytesProble...
阅读全文
摘要:Crashing RobotsTime Limit: 1000MS Memory Limit: 65536KDescriptionIn a modernized warehouse, robots are used to fetch the goods. C...
阅读全文
摘要:ParencodingsTime Limit: 1000MS Memory Limit: 10000KDescriptionLet S = s1 s2…s2n be a well-formed string of parentheses. S can be ...
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/699/CC. Vacationstime limit per test1 second memory limit per test256 megabytesProblem D...
阅读全文
摘要:A. The Artful Expedient 题目链接http://codeforces.com/contest/869/problem/A 解题心得:就是一个水题,读懂题就好,题意是,(i,j)ai异或bi,统计ai异或bi得到的数能够在ai或bi中找的个数,如果...
阅读全文
摘要:OthelloOthello is a game played by two people on an 8 x 8 board, using disks that are white on one side and black on the other. One pl...
阅读全文
摘要:XiangqiXiangqi is one of the most popular two-player board games in China. The game represents a battle between two armies with the go...
阅读全文
摘要:Spreadsheet TrackingData in spreadsheets are stored in cells, which are organized in rows (r) and columns (c). Some operations on spre...
阅读全文
摘要:Message DecodingSome message encoding schemes require that an encoded message be sent in two parts. The first part, called the header,...
阅读全文
摘要:The Dole QueueTime limit 3000 msDescriptionIn a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhi...
阅读全文
摘要:解题心得:1、直接模拟每一次分一半就行了,模拟过程,记录轮数,但是也看到有些大神使用的是链表,估计链表才是真的做法吧。题目:Candy Sharing GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit...
阅读全文