Hello Equation Solutions
// Below Solution Available in c++
#include<bits/stdc++.h> #define int long long using namespace std; int x; void solve() { cin >> x; for(int i=1;i*i<=x;++i) if((x-2*i)%(i+2)==0&&x!=2*i) { puts("YES"); return; } puts("NO"); } signed main() { int T; cin >> T; while(T--) solve(); }
Comments
Post a Comment