Timofey and cubes_Codeforces
来源:互联网 发布:品茗预算软件下载 编辑:程序博客网 时间:2024/06/03 21:56
下标值为奇数交换
#include <stdio.h>#include <algorithm>using namespace std;#define maxn 1000001long long s[maxn];int main(){ long long n,i; scanf("%lld",&n); for(i=1;i<=n;i++) scanf("%lld",&s[i]); for(i=1;i<=n/2;i++) if(i%2) swap(s[i],s[n-i+1]); for(i=1;i<=n;i++) printf("%lld ",s[i]); printf("\n"); return 0;}
0 0
- Timofey and cubes_Codeforces
- B - Timofey and cubes
- Timofey and a tree
- D. Timofey and rectangles
- B. Timofey and cubes
- C. Timofey and a tree
- 【CF763B】Timofey and rectangles 题解
- Timofey and cubes (水题)
- 【codeforces 764B】Timofey and cubes
- CF764 B. Timofey and cubes(水题)
- 【codeforces 764C】Timofey and a tree
- 【codeforces 764B】Timofey and cubes 题解
- Codeforces 764B-Timofey and cubes
- Codeforces 763A-Timofey and a tree
- Codeforces 763B-Timofey and rectangles
- CodeForces 763A Timofey and a tree
- CodeForces 763C. Timofey and remoduling
- CodeForces - 764B Timofey and cubes
- android架构封装(mvp + rxandroid + Retrofit2.0 )
- 【框架-MFC】调用dll中的对话框
- hibernate常见的面试题及答案
- JavaScript面向对象精要(二)
- 嘿嘿
- Timofey and cubes_Codeforces
- apache启动失败原因
- Android基础——Activity相关
- Fragment
- startService与bindService的区别
- Harris角点检测原理与流程
- JavaScript中的this到底指的是什么!
- OpenCV Resize Reshape
- AlloyTouch之无限循环select插件