02 2017 档案

摘要:Drainage Ditches Problem Description Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that th 阅读全文
posted @ 2017-02-28 21:52 勿忘初心0924 阅读(955) 评论(0) 推荐(0) 编辑
摘要:File->Project Structure->Libraries,然后点加号,将Tomcat lib文件夹下的servlet.jar和servlet-api.jar包导入。 阅读全文
posted @ 2017-02-28 19:26 勿忘初心0924 阅读(5720) 评论(2) 推荐(0) 编辑
摘要:THE MATRIX PROBLEM Problem Description You have been given a matrix CN*M, each element E of CN*M is positive and no more than 1000, The problem is tha 阅读全文
posted @ 2017-02-27 21:28 勿忘初心0924 阅读(514) 评论(0) 推荐(0) 编辑
摘要:King Problem Description Once, in one kingdom, there was a queen and that queen was expecting a baby. The queen prayed: ``If my child was a son and if 阅读全文
posted @ 2017-02-27 15:54 勿忘初心0924 阅读(271) 评论(0) 推荐(0) 编辑
摘要:Go Deeper Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 21 Accepted Submission(s): 10 Problem 阅读全文
posted @ 2017-02-26 21:06 勿忘初心0924 阅读(461) 评论(0) 推荐(0) 编辑
摘要:2016-2017寒假社会实践报告 今年的寒假和去年一样,只做了一件事就是ACM,开始的几天并不顺利,刚放假的几天去青岛玩了几天,电脑电源落在那了,几天后才快递过来。寒假的任务看似很少,只是刷完ACMsteps,但是实际做起来很慢。 调整状态篇 最初的几天,可算是十分的艰难,放假前刷到了7.3也就是 阅读全文
posted @ 2017-02-26 12:56 勿忘初心0924 阅读(433) 评论(0) 推荐(1) 编辑
摘要:Intervals Problem Description You are given n closed, integer intervals [ai, bi] and n integers c1, ..., cn.Write a program that:> reads the number of 阅读全文
posted @ 2017-02-25 20:57 勿忘初心0924 阅读(404) 评论(0) 推荐(0) 编辑
摘要:T9 Problem Description A while ago it was quite cumbersome to create a message for the Short Message Service (SMS) on a mobile phone. This was because 阅读全文
posted @ 2017-02-25 17:15 勿忘初心0924 阅读(314) 评论(0) 推荐(0) 编辑
摘要:Cycling Problem Description You want to cycle to a programming contest. The shortest route to the contest might be over the tops of some mountains and 阅读全文
posted @ 2017-02-24 20:59 勿忘初心0924 阅读(512) 评论(0) 推荐(0) 编辑
摘要:Building roads Problem Description Farmer John's farm has N barns, and there are some cows that live in each barn. The cows like to drop around, so Jo 阅读全文
posted @ 2017-02-24 18:39 勿忘初心0924 阅读(595) 评论(0) 推荐(0) 编辑
摘要:Cactus Problem Description 1. It is a Strongly Connected graph.2. Each edge of the graph belongs to a circle and only belongs to one circle.We call th 阅读全文
posted @ 2017-02-23 21:21 勿忘初心0924 阅读(340) 评论(0) 推荐(0) 编辑
摘要:Let's go home Problem Description 小时候,乡愁是一枚小小的邮票,我在这头,母亲在那头。 —— 余光中集训是辛苦的,道路是坎坷的,休息还是必须的。经过一段时间的训练,lcy决定让大家回家放松一下,但是训练还是得照常进行,lcy想出了如下回家规定,每一个队(三人一队)或 阅读全文
posted @ 2017-02-23 15:06 勿忘初心0924 阅读(454) 评论(0) 推荐(0) 编辑
摘要:Peaceful Commission Problem Description The Public Peace Commission should be legislated in Parliament of The Democratic Republic of Byteland accordin 阅读全文
posted @ 2017-02-23 14:02 勿忘初心0924 阅读(276) 评论(0) 推荐(0) 编辑
摘要:2-SAT问题总结 2-SAT问题:n个布尔型的变量,给出m个约束条件,约束条件例如:A,B不能同时为真,A,B必须同时为真等。 看了算法入门经典中的解决办法,关于这种解决办法比较容易理解,并且效率也不错。构造一张有向图G,其中n个变量拆成n*2个变量,也就是xi用xi*2和xi*2+1表示,如果前 阅读全文
posted @ 2017-02-23 14:02 勿忘初心0924 阅读(2053) 评论(0) 推荐(0) 编辑
摘要:Exclusive-OR Problem Description You are not given n non-negative integers X0, X1, ..., Xn-1 less than 220 , but they do exist, and their values never 阅读全文
posted @ 2017-02-22 19:49 勿忘初心0924 阅读(371) 评论(0) 推荐(0) 编辑
摘要:胜利大逃亡(续) Problem Description Ignatius再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)……这次魔王汲取了上次的教训,把Ignatius关在一个n*m的地牢里,并在地牢的某些地方安装了带锁的门,钥匙藏在地牢另外的某些地方。刚开始Ignatius被关在(sx,sy)的位置 阅读全文
posted @ 2017-02-22 13:10 勿忘初心0924 阅读(565) 评论(0) 推荐(1) 编辑
摘要:Intelligence System Problem Description After a day, ALPCs finally complete their ultimate intelligence system, the purpose of it is of course for ACM 阅读全文
posted @ 2017-02-21 20:05 勿忘初心0924 阅读(542) 评论(0) 推荐(0) 编辑
摘要:Hawk-and-Chicken Problem Description Kids in kindergarten enjoy playing a game called Hawk-and-Chicken. But there always exists a big problem: every k 阅读全文
posted @ 2017-02-21 19:41 勿忘初心0924 阅读(460) 评论(0) 推荐(0) 编辑
摘要:The Stable Marriage Problem Problem Description The stable marriage problem consists of matching members of two different sets according to the member 阅读全文
posted @ 2017-02-21 13:58 勿忘初心0924 阅读(1056) 评论(0) 推荐(1) 编辑
摘要:Summer Holiday Problem Description To see a World in a Grain of Sand And a Heaven in a Wild Flower, Hold Infinity in the palm of your hand And Eternit 阅读全文
posted @ 2017-02-20 22:49 勿忘初心0924 阅读(190) 评论(0) 推荐(0) 编辑
摘要:Marriage is Stable Problem Description Albert, Brad, Chuck are happy bachelors who are in love with Laura, Marcy, Nancy. They all have three choices. 阅读全文
posted @ 2017-02-20 21:41 勿忘初心0924 阅读(345) 评论(0) 推荐(0) 编辑
摘要:maximum shortest distance Problem Description There are n points in the plane. Your task is to pick k points (k>=2), and make the closest points in th 阅读全文
posted @ 2017-02-20 18:17 勿忘初心0924 阅读(319) 评论(0) 推荐(0) 编辑
摘要:Maximum Clique Problem Description Given a graph G(V, E), a clique is a sub-graph g(v, e), so that for all vertex pairs v1, v2 in v, there exists an e 阅读全文
posted @ 2017-02-18 21:37 勿忘初心0924 阅读(173) 评论(0) 推荐(0) 编辑
摘要:Ignatius and the Princess II Problem Description Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about 阅读全文
posted @ 2017-02-18 15:35 勿忘初心0924 阅读(482) 评论(0) 推荐(0) 编辑
摘要:String Problem Description Recently, lxhgww received a task : to generate strings contain '0's and '1's only, in which '0' appears exactly m times, '1 阅读全文
posted @ 2017-02-18 15:15 勿忘初心0924 阅读(177) 评论(0) 推荐(0) 编辑
摘要:The Worm Turns Problem Description Winston the Worm just woke up in a fresh rectangular patch of earth. The rectangular patch is divided into cells, a 阅读全文
posted @ 2017-02-17 23:48 勿忘初心0924 阅读(278) 评论(0) 推荐(0) 编辑
摘要:Equations Problem Description Consider equations having the following form: a*x1^2+b*x2^2+c*x3^2+d*x4^2=0a, b, c, d are integers from the interval [-5 阅读全文
posted @ 2017-02-17 11:32 勿忘初心0924 阅读(419) 评论(0) 推荐(0) 编辑
摘要:Snail’s trouble Problem Description Once upon a time, there was a poor snail. Every day, it tried very hard to crawl forward, while there was a keeper 阅读全文
posted @ 2017-02-17 10:33 勿忘初心0924 阅读(216) 评论(0) 推荐(0) 编辑
摘要:WuKong Problem Description Liyuan wanted to rewrite the famous book “Journey to the West” (“Xi You Ji” in Chinese pinyin). In the original book, the M 阅读全文
posted @ 2017-02-16 09:48 勿忘初心0924 阅读(448) 评论(0) 推荐(0) 编辑
摘要:Game Problem Description Bob and Alice are playing a new game. There are n boxes which have been numbered from 1 to n. Each box is either empty or con 阅读全文
posted @ 2017-02-16 08:21 勿忘初心0924 阅读(144) 评论(0) 推荐(0) 编辑
摘要:Queuing Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our 阅读全文
posted @ 2017-02-16 07:40 勿忘初心0924 阅读(263) 评论(0) 推荐(0) 编辑
摘要:The Balance Problem Description Now you are asked to measure a dose of medicine with a balance and a number of weights. Certainly it is not always ach 阅读全文
posted @ 2017-02-16 07:34 勿忘初心0924 阅读(232) 评论(0) 推荐(0) 编辑
摘要:A Very Simple Problem Problem Description This is a very simple problem. Given three integers N, x, and M, your task is to calculate out the following 阅读全文
posted @ 2017-02-16 01:48 勿忘初心0924 阅读(194) 评论(0) 推荐(0) 编辑
摘要:#define is unsafe Problem Description Have you used #define in C/C++ code like the code below?#include <stdio.h>#define MAX(a , b) ((a) > (b) ? (a) : 阅读全文
posted @ 2017-02-15 02:34 勿忘初心0924 阅读(347) 评论(0) 推荐(0) 编辑
摘要:Stars Problem Description Yifenfei is a romantic guy and he likes to count the stars in the sky.To make the problem easier,we considerate the sky is a 阅读全文
posted @ 2017-02-14 21:58 勿忘初心0924 阅读(976) 评论(0) 推荐(0) 编辑
摘要:推箱子 Problem Description 推箱子是一个很经典的游戏.今天我们来玩一个简单版本.在一个M*N的房间里有一个箱子和一个搬运工,搬运工的工作就是把箱子推到指定的位置,注意,搬运工只能推箱子而不能拉箱子,因此如果箱子被推到一个角上(如图2)那么箱子就不能再被移动了,如果箱子被推到一面墙 阅读全文
posted @ 2017-02-14 09:15 勿忘初心0924 阅读(551) 评论(0) 推荐(0) 编辑
摘要:无题 Problem Description 就要复试了,外地的考生都要在学校附近住宾馆了。假设在学校附近有C家宾馆,并且这些宾馆只有单人房,而每家宾馆的价格不一样,学生们都想找价格便宜的住,所以现在需要你的帮助,当有学生需要住宾馆的时候,告诉他哪个宾馆还有空的房间并且价格最便宜。而且有一个要求,同 阅读全文
posted @ 2017-02-14 05:50 勿忘初心0924 阅读(162) 评论(0) 推荐(0) 编辑
摘要:引自:http://blog.csdn.net/acmmaxx/article/details/18409701 逆元: 若,b*b1 % c == 1 则,b1称为b模c的乘法逆元。 在ACM中,许多除法取模都要用到求逆元。 但是,逆元,为什么能给我们带来 ( a/b ) % c == ( a*b 阅读全文
posted @ 2017-02-14 05:30 勿忘初心0924 阅读(5417) 评论(0) 推荐(0) 编辑
摘要:Perfect Squares Problem Description A number x is called a perfect square if there exists an integer b satisfying x=b^2. There are many beautiful theo 阅读全文
posted @ 2017-02-14 05:22 勿忘初心0924 阅读(459) 评论(0) 推荐(0) 编辑
摘要:Picture Problem Description Give you the width and height of the rectangle,darw it. Input Input contains a number of test cases.For each case ,there a 阅读全文
posted @ 2017-02-14 03:48 勿忘初心0924 阅读(193) 评论(0) 推荐(0) 编辑
摘要:Solitaire Problem Description Solitaire is a game played on a chessboard 8x8. The rows and columns of the chessboard are numbered from 1 to 8, from th 阅读全文
posted @ 2017-02-14 03:41 勿忘初心0924 阅读(600) 评论(1) 推荐(0) 编辑
摘要:Travel Problem Description One day, Tom traveled to a country named BGM. BGM is a small country, but there are N (N <= 100) towns in it. Each town pro 阅读全文
posted @ 2017-02-14 01:17 勿忘初心0924 阅读(208) 评论(0) 推荐(0) 编辑
摘要:Life is a Line Problem Description There is a saying: Life is like a line, some people are your parallel lines, while others are destined to meet you. 阅读全文
posted @ 2017-02-13 18:06 勿忘初心0924 阅读(377) 评论(0) 推荐(0) 编辑
摘要:Building Block Problem Description John are playing with blocks. There are N blocks (1 <= N <= 30000) numbered 1...N。Initially, there are N piles, and 阅读全文
posted @ 2017-02-11 22:09 勿忘初心0924 阅读(442) 评论(0) 推荐(0) 编辑
摘要:Doing Homework again Problem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher 阅读全文
posted @ 2017-02-11 10:46 勿忘初心0924 阅读(372) 评论(0) 推荐(0) 编辑
摘要:FATE Problem Description 最近xhd正在玩一款叫做FATE的游戏,为了得到极品装备,xhd在不停的杀怪做任务。久而久之xhd开始对杀怪产生的厌恶感,但又不得不通过杀怪来升完这最后一级。现在的问题是,xhd升掉最后一级还需n的经验值,xhd还留有m的忍耐度,每杀一个怪xhd会得 阅读全文
posted @ 2017-02-11 04:51 勿忘初心0924 阅读(200) 评论(0) 推荐(0) 编辑
摘要:Lucky Coins Sequence Problem Description As we all know,every coin has two sides,with one side facing up and another side facing down.Now,We consider 阅读全文
posted @ 2017-02-11 02:38 勿忘初心0924 阅读(352) 评论(0) 推荐(0) 编辑
摘要:A == B ? Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test case contains tw 阅读全文
posted @ 2017-02-11 01:40 勿忘初心0924 阅读(237) 评论(0) 推荐(0) 编辑
摘要:Chinese Rings Problem Description Dumbear likes to play the Chinese Rings (Baguenaudier). It’s a game played with nine rings on a bar. The rules of th 阅读全文
posted @ 2017-02-11 00:58 勿忘初心0924 阅读(437) 评论(0) 推荐(0) 编辑
摘要:Fibonacci Problem Description 2007年到来了。经过2006年一年的修炼,数学神童zouyu终于把0到100000000的Fibonacci数列(f[0]=0,f[1]=1;f[i] = f[i-1]+f[i-2](i>=2))的值全部给背了下来。接下来,CodeSta 阅读全文
posted @ 2017-02-10 01:46 勿忘初心0924 阅读(174) 评论(0) 推荐(0) 编辑
摘要:Fibonacci Check-up Problem Description Every ALPC has his own alpc-number just like alpc12, alpc55, alpc62 etc.As more and more fresh man join us. How 阅读全文
posted @ 2017-02-10 01:26 勿忘初心0924 阅读(256) 评论(0) 推荐(0) 编辑
摘要:Pendant Problem Description On Saint Valentine's Day, Alex imagined to present a special pendant to his girl friend made by K kind of pearls. The pend 阅读全文
posted @ 2017-02-09 21:48 勿忘初心0924 阅读(288) 评论(0) 推荐(0) 编辑
摘要:奥运 Problem Description 北京迎来了第一个奥运会,我们的欢呼声响彻中国大地,所以今年的奥运金牌 day day up!比尔盖兹坐上鸟巢里,手里摇着小纸扇,看的不亦乐乎,被俺们健儿的顽强拼搏的精神深深的感动了。反正我的钱也多的没地方放了,他对自己说,我自己也来举办一个奥运会,看谁的 阅读全文
posted @ 2017-02-08 21:55 勿忘初心0924 阅读(147) 评论(0) 推荐(0) 编辑
摘要:Tr A Problem Description A为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input 数据的第一行是一个T,表示有T组数据。每组数据的第一行有n(2 <= n <= 10)和k(2 <= k < 10^9)两个数据。接下来有n行 阅读全文
posted @ 2017-02-08 17:39 勿忘初心0924 阅读(193) 评论(0) 推荐(0) 编辑
摘要:A Simple Game Problem Description Agrael likes play a simple game with his friend Animal during the classes. In this Game there are n piles of stones 阅读全文
posted @ 2017-02-08 01:03 勿忘初心0924 阅读(233) 评论(0) 推荐(0) 编辑
摘要:Be the Winner Problem Description Let's consider m apples divided into n groups. Each group contains no more than 100 apples, arranged in a line. You 阅读全文
posted @ 2017-02-08 00:48 勿忘初心0924 阅读(546) 评论(0) 推荐(0) 编辑
摘要:John Problem Description Little John is playing very funny game with his younger brother. There is one big box filled with M&Ms of different colors. A 阅读全文
posted @ 2017-02-08 00:18 勿忘初心0924 阅读(312) 评论(0) 推荐(0) 编辑
摘要:Being a Good Boy in Spring Festival Problem Description 一年在外 父母时刻牵挂春节回家 你能做几天好孩子吗寒假里尝试做做下面的事情吧陪妈妈逛一次菜场悄悄给爸爸买个小礼物主动地 强烈地 要求洗一次碗某一天早起 给爸妈用心地做回早餐如果愿意 你还可 阅读全文
posted @ 2017-02-06 23:57 勿忘初心0924 阅读(310) 评论(0) 推荐(0) 编辑
摘要:博弈论 博弈论又被称为对策论(Game Theory),既是现代数学的一个新分支,也是运筹学的一个重要学科。 博弈论主要研究公式化了的激励结构间的相互作用,是研究具有斗争或竞争性质现象的数学理论和方法。 ——360百科 巴什博弈 在一个风和日丽的下午,甲熊猫头对乙熊猫头说: 乙熊猫头回应: 规则如下 阅读全文
posted @ 2017-02-06 23:09 勿忘初心0924 阅读(778) 评论(0) 推荐(1) 编辑
摘要:kiki's game Problem Description Recently kiki has nothing to do. While she is bored, an idea appears in his mind, she just playes the checkerboard gam 阅读全文
posted @ 2017-02-06 22:31 勿忘初心0924 阅读(344) 评论(0) 推荐(0) 编辑
摘要:Fibonacci again and again Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)=1;F(2)=2;F(n)=F(n-1)+F(n-2)(n>=3);所以,1,2,3,5,8,13… 阅读全文
posted @ 2017-02-06 16:11 勿忘初心0924 阅读(381) 评论(0) 推荐(0) 编辑
摘要:Good Luck in CET-4 Everybody! Problem Description 大学英语四级考试就要来临了,你是不是在紧张的复习?也许紧张得连短学期的ACM都没工夫练习了,反正我知道的Kiki和Cici都是如此。当然,作为在考场浸润了十几载的当代大学生,Kiki和Cici更懂得考 阅读全文
posted @ 2017-02-06 14:50 勿忘初心0924 阅读(622) 评论(0) 推荐(0) 编辑
摘要:Brave Game Problem Description 十年前读大学的时候,中国每年都要从国外引进一些电影大片,其中有一部电影就叫《勇敢者的游戏》(英文名称:Zathura),一直到现在,我依然对于电影中的部分电脑特技印象深刻。今天,大家选择上机考试,就是一种勇敢(brave)的选择;这个短学 阅读全文
posted @ 2017-02-05 22:22 勿忘初心0924 阅读(615) 评论(0) 推荐(0) 编辑
摘要:Team Queue Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is 阅读全文
posted @ 2017-02-05 22:14 勿忘初心0924 阅读(1647) 评论(0) 推荐(0) 编辑
摘要:Ignatius and the Princess I Problem Description The Princess has been abducted by the BEelzebub feng5166, our hero Ignatius has to rescue our pretty P 阅读全文
posted @ 2017-02-05 21:18 勿忘初心0924 阅读(975) 评论(0) 推荐(0) 编辑
摘要:Flipper Problem Description Little Bobby Roberts (son of Big Bob, of Problem G) plays this solitaire memory game called Flipper. He starts with n card 阅读全文
posted @ 2017-02-04 22:45 勿忘初心0924 阅读(326) 评论(0) 推荐(0) 编辑
摘要:Windows Message Queue Problem Description Message queue is the basic fundamental of windows system. For each process, the system maintains a message q 阅读全文
posted @ 2017-02-04 16:44 勿忘初心0924 阅读(340) 评论(0) 推荐(0) 编辑
摘要:看病要排队 Problem Description 看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先 阅读全文
posted @ 2017-02-04 16:12 勿忘初心0924 阅读(846) 评论(0) 推荐(0) 编辑
摘要:简单计算器 Problem Description 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不 阅读全文
posted @ 2017-02-03 23:55 勿忘初心0924 阅读(229) 评论(0) 推荐(0) 编辑
摘要:ACboy needs your help again! Problem Description ACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the 阅读全文
posted @ 2017-02-03 18:12 勿忘初心0924 阅读(174) 评论(0) 推荐(0) 编辑
摘要:母函数总结 观自 http://blog.csdn.net/metalseed/article/details/8046656# 所谓母函数就是:将任意一个数列,a0,a1,a2……an 通过一个函数进行联系起来。 G(n)=a0+a1*x+a2*x^2+……an*x^n; 称G(n)为数列的生成函 阅读全文
posted @ 2017-02-03 15:23 勿忘初心0924 阅读(343) 评论(0) 推荐(0) 编辑
摘要:Holding Bin-Laden Captive! Problem Description We all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recent 阅读全文
posted @ 2017-02-01 22:11 勿忘初心0924 阅读(336) 评论(0) 推荐(0) 编辑
摘要:Jacobi symbol Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 625 Accepted Submission(s): 258 Pro 阅读全文
posted @ 2017-02-01 15:07 勿忘初心0924 阅读(1957) 评论(0) 推荐(0) 编辑