摘要: Divisiblity of DifferencesYou are given a multiset of n integers. You should select exactly k of them in a such way that the differenc... 阅读全文
posted @ 2017-11-12 15:10 _大美 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Sorting the CoinsRecently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorit... 阅读全文
posted @ 2017-11-12 15:00 _大美 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Balanced SubstringYou are given a string s consisting only of characters 0 and 1. A substring [l, r] of s is a string slsl + 1sl + 2..... 阅读全文
posted @ 2017-11-12 14:35 _大美 阅读(220) 评论(0) 推荐(0) 编辑
摘要: C. Solution for Cubetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDuring the b... 阅读全文
posted @ 2017-11-05 16:21 _大美 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 2359 : 巴什博弈?时间限制:1 Sec 内存限制:30 MiB special judge:No 提交:301 答案正确:64提交 状态 讨论区题目描述有n个石子,有两人轮流从中取石子,最少a个最多b个,谁没得取(即当轮到他取是已经没有石子可以取了,也就是说此时... 阅读全文
posted @ 2017-11-01 12:10 _大美 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1022 : 取石子(一)时间限制:3 Sec 内存限制:64 MiB special judge:No 提交:10 答案正确:3提交 状态 讨论区题目描述一天,TT在寝室闲着无聊,和同寝的人玩起了取石子游戏,而由于条件有限,他/她们是用旺仔小馒头当作石子。游戏的规则... 阅读全文
posted @ 2017-10-31 21:23 _大美 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目描述给你两个很大的数,你能不能判断出他们两个数的大小呢?比如123456789123456789要大于-123456输入每组测试数据占一行,输入两个不超过1000位的10进制整数a,b数据保证输入的a,b没有前缀的0。如果输入0 0表示输入结束。测试数据组数不超过... 阅读全文
posted @ 2017-10-31 20:16 _大美 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Lazy Security Guard Your security guard friend recently got a new job at a new security company. The company requires him to patrol a... 阅读全文
posted @ 2017-10-31 20:08 _大美 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Mahmoud and Ehab and the bipartitenessMahmoud and Ehab continue their adventures! As everybody in the evil land knows, Dr. Evil likes ... 阅读全文
posted @ 2017-10-31 19:58 _大美 阅读(218) 评论(0) 推荐(0) 编辑
摘要: KayakingVadim is really keen on travelling. Recently he heard about kayaking activity near his town and became very excited about it, ... 阅读全文
posted @ 2017-10-31 19:49 _大美 阅读(347) 评论(0) 推荐(0) 编辑
摘要: Polycarp and LettersPolycarp loves lowercase letters and dislikes uppercase ones. Once he got a string s consisting only of lowercase... 阅读全文
posted @ 2017-10-31 19:40 _大美 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Save the problem!Attention: we lost all the test cases for this problem, so instead of solving the problem, we need you to generate te... 阅读全文
posted @ 2017-10-31 19:25 _大美 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Race Against TimeHave you ever tried to explain to the coordinator, why it is eight hours to the contest and not a single problem has ... 阅读全文
posted @ 2017-10-31 19:09 _大美 阅读(123) 评论(0) 推荐(0) 编辑
摘要: The Eternal ImmortalityEven if the world is full of counterfeits, I still regard it as wonderful.Pile up herbs and incense, and arise ... 阅读全文
posted @ 2017-10-31 18:53 _大美 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Maximum of Maximums of Minimums You are given an array a1, a2, ..., an consisting of n integers, and an integer k. You have to split t... 阅读全文
posted @ 2017-10-31 16:58 _大美 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 题目描述现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0#includeusing namespace std;int main(){ int T; char a[10001]; char b[10001]; scan... 阅读全文
posted @ 2017-10-27 20:02 _大美 阅读(170) 评论(0) 推荐(0) 编辑
摘要: A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate t... 阅读全文
posted @ 2017-10-25 21:46 _大美 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 士兵杀敌(三)时间限制:2000 ms | 内存限制:65535 KB 难度:5描述 南将军统率着N个士兵,士兵分别编号为1~N,南将军经常爱拿某一段编号内杀敌数最高的人与杀敌数最低的人进行比较,计算出两个人的杀敌数差值,用这种方法一方面能鼓舞杀敌数高的人,另一方... 阅读全文
posted @ 2017-10-22 21:28 _大美 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 亲和串时间限制:1000 ms | 内存限制:65535 KB难度:3描述最近zyc遇到了一个很棘手的问题:判断亲和串,以前判断亲和串的时候直接可以看出来,但现在不同了,现在给出的两字符串都非常的大,看的zyc头都晕了。于是zyc希望大家能帮他想一个办法来快速判断... 阅读全文
posted @ 2017-10-22 20:07 _大美 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多... 阅读全文
posted @ 2017-10-22 19:57 _大美 阅读(136) 评论(0) 推荐(0) 编辑