diff --git a/README.md b/README.md index 7c78017..a20b56d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Join the chat at https://gitter.im/potigol/Potigol](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/potigol/Potigol?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Follow us](https://img.shields.io/twitter/follow/potigol.svg?style=social)](http://twitter.com/potigol) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/potigol/beecrowd) -[![Soluções](https://img.shields.io/badge/Problemas%20Resolvidos-802-blue)](https://github.com/potigol/beecrowd/commits/master) +[![Soluções](https://img.shields.io/badge/Problemas%20Resolvidos-803-blue)](https://github.com/potigol/beecrowd/commits/master) diff --git a/categorias/paradigmas.md b/categorias/paradigmas.md index 1aff58e..9dfc1da 100644 --- a/categorias/paradigmas.md +++ b/categorias/paradigmas.md @@ -1,4 +1,4 @@ -# Paradigmas (4 / 215) +# Paradigmas (5 / 215) @@ -7,6 +7,7 @@ - [x] [1029](https://www.beecrowd.com.br/repository/UOJ_1029.html) - [Fibonacci, Quantas Chamadas?](https://github.com/potigol/beecrowd/blob/master/src/1000/1029.poti) - [x] [1084](https://www.beecrowd.com.br/repository/UOJ_1084.html) - [Apagando e Ganhando](https://github.com/potigol/beecrowd/blob/master/src/1000/1084.poti) - [x] [1166](https://www.beecrowd.com.br/repository/UOJ_1166.html) - [Torre de Hanoi, Novamente!](https://github.com/potigol/beecrowd/blob/master/src/1100/1166.poti) +- [x] [1690](https://www.beecrowd.com.br/repository/UOJ_1690.html) - [Soma de Sobconjuntos](https://github.com/potigol/beecrowd/blob/master/src/1600/1690.poti) - [x] [2243](https://www.beecrowd.com.br/repository/UOJ_2243.html) - [Isósceles](https://github.com/potigol/beecrowd/blob/master/src/2200/2243.poti) ## Problemas não resolvidos @@ -96,7 +97,6 @@ - [ ] [1685](https://www.beecrowd.com.br/repository/UOJ_1685.html) - Praça de Daniel - [ ] [1687](https://www.beecrowd.com.br/repository/UOJ_1687.html) - Destrave o Celular - [ ] [1689](https://www.beecrowd.com.br/repository/UOJ_1689.html) - Radares -- [ ] [1690](https://www.beecrowd.com.br/repository/UOJ_1690.html) - Soma de Sobconjuntos - [ ] [1700](https://www.beecrowd.com.br/repository/UOJ_1700.html) - Antenas - [ ] [1707](https://www.beecrowd.com.br/repository/UOJ_1707.html) - Jogo com Números - [ ] [1720](https://www.beecrowd.com.br/repository/UOJ_1720.html) - Sonho de Mondriaan diff --git a/src/1600/1690.poti b/src/1600/1690.poti new file mode 100644 index 0000000..26938b4 --- /dev/null +++ b/src/1600/1690.poti @@ -0,0 +1,11 @@ +t = leia_inteiro +para i de 1 até t faça + n = leia_inteiro + var num := leia_textos(" ").mapeie(a => BigInt(a)).ordene.mutável + var soma, i := BigInt(1), 1 + enquanto i <= n e soma >= num[i] faça + soma := soma + num[i] + i := i + 1 + fim + escreva soma +fim diff --git a/src/1600/README.md b/src/1600/README.md index 946cecc..d34c0b1 100644 --- a/src/1600/README.md +++ b/src/1600/README.md @@ -1,4 +1,4 @@ -# Problemas 1600 (7%) +# Problemas 1600 (8%) - [ ] [1600](https://www.beecrowd.com.br/repository/UOJ_1600.html) - O Gato do Zelador do Armazém *Paradigmas* - [ ] [1601](https://www.beecrowd.com.br/repository/UOJ_1601.html) - Partição do Rebanho *Paradigmas* @@ -90,7 +90,7 @@ - [ ] [1687](https://www.beecrowd.com.br/repository/UOJ_1687.html) - Destrave o Celular *Paradigmas* - [ ] [1688](https://www.beecrowd.com.br/repository/UOJ_1688.html) - Nim Intergalático *Matemática* - [ ] [1689](https://www.beecrowd.com.br/repository/UOJ_1689.html) - Radares *Paradigmas* -- [ ] [1690](https://www.beecrowd.com.br/repository/UOJ_1690.html) - Soma de Sobconjuntos *Paradigmas* +- [x] [1690](https://www.beecrowd.com.br/repository/UOJ_1690.html) - [Soma de Sobconjuntos](https://github.com/potigol/beecrowd/blob/master/src/1600/1690.poti) *Paradigmas* - [ ] [1691](https://www.beecrowd.com.br/repository/UOJ_1691.html) - Super Circunferência *Ad-Hoc* - [ ] [1692](https://www.beecrowd.com.br/repository/UOJ_1692.html) - Curo Ataque *Grafos* - [ ] [1693](https://www.beecrowd.com.br/repository/UOJ_1693.html) - Apenas Outro Problema de Física *Geometria Computacional*