From e572ff134cf83353891b7a7c2a6e741b297bfaa6 Mon Sep 17 00:00:00 2001 From: Arioston Date: Sun, 6 Oct 2019 23:59:02 -0300 Subject: [PATCH] =?UTF-8?q?Solu=C3=A7=C3=A3o=20dos=20problemas=20da=20cate?= =?UTF-8?q?goria=20Iniciante=20#27=20(#36)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Solução dos problemas da categoria Iniciante #27 Problema 1541 - Construindo Casas * Solução dos problemas da categoria Iniciante #27 Problema 1789 - A Corrida de Lesmas * Solução dos problemas da categoria Iniciante #27 Problema 1478 - Matriz Quadrada II --- categorias/iniciante.md | 4 ++-- src/1401-1500/1478.poti | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 src/1401-1500/1478.poti diff --git a/categorias/iniciante.md b/categorias/iniciante.md index 3932ef5e..b4f18f0c 100644 --- a/categorias/iniciante.md +++ b/categorias/iniciante.md @@ -1,6 +1,5 @@ -# Iniciante (207 / 312) +# Iniciante (208 / 312) - - [ ] [1478](https://www.urionlinejudge.com.br/judge/pt/problems/view/1478) - Matriz Quadrada II - [ ] [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 @@ -214,6 +213,7 @@ - [x] [1189](https://www.urionlinejudge.com.br/judge/pt/problems/view/1189) - [Área Esquerda](https://github.com/potigol/URI-Potigol/blob/master/src/1101-1200/1189.poti) - [x] [1190](https://www.urionlinejudge.com.br/judge/pt/problems/view/1190) - [Área Direita](https://github.com/potigol/URI-Potigol/blob/master/src/1101-1200/1190.poti) - [x] [1435](https://www.urionlinejudge.com.br/judge/pt/problems/view/1435) - [Matriz Quadrada I](https://github.com/potigol/URI-Potigol/blob/master/src/1401-1500/1435.poti) + - [X] [1478](https://www.urionlinejudge.com.br/judge/pt/problems/view/1478) - [Matriz Quadrada II](https://github.com/potigol/URI-Potigol/blob/master/src/1401-1500/1478.poti) - [x] [1534](https://www.urionlinejudge.com.br/judge/pt/problems/view/1534) - [Matriz 123](https://github.com/potigol/URI-Potigol/blob/master/src/1501-1600/1534.poti) - [x] [1541](https://www.urionlinejudge.com.br/judge/pt/problems/view/1541) - [Construindo Casas](https://github.com/potigol/URI-Potigol/blob/master/src/1501-1600/1541.poti) - [x] [1557](https://www.urionlinejudge.com.br/judge/pt/problems/view/1557) - [Matriz Quadrada III](https://github.com/potigol/URI-Potigol/blob/master/src/1501-1600/1557.poti) diff --git a/src/1401-1500/1478.poti b/src/1401-1500/1478.poti new file mode 100644 index 00000000..d692cdc6 --- /dev/null +++ b/src/1401-1500/1478.poti @@ -0,0 +1,16 @@ +var n := leia_inteiro + +enquanto n <> 0 faça + para linha de 1 até n faça + imprima linha formato "%3d" + para c de linha - 1 até 1 passo -1 faça + imprima c formato "%4d" + fim + para c de 2 até n - linha + 1 faça + imprima c formato "%4d" + fim + escreva "" + fim + escreva "" + n := leia_inteiro +fim \ No newline at end of file