| 比赛 | 防止浮躁的小练习v0.3 | 评测结果 | AAAAEEEEEE |
|---|---|---|---|
| 题目名称 | 无穷的序列 | 最终得分 | 40 |
| 用户昵称 | asddddd | 运行时间 | 0.465 s |
| 代码语言 | C++ | 内存使用 | 1.58 MiB |
| 提交时间 | 2016-10-12 17:12:57 | ||
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#define maxn 1510000
using namespace std;
bool haha[maxn];
int main(){
freopen("unlessseq.in","r",stdin);
freopen("unlessseq.out","w",stdout);
int t=1,c=1;
while(1){
haha[t]=1;
t+=c;
if(t>=maxn)
break;
c++;
}
scanf("%d",&t);
for(int i=0;i<t;i++){
scanf("%d",&c);
printf("%d\n",haha[c]);
}
}