上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 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 念文丶 阅读(206) 评论(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 念文丶 阅读(248) 评论(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 念文丶 阅读(176) 评论(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 念文丶 阅读(264) 评论(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 念文丶 阅读(278) 评论(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 念文丶 阅读(404) 评论(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 念文丶 阅读(342) 评论(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 念文丶 阅读(314) 评论(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 念文丶 阅读(312) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 struct node 4 { 5 int a; 6 struct node*next; 7 }; 8 int main() 9 { 10 int n,d; 11 scanf("%d",&n); 12 struct node*head,*p,*taile,*q; 13 head=... 阅读全文
posted @ 2019-02-28 11:50 念文丶 阅读(280) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页