随笔分类 -  water~

摘要: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 阅读(252) 评论(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 阅读(212) 评论(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 阅读(222) 评论(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 阅读(154) 评论(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 阅读(162) 评论(0) 推荐(0)
摘要:百步穿杨Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3420Accepted Submission(s): 1311Problem Description时维九月,序属三秋,辽军大举进攻MCA山,战场上两军正交锋.辽军统帅是名噪一时的耶律-James,而MCA方则是派出了传统武将中草药123.双方经过协商,约定在十一月八日正午十分进行射箭对攻战.中草药123早早就开始准备,但是他是武将而不是铁匠,造弓箭的活就交给聪明能干的你了,现在告诉你每 阅读全文
posted @ 2012-06-03 19:26 ismdeep 阅读(209) 评论(0) 推荐(0)
摘要:#include<iostream>#include<iomanip>using namespace std;double a[1000];double b[1000];double c[1000];int main(){ int m,n,i,j; while((cin >> m >> n) && (m != -1 && n != -1)) { double sum = 0.0; for( i = 0; i < n; i++) { cin >> a[i] >> b[i]; c[i] = 阅读全文
posted @ 2012-05-31 09:59 ismdeep 阅读(308) 评论(0) 推荐(0)