acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 题解

    userId_undefined

    法兰西玫瑰

    倔强青铜
    49阅读
    2回复
    1点赞
  • 格林の题解

    只需要按题目要求顺序遍历数组,还原序列

    userId_undefined

    紫幽梦魇Grimm

    倔强青铜
    24阅读
    0回复
    2点赞
  • jjj

    #include<iostream> using namespace std; int main() { int a[10001],n,t,zh,i=0; cin>>t; for(int y=1;y<=t;y++) { zh=1; a[10001]={}; cin>>n; i=n; for(int y=1;y<=n;y++) { cin>>a[y]; } if(n%2==0) { for(int y=1;y<=n/2;y++) { cout<<a[zh]<<" "; cout<<a[i]<<" "; zh=zh+1; i=i-1; } }

    userId_undefined

    137****7127

    倔强青铜
    14阅读
    0回复
    0点赞
  • e

    #include<bits/stdc++.h> #include<iostream> #include<cmath> using namespace std; const int N=310; int n; int a[N]; int b[N]; void z(int s){ if(s%2==1){ int s1=(s+1)/2; for(int i=0,j=0;i<s1;i++,j+=2){ b[j]=a[i]; } int main(){ }

    userId_undefined

    wangchaoyu

    倔强青铜
    1阅读
    0回复
    1点赞
  • 奇偶特判

    userId_undefined

    MuktorFM

    荣耀黄金
    2阅读
    0回复
    0点赞
首页