#pragma GCC optimize ("O3") #pragma GCC target ("avx") #include int N,Q; long int x; int q; struct train { long long int cool; long long int setpoint; int connected; }; int main(){ scanf("%d %d",&N,&Q); struct train t[N]; for(int i =0;i