#include #if __has_include() #include using namespace atcoder; #endif using namespace std; #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #define ll long long #define forin(in ,n) for(ll i=0; i>in[i] #define forout(out) for(ll i=0; i<(ll)out.size(); i++) cout<= n; --i) #define P pair #define all(v) v.begin(), v.end() #define fi first #define se second #define vvvll vector>> #define vvll vector> #define vll vector #define pqll priority_queue #define pqllg priority_queue, greater> constexpr ll INF = (1ll << 60); //constexpr ll mod = 1000000007; constexpr ll mod = 998244353; vll seen(100001); vll cnt(100001); void dfs(vvll &G, ll v){ ll res=1; seen[v]=1; for(auto e:G[v]){ if(seen[e]==1) continue; dfs(G,e); res+=cnt[e]; } cnt[v]=res; } void solve(){ ll n,q,sum=0,ans=0; cin>>n>>q; if(n<2||n>100000||q<1||q>100000){ cout<<"Error"<>a>>b; if(a>n||a<1||b>n||b<1){ cout<<"Error"<>p>>x; if(p<1||p>n||x<1||x>100000000){ cout<<"Error"<>T; //rep(ca,T) solve(); }