#include<vector> usingnamespace std; classRemovedNumbers { public: static vector<vector<longlong>> removNb(longlong n) { longlong sum = n * (n + 1) / 2; vector<vector<longlong>> res; for(longlong a = 1; a <= n; a++) { longlong b = (sum - a) / (a + 1); if(a * b + a + b == sum and1 <= b and b <= n and b != a) res.push_back({a,b}); } return res; } };