[Noti-aed] set3par

Agustín Saenz agustinsaenzc en gmail.com
Jue Nov 9 19:25:21 -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/da94082b/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: Saenz Agustin
int DNI=42464943;



//---:---<*>---:---<*>---:---<*>---:---<*>---:---<*>
void set3par(vector<set<int>> &VS, set<int> &S) {
  for (const auto &conjunto : VS) {
    int contador_pares = 0;
    for (const auto &n : conjunto) {
      if (n % 2 == 0) {
        contador_pares++;
      }
    }
    if (contador_pares >= 3) { 
      S.insert(conjunto.begin(), conjunto.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