#define USECHRONO #undef HAVE_MPI #include "eval.hpp" #include #include #include #include using namespace aed; using namespace std; //---:---<*>---:---<*>- COMIENZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> // COMPLETAR DNI y NOMBRE AQUI: // Nombre: Molas Tomas Alejandro int DNI=43415053; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> int cant_pares(setS){ int cant = 0; for( set::iterator it=S.begin(); it!=S.end(); ++it ) { if((*it)%2 == 0) ++cant; } return cant; } void set_u(setX, set&S){ for( set::iterator it=X.begin(); it!=X.end(); ++it ) { if(S.find(*it)==S.end()) S.insert(*it); } } void set3par(vector> &VS, set &S) { for( vector>::iterator it=VS.begin(); it!=VS.end(); ++it ) { if(cant_pares(*it)>=3) set_u(*it,S); } } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set3par,vrbs); return 0; }