上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: Problem DescriptionIn the modern time, Search engine came into the life of everybody like Google, Baidu, etc.Wiskey also wants to bring this feature t... 阅读全文
posted @ 2016-01-21 21:34 Alisahhh 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 这里放一个模板,话说c++抽掉后我调了好久 1 #include 2 #include 3 #include 4 using namespace std; 5 int p[101]; 6 int main(){ 7 string a,b; 8 cin>>a>>b; 9 int... 阅读全文
posted @ 2016-01-20 21:51 Alisahhh 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Description有n朵花,每朵花有三个属性:花形(s)、颜色(c)、气味(m),又三个整数表示。现要对每朵花评级,一朵花的级别是它拥有的美丽能超过的花的数量。定义一朵花A比另一朵花B要美丽,当且仅当Sa>=Sb,Ca>=Cb,Ma>=Mb。显然,两朵花可能有同样的属性。需要统计出评出每个等级的... 阅读全文
posted @ 2016-01-20 21:49 Alisahhh 阅读(131) 评论(0) 推荐(0) 编辑
摘要: You are working for Macrohard company in data structures department. After failing your previous task about key insertion you were asked to write a ne... 阅读全文
posted @ 2016-01-20 21:44 Alisahhh 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Description网上有许多题,就是给定一个序列,要你支持几种操作:A、B、C、D。一看另一道题,又是一个序列 要支持几种操作:D、C、B、A。尤其是我们这里的某人,出模拟试题,居然还出了一道这样的,真是没技术含量……这样 我也出一道题,我出这一道的目的是为了让大家以后做这种题目有一个“库”可以... 阅读全文
posted @ 2016-01-19 21:50 Alisahhh 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Description给一个长度为n的序列a。1≤a[i]≤n。m组询问,每次询问一个区间[l,r],是否存在一个数在[l,r]中出现的次数大于(r-l+1)/2。如果存在,输出这个数,否则输出0。Input第一行两个数n,m。第二行n个数,a[i]。接下来m行,每行两个数l,r,表示询问[l,r]... 阅读全文
posted @ 2016-01-19 21:46 Alisahhh 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Description辉辉热衷于洞穴勘测。某天,他按照地图来到了一片被标记为JSZX的洞穴群地区。经过初步勘测,辉辉发现这片区域由n个洞穴(分别编号为1到n)以及若干通道组成,并且每条通道连接了恰好两个洞穴。假如两个洞穴可以通过一条或者多条通道按一定顺序连接起来,那么这两个洞穴就是连通的,按顺序连接... 阅读全文
posted @ 2016-01-19 21:41 Alisahhh 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Description给你一棵TREE,以及这棵树上边的距离.问有多少对点它们两者间的距离小于等于KInputN(n 2 #include 3 using namespace std; 4 const int N=40010; 5 int deep[N],head[N],son[N],f[N],d[... 阅读全文
posted @ 2016-01-18 21:45 Alisahhh 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Description聪聪和可可是兄弟俩,他们俩经常为了一些琐事打起来,例如家中只剩下最后一根冰棍而两人都想吃、两个人都想玩儿电脑(可是他们家只有一台电脑)……遇到这种问题,一般情况下石头剪刀布就好了,可是他们已经玩儿腻了这种低智商的游戏。他们的爸爸快被他们的争吵烦死了,所以他发明了一个新游戏:由爸... 阅读全文
posted @ 2016-01-18 21:43 Alisahhh 阅读(296) 评论(0) 推荐(0) 编辑
摘要: Description由于对Farmer John的领导感到极其不悦,奶牛们退出了农场,组建了奶牛议会。议会以“每头牛 都可以获得自己想要的”为原则,建立了下面的投票系统: M只到场的奶牛 (1 2 #include 3 using namespace std; 4 const char ch[3... 阅读全文
posted @ 2016-01-18 21:40 Alisahhh 阅读(238) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页