#include #include "testlib.h" using namespace std; using ll = long long; int main(int argc,char** argv){ registerValidation(argc, argv); ll N = inf.readInt(1, 500000, "N"); inf.readSpace(); ll Q = inf.readInt(1, 100000, "Q"); inf.readEoln(); for (ll i = 0; i < Q;i++){ ll L = inf.readInt(1, N, "L"); inf.readSpace(); ll R = inf.readInt(L, N, "R"); inf.readEoln(); } inf.readEof(); }