| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 99079 | 刘星辰liuxingchen | 二进制半整数 | C++ | Accepted | 100 | 103 MS | 272 KB | 466 | 2023-08-21 22:15:55 |
#include<bits/stdc++.h> using namespace std; int t; long long n; long long sum=0; bool b; int main() { cin>>t; while(t--) { cin>>n; b=0; for(int i=0;pow(2,i)<=n;i++) { for(int j=i;pow(2,i)+pow(2,j)<=n;j++) { if(pow(2,i)+pow(2,j)==n) { cout<<"yes"; cout<<endl; b=1; break; } } if(b==1) { break; } } if(b==0) { cout<<"no"; cout<<endl; } } return 0; }