fix: main ac
This commit is contained in:
@@ -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} & \\
|
||||
|
||||
Reference in New Issue
Block a user