- 博客(7)
- 资源 (4)
- 问答 (2)
- 收藏
- 关注
原创 杭电ACM 2021 发工资咯:)
http://acm.hdu.edu.cn/showproblem.php?pid=2021 #include using namespace std; int main() { int n; int c100,c50,c10,c5,c2,c1,cont; int a[100]; while(cin>>n&&n!=0){ int i; cont=0; for(i
2012-07-28 23:09:05 2238
原创 杭电ACM 2020 绝对值排序
http://acm.hdu.edu.cn/showproblem.php?pid=2020 #include using namespace std; int main() { int n; while(cin>>n&&n!=0){ int a[100]={0}; for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;
2012-07-28 22:45:51 3414
原创 杭电ACM 2019 数列有序!
http://acm.hdu.edu.cn/showproblem.php?pid=2019 #include using namespace std; int main() { int n,m; while(cin>>n>>m&&!(n==0&&m==0)){ int a[101]={0}; for(int i=0;i<n;i++) cin>>a[i]; for(
2012-07-28 21:20:22 4651
原创 杭电ACM 2018 母牛的故事
http://acm.hdu.edu.cn/showproblem.php?pid=2018 #include using namespace std; int Fun(int n){ int n1[55],n2[55],n3[55],n4[55]; //n4 is muniu //n1 活了1年 //n1 活了2年 //n1 活了3年 for(int ix=
2012-07-28 18:41:47 3288
原创 杭电ACM 2016 数据的交换输出
http://acm.hdu.edu.cn/showproblem.php?pid=2016 #include using namespace std; int find_min(int *a,int i){ int min=0; for(int ix=0;ix<i;ix++){ if(a[ix]<a[min]) min=ix; } return min; } int
2012-07-28 17:31:38 2265
原创 杭电ACM 2015 偶数求和
http://acm.hdu.edu.cn/showproblem.php?pid=2015 #include using namespace std; int main(){ int res[100]; int cont=0; int a[100];// to store the origin numbs int n,m,sum=0,num=0; a[0]=2; fo
2012-07-26 19:24:38 2976
原创 杭电ACM 2012 素数判定
http://acm.hdu.edu.cn/showproblem.php?pid=2012 #include using namespace std; int IsNotSushu(int a){ for(int i=2;i<=a/2;i++){ if(a%i==0) return 1; } return 0; } int main(){ int x,y; while(cin>
2012-07-26 17:16:02 3565
ListView的进程信息
2013-01-04
Android中的EditText如何实现小米计算器的第二行的效果?
2016-04-28
TA创建的收藏夹 TA关注的收藏夹
TA关注的人