[Noti-aed] EJ 2 TPL3

Joaquin Degiovanni joackoodegiovanni en gmail.com
Jue Nov 9 18:06:25 -03 2023


------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://venus.santafe-conicet.gov.ar/pipermail/noti-aed/attachments/20231109/b65e3095/attachment.html>
------------ próxima parte ------------
#define USECHRONO
#undef HAVE_MPI

#include "eval.hpp"
#include <cassert>
#include <climits>
#include <cstdlib>
#include <stack>
using namespace aed;
using namespace std;

//---:---<*>---:---<*>- COMIENZA CODIGO FUNCION --:---<*>---:---<*>---:---<*>
// COMPLETAR DNI y NOMBRE AQUI:
// Nombre: Degiovanni Joaquin
int DNI=43644038;



//---:---<*>---:---<*>---:---<*>---:---<*>---:---<*>
void set3par(vector<set<int>> &VS, set<int> &S) {
  // COMPLETAR AQUI...
  for(auto set: VS){
    int npar=0;
    for(int numero: set){
      if(numero %2 == 0){
        npar++;
      }
    }
    
    if(npar>=3){
      S.insert(set.begin(),set.end());
    }
  }
  
}

//---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*>
int main() {
  Eval ev;
  int vrbs=0;
  ev.eval<1>(set3par,vrbs);
  return 0;
}


Más información sobre la lista de distribución Noti-AED