Skip to content

Commit

Permalink
Problema: 1337
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlucena committed May 11, 2024
1 parent e090b3c commit 76608cf
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
4 changes: 2 additions & 2 deletions categorias/adhoc.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ad-Hoc (248 / 880)
# Ad-Hoc (249 / 880)



Expand Down Expand Up @@ -34,6 +34,7 @@
- [x] [1300](https://www.beecrowd.com.br/repository/UOJ_1300.html) - [Horas e Minutos](https://github.com/potigol/beecrowd/blob/master/src/1300/1300.poti)
- [x] [1318](https://www.beecrowd.com.br/repository/UOJ_1318.html) - [Bilhetes Falsos](https://github.com/potigol/beecrowd/blob/master/src/1300/1318.poti)
- [x] [1329](https://www.beecrowd.com.br/repository/UOJ_1329.html) - [Cara ou Coroa](https://github.com/potigol/beecrowd/blob/master/src/1300/1329.poti)
- [x] [1337](https://www.beecrowd.com.br/repository/UOJ_1337.html) - [Poker do Rei](https://github.com/potigol/beecrowd/blob/master/src/1300/1337.poti)
- [x] [1379](https://www.beecrowd.com.br/repository/UOJ_1379.html) - [Problema com Mediana e Média](https://github.com/potigol/beecrowd/blob/master/src/1300/1379.poti)
- [x] [1383](https://www.beecrowd.com.br/repository/UOJ_1383.html) - [Sudoku](https://github.com/potigol/beecrowd/blob/master/src/1300/1383.poti)
- [x] [1387](https://www.beecrowd.com.br/repository/UOJ_1387.html) - [Og](https://github.com/potigol/beecrowd/blob/master/src/1300/1387.poti)
Expand Down Expand Up @@ -277,7 +278,6 @@
- [ ] [1327](https://www.beecrowd.com.br/repository/UOJ_1327.html) - Drop Out
- [ ] [1331](https://www.beecrowd.com.br/repository/UOJ_1331.html) - Blocos
- [ ] [1333](https://www.beecrowd.com.br/repository/UOJ_1333.html) - Os Doces de Candy
- [ ] [1337](https://www.beecrowd.com.br/repository/UOJ_1337.html) - Poker do Rei
- [ ] [1339](https://www.beecrowd.com.br/repository/UOJ_1339.html) - O Cubo Mágico do Avô
- [ ] [1342](https://www.beecrowd.com.br/repository/UOJ_1342.html) - Dado
- [ ] [1343](https://www.beecrowd.com.br/repository/UOJ_1343.html) - Runner Pawns
Expand Down
4 changes: 2 additions & 2 deletions competicoes/maratona/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maratona de Programação (71 / 428)
# Maratona de Programação (72 / 428)


## 2023
Expand Down Expand Up @@ -387,7 +387,7 @@
- [ ] [1334](https://www.beecrowd.com.br/repository/UOJ_1334.html) - Poluição Elétrica *Grafos*
- [ ] [1335](https://www.beecrowd.com.br/repository/UOJ_1335.html) - Recuperação de Arquivos *Strings*
- [ ] [1336](https://www.beecrowd.com.br/repository/UOJ_1336.html) - Cerca do Jardim *Geometria Computacional*
- [ ] [1337](https://www.beecrowd.com.br/repository/UOJ_1337.html) - Poker do Rei *Ad-Hoc*
- [x] [1337](https://www.beecrowd.com.br/repository/UOJ_1337.html) - [Poker do Rei](https://github.com/potigol/beecrowd/blob/master/src/1300/1337.poti) *Ad-Hoc*
- [ ] [1356](https://www.beecrowd.com.br/repository/UOJ_1356.html) - Júpiter Ataca! *Estruturas e Bibliotecas*
- [ ] [1357](https://www.beecrowd.com.br/repository/UOJ_1357.html) - Em Braille *Ad-Hoc*
- [ ] [1419](https://www.beecrowd.com.br/repository/UOJ_1419.html) - Bakugan *Ad-Hoc*
Expand Down
4 changes: 2 additions & 2 deletions competicoes/maratona/adhoc.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ad-Hoc (20 / 128)
# Ad-Hoc (21 / 128)



Expand All @@ -11,6 +11,7 @@
- [x] [1285](https://www.beecrowd.com.br/repository/UOJ_1285.html) - [Dígitos Diferentes](https://github.com/potigol/beecrowd/blob/master/src/1200/1285.poti)
- [x] [1300](https://www.beecrowd.com.br/repository/UOJ_1300.html) - [Horas e Minutos](https://github.com/potigol/beecrowd/blob/master/src/1300/1300.poti)
- [x] [1318](https://www.beecrowd.com.br/repository/UOJ_1318.html) - [Bilhetes Falsos](https://github.com/potigol/beecrowd/blob/master/src/1300/1318.poti)
- [x] [1337](https://www.beecrowd.com.br/repository/UOJ_1337.html) - [Poker do Rei](https://github.com/potigol/beecrowd/blob/master/src/1300/1337.poti)
- [x] [1379](https://www.beecrowd.com.br/repository/UOJ_1379.html) - [Problema com Mediana e Média](https://github.com/potigol/beecrowd/blob/master/src/1300/1379.poti)
- [x] [1387](https://www.beecrowd.com.br/repository/UOJ_1387.html) - [Og](https://github.com/potigol/beecrowd/blob/master/src/1300/1387.poti)
- [x] [1410](https://www.beecrowd.com.br/repository/UOJ_1410.html) - [Ele Está Impedido!](https://github.com/potigol/beecrowd/blob/master/src/1400/1410.poti)
Expand All @@ -33,7 +34,6 @@
- [ ] [1320](https://www.beecrowd.com.br/repository/UOJ_1320.html) - Metrô Engenhoso
- [ ] [1321](https://www.beecrowd.com.br/repository/UOJ_1321.html) - Jollo
- [ ] [1333](https://www.beecrowd.com.br/repository/UOJ_1333.html) - Os Doces de Candy
- [ ] [1337](https://www.beecrowd.com.br/repository/UOJ_1337.html) - Poker do Rei
- [ ] [1339](https://www.beecrowd.com.br/repository/UOJ_1339.html) - O Cubo Mágico do Avô
- [ ] [1342](https://www.beecrowd.com.br/repository/UOJ_1342.html) - Dado
- [ ] [1343](https://www.beecrowd.com.br/repository/UOJ_1343.html) - Runner Pawns
Expand Down
16 changes: 16 additions & 0 deletions src/1300/1337.poti
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var king := leia_inteiros(" ").ordene
enquanto king[1] > 0 faca
a, b, c = king[1], king[2], king[3]

resposta = se a == 13 entao "*"
senaose a == c entao "{a+1} {a+1} {a+1}"
senaose a < b e b < c entao "1 1 2"
senaose b < c e c == 13 entao "1 {a+1} {a+1}"
senaose b < c entao "{a} {a} {c+1}"
senaose a == 12 entao "1 1 1"
senaose a + 1 < b entao "{a+1} {b} {c}"
senao "{b} {b} {a+2}"
fim
escreva resposta
king := leia_inteiros(" ").ordene
fim
4 changes: 2 additions & 2 deletions src/1300/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Problemas 1300 (17%)
# Problemas 1300 (18%)

- [x] [1300](https://www.beecrowd.com.br/repository/UOJ_1300.html) - [Horas e Minutos](https://github.com/potigol/beecrowd/blob/master/src/1300/1300.poti) *Ad-Hoc*
- [ ] [1301](https://www.beecrowd.com.br/repository/UOJ_1301.html) - Produto do Intervalo *Estruturas e Bibliotecas*
Expand Down Expand Up @@ -37,7 +37,7 @@
- [ ] [1334](https://www.beecrowd.com.br/repository/UOJ_1334.html) - Poluição Elétrica *Grafos*
- [ ] [1335](https://www.beecrowd.com.br/repository/UOJ_1335.html) - Recuperação de Arquivos *Strings*
- [ ] [1336](https://www.beecrowd.com.br/repository/UOJ_1336.html) - Cerca do Jardim *Geometria Computacional*
- [ ] [1337](https://www.beecrowd.com.br/repository/UOJ_1337.html) - Poker do Rei *Ad-Hoc*
- [x] [1337](https://www.beecrowd.com.br/repository/UOJ_1337.html) - [Poker do Rei](https://github.com/potigol/beecrowd/blob/master/src/1300/1337.poti) *Ad-Hoc*
- [ ] [1338](https://www.beecrowd.com.br/repository/UOJ_1338.html) - It-Miha *Matemática*
- [ ] [1339](https://www.beecrowd.com.br/repository/UOJ_1339.html) - O Cubo Mágico do Avô *Ad-Hoc*
- [x] [1340](https://www.beecrowd.com.br/repository/UOJ_1340.html) - [Eu Posso Adivinhar a Estrutura de Dados!](https://github.com/potigol/beecrowd/blob/master/src/1300/1340.poti) *Estruturas e Bibliotecas*
Expand Down

0 comments on commit 76608cf

Please sign in to comment.