上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 1 #include 2 #include 3 int main() 4 { 5 int T,b,i; 6 double a,sum; 7 scanf("%d",&T); 8 while(T--) 9 { 10 scanf("%lf %d",&a,&b); 11 sum=a; 12 a=... 阅读全文
posted @ 2019-03-07 16:28 念文丶 阅读(933) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 int n,i; 6 long long int a[50]; 7 a[1]=0,a[2]=1;//典型的错排公式。 8 while(scanf("%d",&n)!=EOF) 9 { 10 for(i=3;i<=n;i++) 11 ... 阅读全文
posted @ 2019-03-07 11:45 念文丶 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 int n,i; 6 long long int a[50]; 7 a[0]=1;a[1]=2; 8 while(scanf("%d",&n)!=EOF) 9 { 10 for(i=2;i<n;i++) 11 { 12 ... 阅读全文
posted @ 2019-03-07 11:21 念文丶 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 int n,i; 6 long long int a[50]; 7 a[0]=1;a[1]=2; 8 while(scanf("%d",&n)!=EOF) 9 { 10 for(i=2;i<n;i++) 11 { 12 ... 阅读全文
posted @ 2019-03-07 11:20 念文丶 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 int n,i; 6 int a[20]; 7 a[1]=8,a[0]=5; 8 while(scanf("%d",&n)!=EOF) 9 { 10 for(i=2; i<n; i++) 11 { 12 ... 阅读全文
posted @ 2019-03-06 20:48 念文丶 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 int n,i; 6 int a[100]; 7 a[3]=4,a[2]=3,a[1]=2;a[0]=1; 8 while(scanf("%d",&n)&&n!=0) 9 { 10 for(i=4; i<n; i++) 11 ... 阅读全文
posted @ 2019-03-06 20:42 念文丶 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 struct node 4 { 5 int data; 6 struct node*next; 7 }; 8 int main() 9 { 10 int m,n,x,i,j; 11 while(~ scanf("%d",&n)&&n!=0) 12 { 13 struct ... 阅读全文
posted @ 2019-03-06 19:42 念文丶 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 struct node 4 { 5 int data; 6 struct node*next; 7 }; 8 int main() 9 { 10 int m,n,x,i,j; 11 struct node*head,*p,*end; 12 head=(struct node*)mallo... 阅读全文
posted @ 2019-03-06 19:30 念文丶 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 struct node 4 { 5 int data; 6 struct node*next,*last; 7 }; 8 int main() 9 { 10 int m,n,x,i,a; 11 struct node*head,*p,*end; 12 head=(struct node*... 阅读全文
posted @ 2019-03-06 18:59 念文丶 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 struct node 4 { 5 int data; 6 struct node *next; 7 }; 8 int main() 9 { 10 int n,i; 11 scanf("%d",&n); 12 int count=n; 13 struct node*head,*p... 阅读全文
posted @ 2019-03-04 21:30 念文丶 阅读(308) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页