AtCoder Roulette
#include < bits / stdc ++. h > using namespace std ; const int high = 205 ; int ar [ high ][ high ], ans [ high ], allC [ high ], mp [ high ][ high ]; struct data { int indx ; int c ; } sarr [ high ]; void sol ( int N ) { int C , clen = 0 ; for ( int i = 0 ; i < N ; i ++) { cin >> C ; allC [ clen ++] = C ; for ( int j = 0 ; j < C ; j ++) { cin >> ar [ i ][ j ]; } } int X , minC = 37 , slen = 0 ; cin >> X ; for ( int i = 0 ; i < N ; i ++) { for ( int j = 0 ; j < allC [ i ]; j ++) { if ( ar [ i ][ j ] == X ) { if ( mp [ i ][ j ] == 0 ) { mp [ i ][ j ] = 1 ; sarr [ slen ]. indx = i + 1 ; sarr [ slen ++]. c = allC [ i ]; if ( minC > allC [ i ]) { minC = allC [ i ];