Skip to content

Commit

Permalink
Problemas: 1166 e 1309
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlucena committed May 20, 2021
1 parent e35fc7b commit 9b22897
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
4 changes: 2 additions & 2 deletions categorias/matemtica.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Matemática (52 / 262)
# Matemática (53 / 262)



Expand All @@ -15,6 +15,7 @@
- [x] [1221](https://www.urionlinejudge.com.br/judge/pt/problems/view/1221) - [Primo Rápido](https://github.com/potigol/uoj-potigol/blob/master/src/1200/1221.poti)
- [x] [1240](https://www.urionlinejudge.com.br/judge/pt/problems/view/1240) - [Encaixa ou Não I](https://github.com/potigol/uoj-potigol/blob/master/src/1200/1240.poti)
- [x] [1247](https://www.urionlinejudge.com.br/judge/pt/problems/view/1247) - [Guarda Costeira](https://github.com/potigol/uoj-potigol/blob/master/src/1200/1247.poti)
- [x] [1309](https://www.urionlinejudge.com.br/judge/pt/problems/view/1309) - [Formatação Monetária](https://github.com/potigol/uoj-potigol/blob/master/src/1300/1309.poti)
- [x] [1323](https://www.urionlinejudge.com.br/judge/pt/problems/view/1323) - [Feynman](https://github.com/potigol/uoj-potigol/blob/master/src/1300/1323.poti)
- [x] [1393](https://www.urionlinejudge.com.br/judge/pt/problems/view/1393) - [Lajotas Hexagonais](https://github.com/potigol/uoj-potigol/blob/master/src/1300/1393.poti)
- [x] [1429](https://www.urionlinejudge.com.br/judge/pt/problems/view/1429) - [Fatorial de Novo!](https://github.com/potigol/uoj-potigol/blob/master/src/1400/1429.poti)
Expand Down Expand Up @@ -80,7 +81,6 @@
- [ ] [1306](https://www.urionlinejudge.com.br/judge/pt/problems/view/1306) - Numerando Estradas
- [ ] [1307](https://www.urionlinejudge.com.br/judge/pt/problems/view/1307) - Tudo o que Você Precisa é Amor
- [ ] [1308](https://www.urionlinejudge.com.br/judge/pt/problems/view/1308) - Guerreiros Etruscos Nunca Jogam Xadrez
- [ ] [1309](https://www.urionlinejudge.com.br/judge/pt/problems/view/1309) - Formatação Monetária
- [ ] [1324](https://www.urionlinejudge.com.br/judge/pt/problems/view/1324) - Bóson de Higgs
- [ ] [1338](https://www.urionlinejudge.com.br/judge/pt/problems/view/1338) - It-Miha
- [ ] [1346](https://www.urionlinejudge.com.br/judge/pt/problems/view/1346) - Brincadeira de Criança
Expand Down
4 changes: 2 additions & 2 deletions categorias/paradigmas.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Paradigmas (2 / 212)
# Paradigmas (3 / 212)



## Problemas resolvidos

- [x] [1029](https://www.urionlinejudge.com.br/judge/pt/problems/view/1029) - [Fibonacci, Quantas Chamadas?](https://github.com/potigol/uoj-potigol/blob/master/src/1000/1029.poti)
- [x] [1084](https://www.urionlinejudge.com.br/judge/pt/problems/view/1084) - [Apagando e Ganhando](https://github.com/potigol/uoj-potigol/blob/master/src/1000/1084.poti)
- [x] [1166](https://www.urionlinejudge.com.br/judge/pt/problems/view/1166) - [Torre de Hanoi, Novamente!](https://github.com/potigol/uoj-potigol/blob/master/src/1100/1166.poti)

## Problemas não resolvidos

Expand All @@ -16,7 +17,6 @@
- [ ] [1055](https://www.urionlinejudge.com.br/judge/pt/problems/view/1055) - Soma Permutada Elegante
- [ ] [1058](https://www.urionlinejudge.com.br/judge/pt/problems/view/1058) - Zonas de Ataque Independentes
- [ ] [1106](https://www.urionlinejudge.com.br/judge/pt/problems/view/1106) - Dragster
- [ ] [1166](https://www.urionlinejudge.com.br/judge/pt/problems/view/1166) - Torre de Hanoi, Novamente!
- [ ] [1203](https://www.urionlinejudge.com.br/judge/pt/problems/view/1203) - Pontes de São Petersburgo
- [ ] [1210](https://www.urionlinejudge.com.br/judge/pt/problems/view/1210) - Produção Ótima de Ótima Vodka
- [ ] [1224](https://www.urionlinejudge.com.br/judge/pt/problems/view/1224) - Cartões
Expand Down
6 changes: 6 additions & 0 deletions src/1100/1166.poti
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bolas = para i de 1 ate 50 gere (i + 1) * (i + 1) div 2 - 1 fim
t = leia_inteiro
para i de 1 ate t faca
n = leia_inteiro
escreva bolas[n]
fim
4 changes: 2 additions & 2 deletions src/1100/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Problemas 1100 (63%)
# Problemas 1100 (64%)

- [ ] [1100](https://www.urionlinejudge.com.br/judge/pt/problems/view/1100) - Movimentos do Cavalo *Grafos*
- [x] [1101](https://www.urionlinejudge.com.br/judge/pt/problems/view/1101) - [Sequência de Números e Soma](https://github.com/potigol/uoj-potigol/blob/master/src/1100/1101.poti) *Iniciante*
Expand Down Expand Up @@ -66,7 +66,7 @@
- [ ] [1163](https://www.urionlinejudge.com.br/judge/pt/problems/view/1163) - Angry Ducks *Matemática*
- [x] [1164](https://www.urionlinejudge.com.br/judge/pt/problems/view/1164) - [Número Perfeito](https://github.com/potigol/uoj-potigol/blob/master/src/1100/1164.poti) *Iniciante*
- [x] [1165](https://www.urionlinejudge.com.br/judge/pt/problems/view/1165) - [Número Primo](https://github.com/potigol/uoj-potigol/blob/master/src/1100/1165.poti) *Iniciante*
- [ ] [1166](https://www.urionlinejudge.com.br/judge/pt/problems/view/1166) - Torre de Hanoi, Novamente! *Paradigmas*
- [x] [1166](https://www.urionlinejudge.com.br/judge/pt/problems/view/1166) - [Torre de Hanoi, Novamente!](https://github.com/potigol/uoj-potigol/blob/master/src/1100/1166.poti) *Paradigmas*
- [ ] [1167](https://www.urionlinejudge.com.br/judge/pt/problems/view/1167) - Acampamento de Férias *Estruturas e Bibliotecas*
- [x] [1168](https://www.urionlinejudge.com.br/judge/pt/problems/view/1168) - [LED](https://github.com/potigol/uoj-potigol/blob/master/src/1100/1168.poti) *Strings*
- [x] [1169](https://www.urionlinejudge.com.br/judge/pt/problems/view/1169) - [Trigo no Tabuleiro](https://github.com/potigol/uoj-potigol/blob/master/src/1100/1169.poti) *Matemática*
Expand Down
10 changes: 10 additions & 0 deletions src/1300/1309.poti
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var dolares := leia_inteiro
enquanto nao eof faca
centavos = leia_inteiro
s0 = dolares.texto
s1 = se s0.tamanho > 3 entao s0.insira(s0.tamanho - 2 , ',') senao s0 fim
s2 = se s1.tamanho > 7 entao s1.insira(s1.tamanho - 6 , ',') senao s1 fim
s3 = se s2.tamanho > 11 entao s2.insira(s2.tamanho - 10, ',') senao s2 fim
escreva "${s3}.{centavos formato "%02d"}"
dolares := leia_inteiro
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 (10%)
# Problemas 1300 (11%)

- [x] [1300](https://www.urionlinejudge.com.br/judge/pt/problems/view/1300) - [Horas e Minutos](https://github.com/potigol/uoj-potigol/blob/master/src/1300/1300.poti) *Ad-Hoc*
- [ ] [1301](https://www.urionlinejudge.com.br/judge/pt/problems/view/1301) - Produto do Intervalo *Estruturas e Bibliotecas*
Expand All @@ -9,7 +9,7 @@
- [ ] [1306](https://www.urionlinejudge.com.br/judge/pt/problems/view/1306) - Numerando Estradas *Matemática*
- [ ] [1307](https://www.urionlinejudge.com.br/judge/pt/problems/view/1307) - Tudo o que Você Precisa é Amor *Matemática*
- [ ] [1308](https://www.urionlinejudge.com.br/judge/pt/problems/view/1308) - Guerreiros Etruscos Nunca Jogam Xadrez *Matemática*
- [ ] [1309](https://www.urionlinejudge.com.br/judge/pt/problems/view/1309) - Formatação Monetária *Matemática*
- [x] [1309](https://www.urionlinejudge.com.br/judge/pt/problems/view/1309) - [Formatação Monetária](https://github.com/potigol/uoj-potigol/blob/master/src/1300/1309.poti) *Matemática*
- [ ] [1310](https://www.urionlinejudge.com.br/judge/pt/problems/view/1310) - Lucro *Paradigmas*
- [ ] [1311](https://www.urionlinejudge.com.br/judge/pt/problems/view/1311) - Companheiros de Exército *Ad-Hoc*
- [ ] [1312](https://www.urionlinejudge.com.br/judge/pt/problems/view/1312) - Empilhamento de Bolas *Paradigmas*
Expand Down

0 comments on commit 9b22897

Please sign in to comment.