| 比赛 | 防止浮躁的小练习v0.3 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 无穷的序列 | 最终得分 | 100 |
| 用户昵称 | Mealy | 运行时间 | 0.302 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2016-10-12 19:34:53 | ||
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int n;
int tmp;
int main()
{
freopen("unlessseq.in","r",stdin);
freopen("unlessseq.out","w",stdout);
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%d",&tmp);
if(int(sqrt((double)1*tmp*8-7))*int(sqrt((double)1*tmp*8-7))==(double)1*tmp*8-7)
printf("1\n");
else
printf("0\n");
}
return 0;
}