$n$-Way Tie Gym
来源:互联网 发布:python批处理图片大小 编辑:程序博客网 时间:2024/06/08 07:34
#include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <set>#include <stack>#include <queue>#include <ctype.h>#include <vector>#include <algorithm>#include <time.h>// cout << " === " << endl;using namespace std;typedef long long ll;const int maxn = 200000 + 7, INF = 0x3f3f3f3f, mod = 1e9+7;int n;int main() { scanf("%d", &n); if(n % 2 == 0) { puts("No"); } else { puts("Yes"); for(int i = n-1; i > 0; --i) { for(int j = 0; j < i; ++j) { printf("%d%s", (j+1)%2, (j != (i-1) ? " " : "\n") ); } } } return 0;}
阅读全文
1 0
- $n$-Way Tie Gym
- $n$-Way Tie Gym
- Tie
- tie
- N. Find a way
- Asterisk n-way call HOWTO
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- 如何通过 JitPack 发布自己的开源项目
- 监控-Kafka Manager
- Nginx
- [Treap]poj2985 The k-th Largest Group
- 【POJ】2139
- $n$-Way Tie Gym
- 开发规范 项目 文件夹 目录 结构 分类
- Lazarus的INI文件处理机制
- 矩阵奇异值分解(SVD)
- C语言使用位移转换二进制
- hdu 1619
- 图解offsetWidth等
- Basketball Gym
- [正则表达式] hdu6170 two strings