\documentclass[]{article} \usepackage[T1]{fontenc} \usepackage{polski} \usepackage[utf8]{inputenc} \usepackage[margin=1.25in]{geometry} \usepackage{alltt} \usepackage{titling} \usepackage{pdfpages} \usepackage{float} \usepackage{amsmath} \usepackage{booktabs} \usepackage{tabularx} \usepackage{amstext} \usepackage{tikz} \usepackage{xspace} \usepackage{enumerate} \usepackage{lmodern} \usepackage{amsfonts} \usepackage{mathtools} \DeclarePairedDelimiter\ceil{\lceil}{\rceil} \DeclarePairedDelimiter\floor{\lfloor}{\rfloor} \usetikzlibrary{decorations.pathmorphing, arrows.meta} \tikzstyle{problem} = [draw,outer sep=0,inner sep=5,minimum size=10] \tikzstyle{solution} = [outer sep=0,inner sep=1,minimum size=10] \tikzstyle{alpha} = [decorate, decoration={snake, amplitude=.5mm}, help lines] \tikzstyle{max edge} = [very thick, blue] % opening \title{PAA - Kolokwia, rozwiązania} \author{Kacper Donat} \newcounter{task}[section] \newcounter{subtask}[task] \newcounter{tip}[task] \renewcommand{\thesubtask}{\alph{subtask}} \newcommand{\NP}{\texttt{NP}\xspace} \newcommand{\NPC}{\texttt{NPC}\xspace} \newcommand{\NPI}{\texttt{NPI}\xspace} \renewcommand{\P}{\texttt{P}\xspace} \newcommand{\problem}[1]{\texttt{#1}} \newcommand{\task}{\vspace{.25cm}\refstepcounter{task} \noindent\par\texttt{Zadanie \thesection.\thetask.\hspace{.1cm}}} \newcommand{\subtask}[1][]{\refstepcounter{subtask}\noindent\par \hspace{.5cm}\thesubtask#1)\ } \newcommand{\solution}{\par\vspace{.5cm}\noindent\textbf{Proponowane rozwiązanie:}\par} \newcommand{\tip}[1]{\par\noindent\textit{Wskazówka:} #1\par} \newcommand{\ctip}[1]{\refstepcounter{tip}\par\noindent\textit{Wskazówka \#\thetip:} #1\par} \begin{document} \input{./2013.01.26.tex} \end{document}