| 比赛 | 2016-10-11 4 syz | 评测结果 | AAAAAAATTT |
|---|---|---|---|
| 题目名称 | 无穷的序列 | 最终得分 | 70 |
| 用户昵称 | zihahahaha | 运行时间 | 3.119 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2016-10-11 20:39:35 | ||
#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int n;
void ask(int x){
for(int i=1;x-i>0;i++){
x=x-i;
}
if(x==1) printf("1\n");
else printf("0\n");
}
int main() {
freopen("unlessseq.in","r",stdin);
freopen("unlessseq.out","w",stdout);
scanf("%d",&n);
int x;
for(int i=1;i<=n;i++){
scanf("%d",&x);
ask(x);
}
return 0;
}