fix: main ac
This commit is contained in:
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Análise de Dados}
|
||||
\author{Leetcode 1223}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Análise de Dados}{1}{256}{Leetcode 1223}
|
||||
\begin{ProblemaAutor}{}{Análise de Dados}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
É o seu primeiro dia no \textbf{Departamento de Controle de Qualidade}.
|
||||
|
||||
@@ -33,6 +33,10 @@ Em seguida, são dados seis inteiros \(d_1, d_2, d_3, d_4, d_5, d_6\), cada um r
|
||||
|
||||
A saída consiste em um único inteiro representando o número total de sequências válidas de lançamentos, considerando o resultado módulo \(10^9 + 7\).
|
||||
|
||||
\section*{Observações}
|
||||
|
||||
Problema adaptado de \href{https://leetcode.com/problems/dice-roll-simulation/}{Leetcode 1223}.
|
||||
|
||||
\ExemploEntrada
|
||||
|
||||
\begin{Exemplo}
|
||||
|
||||
Binary file not shown.
@@ -7,7 +7,6 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Caching Offline}
|
||||
\author{}
|
||||
\date{}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Decodificando Mensagens}
|
||||
\author{Leetcode 91}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Decodificando Mensagens}{1}{256}{Leetcode 91}
|
||||
\begin{ProblemaAutor}{}{Decodificando Mensagens}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em determinar o número de maneiras possíveis de decodificar uma sequência numérica, onde cada número ou par de números representa uma letra do alfabeto latino.
|
||||
A correspondência segue a regra \( 1 \rightarrow A, 2 \rightarrow B, \ldots, 26 \rightarrow Z \).
|
||||
@@ -18,6 +18,8 @@ A segunda linha contém uma sequência de digitos de \( s \) de comprimento \( n
|
||||
|
||||
A saída deve conter um único inteiro, representando o número total de maneiras possíveis de decodificar a sequência numérica \( s \) de acordo com o mapeamento \( 1 \rightarrow A, 2 \rightarrow B, \ldots, 26 \rightarrow Z \).
|
||||
|
||||
Como este número pode ser extremamente grande, sua resposta deve ser calculada e impressa \textbf{módulo \(10^9 + 7\)}.
|
||||
|
||||
\ExemploEntrada
|
||||
|
||||
\begin{Exemplo}
|
||||
@@ -35,5 +37,9 @@ A saída deve conter um único inteiro, representando o número total de maneira
|
||||
|
||||
Para a sequência \( s = "12" \), existem duas decodificações possíveis: "AB" (1, 2) e "L" (12).
|
||||
Para a sequência \( s = "226" \), há três decodificações possíveis: "BZ" (2, 26), "VF" (22, 6) e "BBF" (2, 2, 6).
|
||||
Para a sequência \( s = "06" \), não há nenhuma forma válida de decodificação.\end{ProblemaAutor}
|
||||
Para a sequência \( s = "06" \), não há nenhuma forma válida de decodificação.
|
||||
|
||||
\section*{Observações}
|
||||
|
||||
Problema adaptado de \href{https://leetcode.com/problems/decode-ways/}{Leetcode 91}.\end{ProblemaAutor}
|
||||
\end{document}
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Deletar e Ganhar}
|
||||
\author{Leetcode 740}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Deletar e Ganhar}{1}{256}{Leetcode 740}
|
||||
\begin{ProblemaAutor}{}{Deletar e Ganhar}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em determinar a pontuação máxima que pode ser obtida ao realizar uma série de operações sobre uma sequência de números inteiros.
|
||||
Em cada operação, é possível escolher um número \( x \) da sequência, somar \( x \) pontos ao total e, em seguida, remover \textbf{todos} os elementos iguais a \( x - 1 \) e \( x + 1 \) da sequência.
|
||||
@@ -38,5 +38,8 @@ Para o primeiro caso de teste: \( (3, 4, 5) \), a melhor escolha é remover \(
|
||||
Para o segundo caso de teste: \( (2, 2, 3, 3, 3, 4) \), a melhor estratégia é escolher o número \( 3 \), que concede \( 3 \times 3 = 9 \) pontos, removendo todos os \( 2 \) e \( 4 \); o total máximo é \( 9 \).
|
||||
|
||||
Para o terceiro caso de teste: \( (1, 2, 3, 4, 5) \), a estratégia ótima é escolher \( 1 \), \( 3 \) e \( 5 \), obtendo \( 1 + 3 + 5 = 9 \) pontos no total.
|
||||
\end{ProblemaAutor}
|
||||
|
||||
\section*{Observações}
|
||||
|
||||
Problema adaptado de \href{https://leetcode.com/problems/delete-and-earn/description/}{Leetcode 740}.\end{ProblemaAutor}
|
||||
\end{document}
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Distância de Edição}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Distância de Edição}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Distância de Edição}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em determinar o \textbf{menor número de operações} necessárias para transformar uma string em outra.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Estouro}
|
||||
\author{Leetcode 312}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Estouro}{1}{256}{Leetcode 312}
|
||||
\begin{ProblemaAutor}{}{Estouro}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
No laboratório de experimentos caóticos da \textbf{Fábrica de Balões Numéricos}, um cientista excêntrico te entrega uma fileira de balões, cada um pintado com um número inteiro positivo.
|
||||
|
||||
@@ -46,5 +46,9 @@ $3 \times 1 \times 5 + 3 \times 5 \times 8 + 1 \times 3 \times 8 + 1 \times 8 \t
|
||||
Portanto, o total máximo de energia é $167$.
|
||||
|
||||
No segundo exemplo, independentemente da ordem escolhida, a energia total liberada é
|
||||
$1 \times 1 \times 5 + 1 \times 5 \times 1 = 10$.\end{ProblemaAutor}
|
||||
$1 \times 1 \times 5 + 1 \times 5 \times 1 = 10$.
|
||||
|
||||
\section*{Observações}
|
||||
|
||||
Problema adaptado de \href{https://leetcode.com/problems/burst-balloons/description/}{Leetcode 312}.\end{ProblemaAutor}
|
||||
\end{document}
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: O problema das Flores}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{O problema das Flores}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{O problema das Flores}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O Jardineiro Bino é conhecido por seus canteiros de flores meticulosamente planejados. Este ano, ele decidiu criar um canteiro linear de comprimento \(n\). Para cada uma das \(n\) posições no canteiro, Bino plantará exatamente uma flor, que pode ser ou vermelha (V) ou branca (B).
|
||||
|
||||
@@ -13,7 +13,7 @@ Bino está planejando o jardim e quer saber quantas opções de design ele realm
|
||||
|
||||
\Entrada
|
||||
|
||||
A entrada contém dois inteiros separados por espaço, \(n\) e \(m\), onde \(n\) (\(1 \leq n \leq 10\,000\)) é o comprimento da sequência de flores e \(m\) (\(1 \leq m \leq 1\,000\)) é o número máximo permitido de flores iguais consecutivas.
|
||||
A entrada contém dois inteiros separados por espaço, \(n\) e \(m\), onde \(n\) (\(1 \leq n \leq 1\,000\)) é o comprimento da sequência de flores e \(m\) (\(1 \leq m \leq 1\,000\)) é o número máximo permitido de flores iguais consecutivas.
|
||||
|
||||
\Saida
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,23 @@
|
||||
\documentclass{maratona}
|
||||
\usepackage[boxed,algoruled,linesnumbered,vlined,longend]{algorithm2e}
|
||||
\SetKwFor{For}{for $($}{$)$}{}
|
||||
\SetKwFor{ForAll}{for all $($}{$)$}{}
|
||||
\SetKwFor{If}{if $($}{$)$}{}
|
||||
\SetKwFor{ElseIf}{else if $($}{$)$}{}
|
||||
\newcommand{\Call}[2]{\textsc{#1}(#2)}
|
||||
\SetFuncSty{textsc}
|
||||
\DontPrintSemicolon
|
||||
|
||||
\newenvironment{algoritmo}[1][htbp]
|
||||
{
|
||||
\begingroup
|
||||
\renewcommand{\algorithmcfname}{Algoritmo}
|
||||
\begin{algorithm}[#1]
|
||||
}
|
||||
{
|
||||
\end{algorithm}
|
||||
\endgroup
|
||||
}
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Inclusão de Subintervalos}{1}{256}{}
|
||||
|
||||
@@ -22,6 +40,7 @@ As próximas \( n \) linhas contêm, cada uma, dois inteiros \( l_i \) e \( r_i
|
||||
Para cada caso de teste, imprima um único inteiro representando o tamanho do menor conjunto \( S' \subseteq S \) que cobre todos os intervalos de \( S \).
|
||||
|
||||
\ExemploEntrada
|
||||
|
||||
\begin{Exemplo}
|
||||
\texttt{3} & \texttt{3}\\
|
||||
\texttt{1~2} & \\
|
||||
|
||||
@@ -1 +1 @@
|
||||
3994
|
||||
3999
|
||||
|
||||
@@ -1 +1 @@
|
||||
2173
|
||||
2174
|
||||
|
||||
@@ -1 +1 @@
|
||||
12766
|
||||
12937
|
||||
|
||||
@@ -1 +1 @@
|
||||
7847
|
||||
7881
|
||||
|
||||
@@ -1 +1 @@
|
||||
10267
|
||||
10345
|
||||
|
||||
@@ -1 +1 @@
|
||||
28531
|
||||
36399
|
||||
|
||||
@@ -1 +1 @@
|
||||
27668
|
||||
32619
|
||||
|
||||
@@ -1 +1 @@
|
||||
27428
|
||||
32151
|
||||
|
||||
@@ -1 +1 @@
|
||||
27749
|
||||
33228
|
||||
|
||||
@@ -1 +1 @@
|
||||
4267
|
||||
4270
|
||||
|
||||
@@ -1 +1 @@
|
||||
28687
|
||||
38406
|
||||
|
||||
@@ -1 +1 @@
|
||||
28688
|
||||
37218
|
||||
|
||||
@@ -1 +1 @@
|
||||
28408
|
||||
35870
|
||||
|
||||
@@ -1 +1 @@
|
||||
13893
|
||||
14128
|
||||
|
||||
@@ -1 +1 @@
|
||||
28305
|
||||
36385
|
||||
|
||||
@@ -1 +1 @@
|
||||
2
|
||||
3
|
||||
|
||||
@@ -1 +1 @@
|
||||
23348
|
||||
25202
|
||||
|
||||
@@ -1 +1 @@
|
||||
27297
|
||||
32097
|
||||
|
||||
@@ -1 +1 @@
|
||||
25660
|
||||
28767
|
||||
|
||||
@@ -1 +1 @@
|
||||
20444
|
||||
21477
|
||||
|
||||
@@ -1 +1 @@
|
||||
28224
|
||||
34785
|
||||
|
||||
@@ -1 +1 @@
|
||||
3
|
||||
4
|
||||
|
||||
@@ -1 +1 @@
|
||||
3266
|
||||
3268
|
||||
|
||||
@@ -1 +1 @@
|
||||
3378
|
||||
3381
|
||||
|
||||
@@ -1 +1 @@
|
||||
2509
|
||||
2511
|
||||
|
||||
@@ -1 +1 @@
|
||||
4084
|
||||
4092
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
},
|
||||
"solutions": {
|
||||
"main-ac": "ac.cpp",
|
||||
"alternative-ac": [],
|
||||
"wrong-answer": ["WA.cpp"],
|
||||
"alternative-ac": ["caio.cpp"],
|
||||
"wrong-answer": ["wa.cpp"],
|
||||
"time-limit": ["TLE.cpp"],
|
||||
"time-limit-or-ac": [],
|
||||
"time-limit-or-memory-limit": [],
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
bool comp(pair<int, int> &a, pair<int, int> &b) {
|
||||
if (a.first != b.first) {
|
||||
return a.first < b.first;
|
||||
}
|
||||
return a.second > b.second;
|
||||
}
|
||||
|
||||
|
||||
int main(){
|
||||
int n; cin >> n;
|
||||
|
||||
vector<pair<int, int>> intervals(n);
|
||||
for (int i = 0; i < n; i++) {
|
||||
cin >> intervals[i].first;
|
||||
cin >> intervals[i].second;
|
||||
}
|
||||
|
||||
sort(intervals.begin(), intervals.end(), comp);
|
||||
|
||||
int lastCovered = intervals[0].second;
|
||||
int count = 1;
|
||||
for (int i = 1; i < n; i++) {
|
||||
if (lastCovered < intervals[i].second) {
|
||||
lastCovered = intervals[i].second;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
cout << count << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -9,9 +9,6 @@ bool comp(pair<int, int> &a, pair<int, int> &b) {
|
||||
return a.second > b.second;
|
||||
}
|
||||
|
||||
bool intersecting(pair<int, int> &a, pair<int, int> &b) {
|
||||
return a.second >= b.first;
|
||||
}
|
||||
|
||||
int main(){
|
||||
int n; cin >> n;
|
||||
@@ -24,40 +21,13 @@ int main(){
|
||||
|
||||
sort(intervals.begin(), intervals.end(), comp);
|
||||
|
||||
// first sort by start time, if two intervals start at the same time the one with the highest end time comes first
|
||||
// always include the first interval
|
||||
// keep track of the last included interval so far
|
||||
// while there are intervals intersecting with the last included interval take the one with the highest ending value
|
||||
//
|
||||
// if there is some intersecting interval check if its end time is greater than the last included interval end time, if so include it and update count, else repeat process from the last intersecting interval
|
||||
// if no intervals intersect with the last included interval then just process the next interval in order
|
||||
|
||||
// in both cases update the count by 1
|
||||
|
||||
int curInterval = 1, lastIncludedInterval = 0, count = 1;
|
||||
while (curInterval < n) { // curInterval holds the first interval thaat was not processed yet
|
||||
int bestIntersectingInterval = lastIncludedInterval, j = curInterval;
|
||||
while (j < n && intersecting(intervals[lastIncludedInterval], intervals[j])) {
|
||||
int bestEndTime = intervals[bestIntersectingInterval].second;
|
||||
int endTime = intervals[j].second;
|
||||
if (endTime > bestEndTime) {
|
||||
bestIntersectingInterval = j;
|
||||
}
|
||||
j++;
|
||||
}
|
||||
|
||||
if (bestIntersectingInterval != lastIncludedInterval) {
|
||||
lastIncludedInterval = bestIntersectingInterval;
|
||||
count++;
|
||||
} else {
|
||||
if (j == n) break; // this interval alredy covers every remaining interval
|
||||
|
||||
lastIncludedInterval = j;
|
||||
int lastCovered = intervals[0].second;
|
||||
int count = 1;
|
||||
for (int i = 1; i < n; i++) {
|
||||
if (lastCovered < intervals[i].second) {
|
||||
lastCovered = intervals[i].second;
|
||||
count++;
|
||||
}
|
||||
|
||||
if (curInterval == j) curInterval++;
|
||||
else curInterval = j;
|
||||
}
|
||||
|
||||
cout << count << endl;
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
\usepackage[boxed,algoruled,linesnumbered,vlined,longend]{algorithm2e}
|
||||
\SetKwFor{For}{for $($}{$)$}{}
|
||||
\SetKwFor{ForAll}{for all $($}{$)$}{}
|
||||
\SetKwFor{If}{if $($}{$)$}{}
|
||||
\SetKwFor{ElseIf}{else if $($}{$)$}{}
|
||||
\newcommand{\Call}[2]{\textsc{#1}(#2)}
|
||||
\SetFuncSty{textsc}
|
||||
\DontPrintSemicolon
|
||||
|
||||
\newenvironment{algoritmo}[1][htbp]
|
||||
{
|
||||
\begingroup
|
||||
\renewcommand{\algorithmcfname}{Algoritmo}
|
||||
\begin{algorithm}[#1]
|
||||
}
|
||||
{
|
||||
\end{algorithm}
|
||||
\endgroup
|
||||
}
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Knapsack Problem}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Knapsack Problem}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Knapsack Problem}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em determinar o maior valor total que pode ser obtido ao selecionar um subconjunto de itens para colocar em uma mochila com capacidade limitada.
|
||||
Cada item possui um peso e um valor associados, e a mochila só pode suportar um peso total máximo.
|
||||
@@ -11,7 +11,7 @@ Cada item pode ser escolhido no máximo uma vez.
|
||||
\Entrada
|
||||
|
||||
A entrada é composta por \( N + 1 \) linhas.
|
||||
Na primeira linha, há dois inteiros \( N \) e \( W \) (\( 1 \leq N \leq 100 \), \( 1 \leq W \leq 10^5 \)), representando respectivamente o número de itens e a capacidade máxima da mochila.
|
||||
Na primeira linha, há dois inteiros \( N \) e \( W \) (\( 1 \leq N \leq 100 \), \( 1 \leq W \leq 10^4 \)), representando respectivamente o número de itens e a capacidade máxima da mochila.
|
||||
Cada uma das próximas \( N \) linhas contém dois inteiros \( w_i \) e \( v_i \) (\( 1 \leq w_i \leq W \), \( 1 \leq v_i \leq 10^9 \)), representando respectivamente o peso e o valor do \( i \)-ésimo item.
|
||||
|
||||
\Saida
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Maior Subsequência Comum}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Maior Subsequência Comum}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Maior Subsequência Comum}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O objetivo deste problema é determinar o comprimento da \textbf{maior subsequência comum} (Longest Common Subsequence - LCS) entre duas strings fornecidas.
|
||||
Uma \textit{subsequência} é uma sequência que pode ser obtida a partir de uma string original removendo-se zero ou mais caracteres, sem alterar a ordem relativa dos caracteres restantes.
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Maior subsequência Crescente II}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Maior subsequência Crescente II}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Maior subsequência Crescente II}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em determinar a maior subsequência crescente de uma sequência de números inteiros.
|
||||
Uma subsequência é formada ao remover zero ou mais elementos da sequência original, sem alterar a ordem relativa dos elementos restantes.
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Maior subsequência Crescente}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Maior subsequência Crescente}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Maior subsequência Crescente}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em determinar a maior subsequência crescente de uma sequência de números inteiros.
|
||||
Uma subsequência é formada ao remover zero ou mais elementos da sequência original, sem alterar a ordem relativa dos elementos restantes.
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Maior Subsequência Palindrômica}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Maior Subsequência Palindrômica}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Maior Subsequência Palindrômica}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em determinar a maior subsequência palindrômica de uma sequência de caracteres.
|
||||
Uma subsequência é formada ao remover zero ou mais elementos da sequência original, sem alterar a ordem relativa dos elementos restantes.
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Maximum Subarray Sum}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Maximum Subarray Sum}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Maximum Subarray Sum}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em determinar a maior soma possível de uma subsequência contínua de uma sequência de números inteiros.
|
||||
Uma subsequência contínua é formada por um ou mais elementos consecutivos da sequência original, sem interrupções.
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Caminho de Menor Soma}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Caminho de Menor Soma}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Caminho de Menor Soma}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
O problema consiste em encontrar o menor custo possível para percorrer uma grade de inteiros positivos.
|
||||
A grade possui \( n \) linhas e \( m \) colunas, e cada célula contém um valor inteiro positivo que representa o custo de passar por ela.
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Barras e Barras}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Barras e Barras}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Barras e Barras}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
Dado um pedaço de barra de aço de comprimento \( n \) polegadas, deseja-se cortar essa barra em partes menores de forma a maximizar o lucro total obtido.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Prateleira Dourada}
|
||||
\author{}
|
||||
\author{Arthur Andrade D'Olival}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
\documentclass{maratona}
|
||||
|
||||
\begin{document}
|
||||
\begin{ProblemaAutor}{}{Prateleira Dourada}{1}{256}{}
|
||||
\begin{ProblemaAutor}{}{Prateleira Dourada}{1}{256}{Arthur Andrade D'Olival}
|
||||
|
||||
Você foi recentemente contratado como arquivista júnior na Biblioteca Central, lar de manuscritos inestimáveis. Sua primeira grande tarefa é organizar a famosa \textbf{Prateleira Dourada}, um espaço de exposição reservado apenas para as obras mais raras.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -7,7 +7,6 @@
|
||||
\usepackage{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\input{statement/preamble.tex}
|
||||
|
||||
\title{ Tutorial: Unconventional pairs}
|
||||
\author{Codeforces 1054 (Div. 3)}
|
||||
\date{}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user