#include #include int main() { int tab[100][100]; int T,S,C,q,a,b,hod; int i,j,k; scanf("%i\n",&T); for(i=0;i