原题链接: "http://acm.hdu.edu.cn/showproblem.php?pid=1004" Problem Description Contest time again! How excited it is to see balloons floating around. But ...
分类:
其他好文 时间:
2018-07-04 22:53:01
阅读次数:
164
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002 题目描述如下: A + B Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/ ...
分类:
其他好文 时间:
2018-07-04 22:50:31
阅读次数:
212
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1004 Problem Description Contest time again! How excited it is to see balloons floating around. But to ...
分类:
其他好文 时间:
2018-07-03 22:29:08
阅读次数:
197
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2161 题意:判断n是不是素数,输入到0停止。题目规定1 2 都不是素数。 题解:筛素数。老题目。不过这次是普通筛23333.。之前做的题了。 1 #include<iostream> 2 #includ ...
分类:
其他好文 时间:
2018-05-11 20:44:35
阅读次数:
135
发现自己之前对线段树 树状数组这种数据结构只会套套模板,根本就没有理解与运用。所以打算最近开始重新学习这些数据结构。那么这就是我的树状数组第一道练习题目:敌兵布阵差不多就是模板题目 ...
分类:
其他好文 时间:
2017-09-08 20:33:26
阅读次数:
147
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8599 Accepted Submission(s): 4306 Problem Descrip ...
分类:
其他好文 时间:
2017-08-05 23:38:59
阅读次数:
476
?? 此题不难就是输出格式麻烦 #include<stdio.h> int main(){ int T; scanf("%d",&T); while(T--) { int n,m,num=0; while(scanf("%d %d",&n,&m)&&n!=0) { int a,b,sum=0; fo ...
分类:
移动开发 时间:
2017-08-05 22:55:29
阅读次数:
217
?? 此题不难就是输出格式麻烦 #include<stdio.h> int main(){ int T; scanf("%d",&T); while(T--) { int n,m,num=0; while(scanf("%d %d",&n,&m)&&n!=0) { int a,b,sum=0; fo ...
分类:
移动开发 时间:
2017-08-05 22:50:19
阅读次数:
222
?? 此题不难就是输出格式麻烦 #include<stdio.h> int main(){ int T; scanf("%d",&T); while(T--) { int n,m,num=0; while(scanf("%d %d",&n,&m)&&n!=0) { int a,b,sum=0; fo ...
分类:
移动开发 时间:
2017-08-05 22:44:07
阅读次数:
176