#include using namespace std; #define INF 0x3f #define fastcin ios_base::sync_with_stdio(false) typedef long long ll; const double PI = acos(-1.0); //Não mudar daqui pra cima :) const int N = 100001; //de acordo com problema int C[N]; int main(void){ srand(time(NULL)); #ifndef ONLINE_JUDGE freopen("inp.txt", "r", stdin); freopen("out.txt", "w", stdout); #endif int n, a, b, i, j, q; scanf("%d %d %d %d", &n, &a, &b, &q); for(i=0;i