摘要: Hashmat the brave warriorInput:standard inputOutput:standard outputHashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight against his opponents. Before fighting he just calculates one thing, the difference between his soldier number and the opponent& 阅读全文
posted @ 2012-07-10 19:16 ismdeep 阅读(169) 评论(0) 推荐(0) 编辑
摘要: J -JTime Limit:3000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionHOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。Input第一行有一个整数T,接下来T组数据,每组数据占2行,第一行是一个整数N(0<N<=1000000),第二行是N个数,表示N 阅读全文
posted @ 2012-07-10 15:48 ismdeep 阅读(149) 评论(0) 推荐(0) 编辑
摘要: I -ITime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or 阅读全文
posted @ 2012-07-10 15:48 ismdeep 阅读(161) 评论(0) 推荐(0) 编辑
摘要: F -FTime Limit:1000MSMemory Limit:30000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionZombies love to eat brains. Yum.InputThe first line contains a single integer n indicating the number of data sets.The following n lines each represent a data set. Each data set will be formatted accordi 阅读全文
posted @ 2012-07-10 15:47 ismdeep 阅读(107) 评论(0) 推荐(0) 编辑
摘要: E -ETime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionEvery time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regrow. Thu 阅读全文
posted @ 2012-07-10 15:47 ismdeep 阅读(232) 评论(3) 推荐(0) 编辑
摘要: G -GTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIgor K. always used to trust his favorite Kashpirovsky Antivirus. That is why he didn't hesitate to download the link one of his groupmates sent him via QIP Infinium. The link was said to contain &q 阅读全文
posted @ 2012-07-10 15:47 ismdeep 阅读(188) 评论(0) 推荐(0) 编辑
摘要: H -HTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<=10000),N表示成都的大街上有几个路口,标号为1的路口是商店所在地,标号为N的路口是赛场所在地,M则表 阅读全文
posted @ 2012-07-10 15:47 ismdeep 阅读(178) 评论(0) 推荐(0) 编辑
摘要: C -CTime Limit:10000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionConsider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that sati 阅读全文
posted @ 2012-07-10 15:45 ismdeep 阅读(143) 评论(0) 推荐(0) 编辑
摘要: D -DTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIn the Fibonacci integer sequence,F0= 0,F1= 1, andFn=Fn− 1+Fn− 2forn≥ 2. For example, the first ten terms of the Fibonacci sequence are:0, 1, 1, 2, 3, 5, 8, 13, 21, 34, …An alternative formula for the Fi 阅读全文
posted @ 2012-07-10 15:45 ismdeep 阅读(171) 评论(0) 推荐(0) 编辑
摘要: A -ATime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。Input测试输入包含若干测试用例。每个测试用例的第1行给出评估的道路条数 N、村庄数目M ( < 100 );随后的 N行对应村庄间道路的成本,每行给出一对正整数 阅读全文
posted @ 2012-07-10 15:44 ismdeep 阅读(170) 评论(0) 推荐(0) 编辑
摘要: B -BTime Limit:1000MSMemory Limit:1000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionRecently kiki has nothing to do. While she is bored, an idea appears in his mind, she just playes the checkerboard game.The size of the chesserboard is n*m.First of all, a coin is placed in the top right 阅读全文
posted @ 2012-07-10 15:44 ismdeep 阅读(140) 评论(0) 推荐(0) 编辑
摘要: RobberiesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3934Accepted Submission(s): 1492Problem DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because the 阅读全文
posted @ 2012-07-10 10:56 ismdeep 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 今天课程主要是图论的一些入门的知识,上午图的基本知识概念,还有遍历,下午讲了桥,求桥。http://poj.org/problem?id=3352这个题目你可以做一下。。还有就是学长给我们一个地址,是华东交大11届比赛的地址,比赛时间10日,你自己看一下时间。到时候你也去吧。记得把名字中注明自己的学校名字。如果要密码的话是:123456网址:http://acm.hust.edu.cn:8080/judge/contest/view.action?cid=9184#overview 阅读全文
posted @ 2012-07-10 09:19 ismdeep 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Climbing WormTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7713Accepted Submission(s): 4935Problem DescriptionAn inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minut 阅读全文
posted @ 2012-07-09 19:10 ismdeep 阅读(163) 评论(0) 推荐(0) 编辑
摘要: MilkTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7951Accepted Submission(s): 1893Problem DescriptionIgnatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds of milk in the supermar 阅读全文
posted @ 2012-07-09 17:14 ismdeep 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 真的是好水的题目啊,吓到了。。。Problem 1746 A Water Problem Accept: 169Submit: 351Time Limit: 1000 mSecMemory Limit : 32768 KB Problem DescriptionThis is a easy problem,I don't went to say any more. InputThere will be several test cases. OutputFor each test case, output only contain one line. Sample Input..... 阅读全文
posted @ 2012-07-09 14:31 ismdeep 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 变形课Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 6113Accepted Submission(s): 2223Problem Description呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体. Harry已经将他所会的所有咒语都列成了一 阅读全文
posted @ 2012-07-09 11:46 ismdeep 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 确定比赛名次Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5289Accepted Submission(s): 1968Problem Description有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P2表示,排名时P1在P2之前。现在请你编程序确 阅读全文
posted @ 2012-07-09 10:17 ismdeep 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Eddy's mistakesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4754Accepted Submission(s): 2697Problem DescriptionEddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written fre 阅读全文
posted @ 2012-07-09 09:51 ismdeep 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Rightmost DigitTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18122Accepted Submission(s): 6946Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N.InputThe input contains several test cases. The first line 阅读全文
posted @ 2012-07-09 09:43 ismdeep 阅读(334) 评论(2) 推荐(0) 编辑
摘要: 摈弃 Windows 低效率的工作方式,发掘 Linux 身上的 UNIX 气质我已经半年没有使用 Windows 的方式工作了。Linux 高效的完成了我所有的工作。GNU/Linux 不是每个人都想用的。如果你只需要处理一般的事务,打游戏,那么你不需要了解下面这些了。我不是一个狂热的自由软件份子,虽然我很喜欢自由软件。这篇文章也不是用来推行自由软件运动的,虽然我觉得自由软件运动是非常好的。这篇文章也不是用来比较 Linux 和 Windows 内核效率,文件系统,网络服务的。我现在是作为一个用户而不是一个开发者来说话的,我们的讨论是基于操作,应用层面的。是为了告诉大学里还不了解,或者不 理 阅读全文
posted @ 2012-07-08 21:58 ismdeep 阅读(648) 评论(6) 推荐(2) 编辑
摘要: Eddy's research ITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3554Accepted Submission(s): 2182Problem DescriptionEddy's interest is very extensive, recently he is interested in prime number. Eddy discover the all number owned can be divi 阅读全文
posted @ 2012-07-08 21:17 ismdeep 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Eddy's digital RootsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2355Accepted Submission(s): 1348Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digi 阅读全文
posted @ 2012-07-08 21:04 ismdeep 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Who's in the MiddleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4628Accepted Submission(s): 2347Problem DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of 阅读全文
posted @ 2012-07-08 20:57 ismdeep 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 整除的尾数Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13580Accepted Submission(s): 5665Problem Description一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢?Input输入数据有若干组,每组数据包含二个整数a,b(0<a<10000, 10<b<100),若遇到0 0则处理结束。Output对应每组数据,将满足条件的所有尾数在一行内 阅读全文
posted @ 2012-07-08 20:32 ismdeep 阅读(154) 评论(0) 推荐(0) 编辑
摘要: AC MeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7077Accepted Submission(s): 3165Problem DescriptionIgnatius is doing his homework now. The teacher gives him some articles and asks him to tell how many times each letter appears.It's really 阅读全文
posted @ 2012-07-08 20:03 ismdeep 阅读(201) 评论(0) 推荐(0) 编辑
摘要: A Simple TaskTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2422Accepted Submission(s): 1354Problem DescriptionGiven a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.ExampleFor n = 24, o = 3 and p = 3.Tas 阅读全文
posted @ 2012-07-08 19:39 ismdeep 阅读(181) 评论(0) 推荐(0) 编辑
摘要: DoublesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2176Accepted Submission(s): 1509Problem DescriptionAs part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers and 阅读全文
posted @ 2012-07-08 19:31 ismdeep 阅读(192) 评论(0) 推荐(0) 编辑
摘要: The SnailTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 726Accepted Submission(s): 544Problem DescriptionA snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 foo 阅读全文
posted @ 2012-07-08 19:18 ismdeep 阅读(232) 评论(0) 推荐(0) 编辑
摘要: A + B Problem TooTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7145Accepted Submission(s): 5393Problem DescriptionThis problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For ex. 阅读全文
posted @ 2012-07-08 19:02 ismdeep 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 最简单的计算机Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2666Accepted Submission(s): 1532Problem Description一个名叫是PigHeadThree的研究组织设计了一台实验用的计算机,命名为PpMm。PpMm只能执行简单的六种命令A,B,C,D,E,F;只有二个内存M1,M2;三个寄存器R1,R2,R3。六种命令的含义如下:命令A:将内存M1的数据装到寄存器R1中;命令B:将内存M2的数据装到寄 阅读全文
posted @ 2012-07-08 19:00 ismdeep 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Reverse NumberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2924Accepted Submission(s): 1348Problem DescriptionWelcome to 2006'4 computer college programming contest!Specially, I give my best regards to all freshmen! You are the future of HDU 阅读全文
posted @ 2012-07-08 17:29 ismdeep 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 这个暑假已经开始了,我没有能回婺源了,ACM集训的日子,马上就要开始了,非常期待疯狂刷题的日子,也有一些惧怕,惧怕自己的实力。听着一些歌,看着一些人的日志,还是有一些过往慢慢涌上来,这个暑假,我们要见面,不知道真的如我们所说的情节那般安排得很好的见面。我们连见面都很困难。去年暑假,我遇见了鸟儿在天上飞着,我看见了那些清澈见底的水,还有整日一个人在河边玩耍的孩子。那个时光里面有很多我想表达的,不舍与思念占据了我整个夏天,想不出什么言语来表达,于是大部分时间都是选择沉默。志愿填报的时候,选择了自己最喜欢的专业,不想看到自己如在天上飞翔的鱼,即使旁人认为很美好,可是,一旦自己没有兴趣,再好的专业也相 阅读全文
posted @ 2012-07-06 20:59 ismdeep 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 // Project name : 1235 ( 统计同成绩学生人数 ) 2 // File name : main.cpp 3 // Author : Izumu 4 // Date & Time : Thu Jul 5 17:20:47 2012 5 6 7 #include <iostream> 8 #include <stdio.h> 9 using namespace std;10 11 int main()12 {13 int n;14 while (scanf("%d", &n) != EOF && 阅读全文
posted @ 2012-07-05 17:27 ismdeep 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 现在要开始了,在景老师的安全软件实验室里面学习,首先是希望和大家一起成长,我相信我们的实力,一定能够很好地完成老师所安排的事情,我一定要好好努力,不能辜负。最重要的是acm那边的成绩,我害怕时间不够,大二上学期还有很多事情,我有自己的一些事情,比如关于操作系统的一些事情。还有算法研究,我想成为大神。现在终于开始了,要开始疯狂了。。以前都没有怎么写东西,希望这次写出来的东西能够有点像个样。。写出像样的代码。每次的日志都是乱糟糟的。没有很好的思绪。。这个习惯很不好。。可能是因为很久没有写日志的原因吧。。 阅读全文
posted @ 2012-07-05 17:06 ismdeep 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Uniform GeneratorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9348Accepted Submission(s): 3709Problem DescriptionComputer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formseed(x+1) 阅读全文
posted @ 2012-06-22 22:29 ismdeep 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1. 应用范围 ­本规范应用于采用J2EE规范的项目中,所有项目中的JAVA代码(含JSP,SERVLET,JAVABEAN,EJB)均应遵守这个规范。同时,也可作为其它项目的参考。 ­2. 设计类和方法 ­2.1 创建具有很强内聚力的类 ­方法的重要性往往比类的重要性更容易理解,方法是指执行一个统一函数的一段代码。类常被错误的视为是一个仅仅用于存放方法的容器。有些开发人员甚至把这种思路作了进一步的发挥,将他们的所有方法放入单个类之中。 ­之所以不能正确的认识类的功能,原因之一是类的实现实际上并不影响程序的执行。当一个工程被编译时,如果所有方法 阅读全文
posted @ 2012-06-22 22:18 ismdeep 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 黑客是一群什么样的人?一群试图攻破别人的计算机系统的反社会分子(看看吧,那群该死的黑客把Sony的PSN的用户数据都给搞走了)?一群一个星期不刮胡子,三个月不理发,穿得像一个民工头的土鳖(穿着拖鞋,头发像狗窝,双眼布满血丝)?一群不会说话,有交流障碍的书呆子(和他们在一起气氛可以让你尴尬地想马上找一个地缝钻下去)? 以上就是我臆想中的别人眼中的黑客的形象,当然,这些看法不能说它错,不过如果你想更准确地去了解一下黑客是一群什么样的人,那么你一定要看看硅谷的创业教父Paul Graham的写的《黑客与画家》。 最早接触到Paul Graham是一年多前在阮一峰的博客中,这也... 阅读全文
posted @ 2012-06-22 22:17 ismdeep 阅读(270) 评论(0) 推荐(0) 编辑
摘要: CFree 5.0 注册码共享C-Free官网: http://www.programarts.com/C-Free 5.0真是一个很棒的编程软件,可今天用着用着却让我注册,下面的注册码分享给大家:用户名:tianfang电子邮件:quart@163.com注册码:2NnUqd3shO2agta0xNjcusfK1LXO继续享用这个软件吧!? 阅读全文
posted @ 2012-06-22 22:16 ismdeep 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 操作系统与女朋友子曰:心专才能绣得花,心静才能织得麻 o(∩_∩)o操作系统就像女朋友,大部分人都用windows,因为她可靠,耐用,大体上都比较美观,程序兼容性好,偶尔发个小脾气崩溃一下也可以忍受,用盗版的大部分情况下也可以破解,对你足够宽容,尽管漏洞一堆,病毒无数,大家有的缺点她也有,但五讲四美,三从四德,任劳任怨。linux and windows有钱人养的起苹果,自然也用得起Macintosh,这玩意有点配套玩的意思,例如你要是普通PC,再有钱也不太可能专门去装苹果的系统,没了硬件支持跑不起那效果。当然一分价钱一分货,用户体验没的说,用过苹果的纷纷表示windows又老又丑又土,由奢入 阅读全文
posted @ 2012-06-22 22:14 ismdeep 阅读(210) 评论(0) 推荐(0) 编辑