版本比较
题解:AT_abc420_g [ABC420G] sqrt(n²+n+X)
正文
增加 2 行删除 2 行
53 行未改动5455565758585960616210 行未改动737475767777787980812 行未改动53 行未改动set<int>st;void upd(int a,int b){ if((a+b)%2==0&&(b-a)%4==0){ int m=(a+b)/2; if(m%2)st.insert((m-1)/2); if(m%2)st.insert((m-1)/2); }}void solve(){ cin>>x;10 行未改动 for(auto i:st)cout<<i<<" ";}signed main(){ ios::sync_with_stdio(0); cin.tie(0),cout.tie(0); cin.tie(0),cout.tie(0); int T=1;// cin>>T; while(T--)solve(); return 0;2 行未改动