Skip to content

Commit

Permalink
Solução dos problemas da categoria Iniciante potigol#27
Browse files Browse the repository at this point in the history
Problema 1789 - A Corrida de Lesmas
  • Loading branch information
arioston committed Oct 5, 2019
1 parent cd9836c commit d121a85
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion categorias/iniciante.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- [ ] [1478](https://www.urionlinejudge.com.br/judge/pt/problems/view/1478) - Matriz Quadrada II
- [X] [1541](https://www.urionlinejudge.com.br/judge/pt/problems/view/1541) - Construindo Casas
- [ ] [1789](https://www.urionlinejudge.com.br/judge/pt/problems/view/1789) - A Corrida de Lesmas
- [X] [1789](https://www.urionlinejudge.com.br/judge/pt/problems/view/1789) - A Corrida de Lesmas
- [ ] [1827](https://www.urionlinejudge.com.br/judge/pt/problems/view/1827) - Matriz Quadrada IV
- [ ] [1837](https://www.urionlinejudge.com.br/judge/pt/problems/view/1837) - Prefácio
- [ ] [1848](https://www.urionlinejudge.com.br/judge/pt/problems/view/1848) - Corvo Contador
Expand Down
14 changes: 14 additions & 0 deletions src/1701-1800/1789.poti
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var n := leia_texto

enquanto n <> None.orNull faça
var velocidades := leia_inteiros(" ")
var maior_velocidade := velocidades.injete(0)((a, b) => se a > b então a senão b fim)

escolha maior_velocidade
caso velocidade se velocidade < 10 => escreva "{1}"
caso velocidade se velocidade < 20 => escreva "{2}"
caso _ => escreva "{3}"
fim

n := leia_texto
fim

0 comments on commit d121a85

Please sign in to comment.