摘要:
0~2000000000中能被2,3,5,7整除的数View Code 1 //杭电1058 2 /* 3 1 The 1st humble number is 1. 4 2 The 2nd humble number is 2. 5 3 The 3rd humble number is 3. 6 4 The 4th humble number is 4. 7 11 The 11th humble number is 12. 8 12 The... 阅读全文
posted @ 2012-07-05 16:43
zlyblog
阅读(256)
评论(0)
推荐(0)
摘要:
平面上有N条直线,且无三点共点,View Code 1 //杭电1466 2 /* 3 2 4 3 5 6 7 0 1 8 0 2 3 9 */10 #include <stdio.h>11 #include <stdlib.h>12 #include <string.h>13 int main ()14 {15 int dp[21][191],i,j,r,n,max;16 17 memset(dp,0,sizeof(dp)); //数组dp空间初始化为018 19 for(i=0;i<21;i++)20 dp[i][0]=1; ... 阅读全文
posted @ 2012-07-05 11:02
zlyblog
阅读(253)
评论(0)
推荐(0)
摘要:
View Code 1 //杭电1087 2 /* 3 3 1 3 2 4 4 1 2 3 4 5 4 3 3 2 1 6 0 7 8 9 410 1011 312 */13 #include<stdio.h>14 #include<string.h>15 16 int main()17 {18 int n,a[1010],b[1010],i,j,k,max1,max2;19 while(scanf("%d",&n),n!=0)20 {21 memset(a,0,sizeof(a));//将其清零22 memset(b,0,size... 阅读全文
posted @ 2012-07-05 09:10
zlyblog
阅读(262)
评论(0)
推荐(0)

浙公网安备 33010602011771号