07 2016 档案

摘要:实际上我开着这博客是用来记录自己的解题记录的,可能有的题目看起来简单到要死,可是它就是容 易错,可能,有的题目难于登天,可是它就是要你解决,没办法,这就是生活给你加的东西,虽然我 只是 一只仓鼠......... 接下来就是给自己的一些忠告了,之所以写到这里是因为第一篇帖子是置顶的,自己也比较容易看 阅读全文
posted @ 2016-07-29 10:27 苍鼠 阅读(132) 评论(0) 推荐(0)
摘要:Description “我是要成为海贼王的男人!”,路飞一边喊着这样的口号,一边和他的伙伴们一起踏上了伟大航路的艰险历程。 路飞他们伟大航路行程的起点是罗格镇,终点是拉夫德鲁(那里藏匿着“唯一的大秘宝”——ONE PIECE)。而航程中间,则是各式各样的岛屿。 因为伟大航路上的气候十分异常,所以来 阅读全文
posted @ 2016-07-28 21:43 苍鼠 阅读(1031) 评论(0) 推荐(0)
摘要:Description 度熊手上有一本神奇的字典,你可以在它里面做如下三个操作: 1、insert : 往神奇字典中插入一个单词 2、delete: 在神奇字典中删除所有前缀等于给定字符串的单词 3、search: 查询是否在神奇字典中有一个字符串的前缀等于给定的字符串 Description 度熊 阅读全文
posted @ 2016-07-28 12:18 苍鼠 阅读(822) 评论(0) 推荐(0)
摘要:Problem Description Jack likes to travel around the world, but he doesn’t like to wait. Now, he is traveling in the Undirected Kingdom. There are n ci 阅读全文
posted @ 2016-07-27 23:12 苍鼠 阅读(337) 评论(0) 推荐(0)
摘要:Rock-Paper-Scissors is a two-player game, where each player chooses one of Rock, Paper, or Scissors. Here are the three cases in which a player gets o 阅读全文
posted @ 2016-07-27 10:57 苍鼠 阅读(288) 评论(0) 推荐(0)
摘要: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 苍鼠 阅读(559) 评论(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 苍鼠 阅读(273) 评论(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 苍鼠 阅读(365) 评论(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 苍鼠 阅读(291) 评论(0) 推荐(0)
摘要:Description 当今世界有很多不同的宗教,很难通晓他们。你有兴趣找出在你的大学里有多少种不同的宗教信仰。 你知道在你的大学里有n个学生(0 < n <= 50000) 。你无法询问每个学生的宗教信仰。此外,许多学生不想说出他们的信仰。避免这些问题的一个方法是问m(0 <= m <= n(n 阅读全文
posted @ 2016-07-26 00:12 苍鼠 阅读(339) 评论(0) 推荐(0)
摘要:Description 严重急性呼吸系统综合症( SARS), 一种原因不明的非典型性肺炎,从2003年3月中旬开始被认为是全球威胁。为了减少传播给别人的机会, 最好的策略是隔离可能的患者。 在Not-Spreading-Your-Sickness大学( NSYSU), 有许多学生团体。同一组的学生 阅读全文
posted @ 2016-07-26 00:02 苍鼠 阅读(225) 评论(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 苍鼠 阅读(252) 评论(0) 推荐(0)
摘要:DescriptionIgnatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Igna 阅读全文
posted @ 2016-07-22 22:36 苍鼠 阅读(236) 评论(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 苍鼠 阅读(266) 评论(0) 推荐(0)
摘要:Problem Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input 本题目包含多组测试,请 阅读全文
posted @ 2016-07-21 22:45 苍鼠 阅读(466) 评论(0) 推荐(0)
摘要:Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的 阅读全文
posted @ 2016-07-21 22:38 苍鼠 阅读(168) 评论(0) 推荐(1)
摘要:Problem Description The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i < j and ai > aj.For 阅读全文
posted @ 2016-07-21 22:24 苍鼠 阅读(708) 评论(0) 推荐(2)
摘要:实际上我开着这博客是用来记录自己的解题记录的,可能有的题目看起来简单到要死,可是它就是容 易错,可能,有的题目难于登天,可是它就是要你解决,没办法,这就是生活给你加的东西,虽然我 只是一个 馒头......... 接下来就是给自己的一些忠告了,之所以写到这里是因为第一篇帖子是置顶的,自己也比较容易看 阅读全文
posted @ 2016-07-21 17:39 苍鼠 阅读(176) 评论(6) 推荐(0)
摘要:非常可乐 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status 非常可乐 Submit Status Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou 阅读全文
posted @ 2016-07-11 13:19 苍鼠 阅读(127) 评论(0) 推荐(0)
摘要:N皇后问题 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status N皇后问题 Submit Status Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任 阅读全文
posted @ 2016-07-11 10:32 苍鼠 阅读(91) 评论(0) 推荐(0)