”航电acm“ 的搜索结果

     偶数求和 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 45262 Accepted Submission(s): 19773 Problem Description 有一个长度为n(n ...

     原创作品 转载请注明出处http://blog.csdn.net/always2015/article/details/45477269这一道题就是找出最小值然后交换的问题,这个问题不难,我的代码里面有详细的注释,我的AC代码如下:#include <iostream>using ...

     Legal or Not Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5982 Accepted Submission(s): 2771 Problem Description ...ACM-DIY is a

     #include int main() {int n,time,a[100000],i; while(scanf("%d",&n)&& n!=0) {  time=0;  for(i=0;i  scanf("%d",&a[i]);  time+=a[0]*6+5;  for(i=1;i ... time+=(a[i]-a[i-1]

     一道基础大数加减问题,对两对字符串进行末位数加减,当然,末位数要进行数据类型转化,字符转化成数字,以此类推,注意进位即可。最后输出的时候再转化为对应的字符输出,数据位对10取模。需要注意的一点是,在前...

     Problem Description My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to

     Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. InputThe input will consist of a series of ...

     杭电OJ——ACM 2553.N皇后问题链接入口 问题描述        有一个n行n列的棋盘,你手里有个n个棋子(即皇后),每下一枚棋子,棋子所处的同行、同列、两条对角线,都不能再放置...

     A + B Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 545685 Accepted Submission(s): 104216 Problem Description I have a very simple ...

     Problem Description The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this and each of them would like to stay away from th...

     吸取1019的教训,这次考虑的全面啦,一次AC! Encoding #include #include using namespace std; int main() { int N,count; cin >> N; string s; while(N>=1) { cin >> s;... c

     Design T-Shirt Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3331 Accepted Submission(s): 1641 Problem Description ...

航电 1011 树形DP

标签:   树形dp  acm

     树形DP 题目:有一个树形的山洞,每个洞有存在bug,经过时,需要留下trooper来战斗,trooper不能往回走。每个trooper能消灭20个bug,给定trooper数量,求能获得brain的最大概率。 由题意知,若要经过子节点,必须...

     对于四川同胞遭受的灾难,全国人民纷纷伸出援助之手,几乎每个省市都派出了大量的救援人员,这其中包括抢险救灾的武警部队,治疗和防疫的医护人员,以及进行心理疏导的心理学专家。根据要求,我校也有一个奔赴灾区...

     杭电里面有很多题目,如果你需要从简单的做起或者专注与某一类题目,可以从这里开始 基础题: 1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、...

     查找最大元素 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 19210 Accepted Submission(s): 10419 ...对于输入的每个字符串,查找

杭电ACM 2052 Picture

标签:   im

     http://acm.hdu.edu.cn/showproblem.php?pid=2052 主要注意格式,每个case之后都有一个空行~~ #include using namespace std; int main() { int n,m; int i,j; while(cin>>n>>m){ for(i=0;i;i++){ if(i...

10  
9  
8  
7  
6  
5  
4  
3  
2  
1