#include #include"testlib.h" using namespace std; using ll = long long; const ll Nmin = 1, Nmax = 5000; const ll Kmin = 0, Kmax = 1'000'000'000; int main(){ registerValidation(); ll n = inf.readLong(Nmin,Nmax); inf.readSpace(); ll k = inf.readLong(Kmin,Kmax); inf.readEoln(); for (ll i = 1; i <= n; i++){ ll r = inf.readLong(i,n); inf.readSpace(); ll x = inf.readLong(0,n*k); inf.readEoln(); } inf.readEof(); }