#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: Arquiel Ana int DNI=45552627; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> bool pares3(set&S){ //minimo tres pares auto it = S.begin(); int c = 0; while (it != S.end()){ if ((*it)%2 == 0){ c++; } if (c == 3){ return true; } it++; } return false; } void set3par(vector> &VS, set &S) { S.clear(); setaux; auto it = VS.begin(); while (it!=VS.end()){ if (pares3(*it)){ aux.clear(); set_union(*it, S, aux); S = aux; } it++; } } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set3par,vrbs); return 0; }