/* 入力 validation。WA なら OK。 */ #include "testlib.h" #include using namespace std; using ll = long long; const ll Nmin = 1, Nmax = 80; const ll Mmin = 1, Mmax = 80; const ll Tmin = 1, Tmax = 1e9; const ll Cmin = 1, Cmax = 1e9; const ll Dmin = 1, Dmax = 1e9; int main(){ registerValidation(); ll N = inf.readLong(Nmin,Nmax); inf.readSpace(); ll M = inf.readLong(Mmin,Mmax); inf.readSpace(); const ll Kmin = 0, Kmax = N * M - 2; ll K = inf.readLong(Kmin,Kmax); inf.readSpace(); ll T = inf.readLong(Tmin,Tmax); inf.readEoln(); set> fushigi; for (int i=0; i