|
@@ -39,7 +39,6 @@
|
|
|
\asegura{res \in deportes(a)}
|
|
\asegura{res \in deportes(a)}
|
|
|
\asegura{capacidad(a,res)==maximoLista(listarCapacidades(a))}
|
|
\asegura{capacidad(a,res)==maximoLista(listarCapacidades(a))}
|
|
|
\aux{listarCapacidades}{a:Atleta}{[\ent]}{[capacidad(a,x) | x \leftarrow deportes(a) ]}
|
|
\aux{listarCapacidades}{a:Atleta}{[\ent]}{[capacidad(a,x) | x \leftarrow deportes(a) ]}
|
|
|
- \aux{maximoLista}{ls:[\ent]}{\ent}{[x|x\leftarrow ls, (\forall y \leftarrow ls) x \geq y][0]}
|
|
|
|
|
\end{problema}
|
|
\end{problema}
|
|
|
|
|
|
|
|
%Seen by martu
|
|
%Seen by martu
|
|
@@ -126,10 +125,6 @@
|
|
|
\begin{problema}{medallero}{j: JJOO}{[(Pais, [\ent])]}
|
|
\begin{problema}{medallero}{j: JJOO}{[(Pais, [\ent])]}
|
|
|
\asegura{mismos(result, sacarSinMedallas(crearMedallero(j)))}
|
|
\asegura{mismos(result, sacarSinMedallas(crearMedallero(j)))}
|
|
|
\asegura{medalleroOrdenado(result)}
|
|
\asegura{medalleroOrdenado(result)}
|
|
|
- \aux{listaNacionalidadesAtletas}{j: JJOO}{[Pais]}{[nacionalidad(at) | at \leftarrow atletas(j)]}
|
|
|
|
|
- \aux{sacarRepeticiones}{ls : [T]}{[T]}{[ls[x] | x \leftarrow [0..|ls|-1], \neg en(ls[x], ls[0..x-1])]}
|
|
|
|
|
- \aux{listaPaises}{j: JJOO}{[Pais]}{sacarRepeticiones(listaNacionalidadesAtletas(j))}
|
|
|
|
|
- \aux{cuenta}{x: T, a: [T]}{\ent}{|[y | y \leftarrow a, y == x]|}
|
|
|
|
|
\aux{nacionalidadPrimerosTres}{c:Competencia}{[Pais]}{\newline
|
|
\aux{nacionalidadPrimerosTres}{c:Competencia}{[Pais]}{\newline
|
|
|
[ifthenelse(i \leq |ranking (c)|-1, nacionalidad(ranking(c)[i]), "Narnia") | i \leftarrow [0..2]]}
|
|
[ifthenelse(i \leq |ranking (c)|-1, nacionalidad(ranking(c)[i]), "Narnia") | i \leftarrow [0..2]]}
|
|
|
\aux{ganadoresMTotales}{M: \ent, j: JJOO}{[Pais]}{\newline
|
|
\aux{ganadoresMTotales}{M: \ent, j: JJOO}{[Pais]}{\newline
|
|
@@ -167,7 +162,6 @@
|
|
|
[x | x \leftarrow participantes(competenciaFiltrada(pre(j),cat)), nacionalidad(x) \neq p])}
|
|
[x | x \leftarrow participantes(competenciaFiltrada(pre(j),cat)), nacionalidad(x) \neq p])}
|
|
|
\asegura{ res == |[x | comp \leftarrow todasLasCompetencias(pre(j)),\newline
|
|
\asegura{ res == |[x | comp \leftarrow todasLasCompetencias(pre(j)),\newline
|
|
|
x \leftarrow participantes(comp), (categoria(comp) == cat \wedge nacionalidad(x) == p)]|}
|
|
x \leftarrow participantes(comp), (categoria(comp) == cat \wedge nacionalidad(x) == p)]|}
|
|
|
- \aux{todasLasCompetencias}{j:JJOO}{[competencia]}{[x | y \leftarrow [1..cantDIas(j)], x \leftarrow cronogramas(j,y) ] }
|
|
|
|
|
\aux{competenciaFiltrada}{j:JJOO, c:(deporte,sexo)}{competencia}{
|
|
\aux{competenciaFiltrada}{j:JJOO, c:(deporte,sexo)}{competencia}{
|
|
|
\newline cab( [x | x \leftarrow todasLasCompetencias(j), c== categoria(x) ] )}
|
|
\newline cab( [x | x \leftarrow todasLasCompetencias(j), c== categoria(x) ] )}
|
|
|
\end{problema}
|
|
\end{problema}
|
|
@@ -315,7 +309,6 @@
|
|
|
| comp \leftarrow cronograma(j,jornadaActual(j))])}
|
|
| comp \leftarrow cronograma(j,jornadaActual(j))])}
|
|
|
\aux{capacidadEnOrden}{x: \ent, c:Competencia}{Bool}{\newline
|
|
\aux{capacidadEnOrden}{x: \ent, c:Competencia}{Bool}{\newline
|
|
|
capacidad(ranking(c)[x], prm(categoria(c))) \geq capacidad(ranking(c)[x + 1], prm(categoria(c)))}
|
|
capacidad(ranking(c)[x], prm(categoria(c))) \geq capacidad(ranking(c)[x + 1], prm(categoria(c)))}
|
|
|
- \aux{listaDoping}{c:Competencia, a:[Atleta]}{[Atleta]}{[x|x \leftarrow a, leDioPositivo(c, x)]}
|
|
|
|
|
\end{problema}
|
|
\end{problema}
|
|
|
|
|
|
|
|
\section{Auxiliares}
|
|
\section{Auxiliares}
|