* $1$ test: $t = 0$, $N ≤ 1.000$, $S ≤ 1.000$, nu exista operatii de tipul $2$
* $1$ test: $t = 0$, $N ≤ 1.000$, $S ≤ 1.000$
* $1$ test: $t = 0$, $N ≤ 30.000$, $S ≤ 1.000$
* $1$ test: $t = 1$, $N ≤ 30.000$, $S ≤ 1.000$, nu exista operatii de tipul $2$
* $1$ test: $t = 1$, $N ≤ 30.000$, $S ≤ 1.000$
* $1$ test: $t = 0$, $N ≤ 10.000$, $S ≤ 300$
* $1$ test: $t = 1$, $N ≤ 10.000$, $S ≤ 300$, nu exista operatii de tipul $2$
* $1$ test: $t = 1$, $N ≤ 10.000$, $S ≤ 300$
* $1$ test: $t = 0$, $N ≤ 50.000$, $S ≤ 20$, nu exista operatii de tipul $2$
* $2$ teste: $t = 0$, $N ≤ 50.000$, $S ≤ 20$
* $2$ teste: $t = 1$, $N ≤ 50.000$, $S ≤ 20$, nu exista operatii de tipul $2$
* $3$ teste: $t = 1$, $N ≤ 50.000$, $S ≤ 20$
* $1$ test: $t = 0$, $N ≤ 1.000.000$, $S = 1$, nu exista operatii de tipul $2$
* $1$ test: $t = 0$, $N ≤ 1.000.000$, $S = 1$
* $1$ test: $t = 1$, $N ≤ 1.000.000$, $S = 1$, nu exista operatii de tipul $2$
* $4$ teste: $t = 1$, $N ≤ 1.000.000$, $S = 1$
* $1$ test: $t = 0$, $N ≤ 200.000$, $S ≤ 50$, nu exista operatii de tipul $2$
* $2$ teste: $t = 0$, $N ≤ 200.000$, $S ≤ 50$
* $2$ teste: $t = 1$, $N ≤ 200.000$, $S ≤ 50$, nu exista operatii de tipul $2$
* $3$ teste: $t = 1$, $N ≤ 200.000$, $S ≤ 50$
h2. Exemplu
table(example). |_. moft.in |_. moft.out |