#include using namespace std; #define int long long typedef vectorvint; typedef pairpint; typedef vectorvpint; #define rep(i,n) for(int i=0;i<(n);i++) #define reps(i,f,n) for(int i=(f);i<(n);i++) #define all(v) (v).begin(),(v).end() #define each(it,v) for(__typeof((v).begin()) it=(v).begin();it!=(v).end();it++) #define pb push_back #define fi first #define se second templateinline void chmin(A &a,B b){if(a>b)a=b;} templateinline void chmax(A &a,B b){if(a1){ int mid=(ub+lb)/2; if(mid*2+mid<=d)lb=mid; else ub=mid; } return lb; } signed main(){ int cnt=0; for(int i=2;;i++){ if((i*i-1)%4)continue; int t=(i*i-1)/4; if(calc(t)!=solve(t)){ printf("%lld\n",t); cnt++; if(cnt==100000)break; } } return 0; }