摘要:
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1001 AC代码: #include <stdio.h>#include <stdlib.h>int main(){ int n,sum; while(scanf("%d",&n)==1) { if(n%2=
阅读全文
posted @ 2017-01-20 22:17
hanlulu
阅读(88)
推荐(0)
编辑
摘要:
链接 https://vjudge.net/problem/HDU-2032 杨辉三角 HDU - 2032 因为要同时控制长和宽,所以选择二维数组。 #include <stdio.h>#include <stdlib.h>int main(){ int i,j,n; int vis[100][1
阅读全文
posted @ 2017-01-20 14:18
hanlulu
阅读(93)
推荐(0)
编辑
摘要:
Compote CodeForces - 746A 直接按比例找就行。 最初WA的代码: QAQ 写的复杂。。。 #include <stdio.h>#include<stdlib.h>int main(){ int a,b,c,i,j,k,ans; scanf("%d%d%d",&a,&b,&c)
阅读全文
posted @ 2017-01-20 13:27
hanlulu
阅读(105)
推荐(0)
编辑