delete two minimal digits which has a remainder as y
if ( v [ i ] % 3 == y ) { v . erase ( v . begin ( ) + i ) ; cnt ++ ; if ( cnt >= 2 ) break ; } } } } if ( * v . begin ( ) == 0 ) cout << "0" << endl ;