上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: Bahosain was trying to solve this simple problem, but he got a Runtime Error on one of the test cases, can you help him by solving it? Given an array  阅读全文
posted @ 2016-07-26 22:22 苍鼠 阅读(530) 评论(0) 推荐(0) 编辑
摘要: After leaving Yemen, Bahosain now works as a salesman in Jordan. He spends most of his time travelling between different cities. He decided to buy a n 阅读全文
posted @ 2016-07-26 20:04 苍鼠 阅读(262) 评论(0) 推荐(0) 编辑
摘要: Bahosain is walking in a street of N blocks. Each block is either empty or has one lamp. If there is a lamp in a block, it will light it’s block  阅读全文
posted @ 2016-07-26 19:52 苍鼠 阅读(350) 评论(0) 推荐(0) 编辑
摘要: Description In graph theory, a pseudoforest is an undirected graph in which every connected component has at most one cycle. The maximal pseudoforests 阅读全文
posted @ 2016-07-26 00:28 苍鼠 阅读(282) 评论(0) 推荐(0) 编辑
摘要: Description 当今世界有很多不同的宗教,很难通晓他们。你有兴趣找出在你的大学里有多少种不同的宗教信仰。 你知道在你的大学里有n个学生(0 < n <= 50000) 。你无法询问每个学生的宗教信仰。此外,许多学生不想说出他们的信仰。避免这些问题的一个方法是问m(0 <= m <= n(n 阅读全文
posted @ 2016-07-26 00:12 苍鼠 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Description 严重急性呼吸系统综合症( SARS), 一种原因不明的非典型性肺炎,从2003年3月中旬开始被认为是全球威胁。为了减少传播给别人的机会, 最好的策略是隔离可能的患者。 在Not-Spreading-Your-Sickness大学( NSYSU), 有许多学生团体。同一组的学生 阅读全文
posted @ 2016-07-26 00:02 苍鼠 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Description The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superi 阅读全文
posted @ 2016-07-23 23:58 苍鼠 阅读(240) 评论(0) 推荐(0) 编辑
摘要: DescriptionIgnatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Igna 阅读全文
posted @ 2016-07-22 22:36 苍鼠 阅读(223) 评论(0) 推荐(1) 编辑
摘要: Description 给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (-10000 ≤ c ≤ 10000)。 "Q a b" 询问[a, b]区间中所有值的和。 Description 给出了一个序列,你需要处理如下两种询问。 "C a b  阅读全文
posted @ 2016-07-22 17:30 苍鼠 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Problem Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input 本题目包含多组测试,请 阅读全文
posted @ 2016-07-21 22:45 苍鼠 阅读(454) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页