标签:atom ber called ted choice title least c++ any
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)
Total Submission(s): 0 Accepted Submission(s): 0
Special Judge
1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=1e5+10; 4 int a[N]; 5 int main(){ 6 int t,n; 7 scanf("%d",&t); 8 while(t--){ 9 scanf("%d",&n); 10 int h=1,k=n; 11 for(int i=1;i<=n;i+=2)a[i]=h++; 12 for(int i=2;i<=n;i+=2)a[i]=k--; 13 for(int i=1;i<=n;i++) 14 printf("%d ",a[i]); 15 printf("\n"); 16 } 17 return 0; 18 }
队友太厉害啦,%%%。
Permutation-水题-2017中国大学生程序设计竞赛-哈尔滨站-重现赛
标签:atom ber called ted choice title least c++ any
原文地址:http://www.cnblogs.com/ZERO-/p/7819862.html