\documentclass[a4paper,12pt]{article}
\usepackage{myXsim}
\usepackage{fancybox}
\usepackage{pgfplots}
\pgfplotsset{compat = newest}
\usepgfplotslibrary{external} 
\tikzexternalize

% Title Page
\title{ DS3 \hfill }
\tribe{2nd}
\date{2021-11-22}
\duree{1h}

\DeclareExerciseCollection[step=1]{banque}
\xsimsetup{
    collect
}

\begin{document}
\maketitle

Le barème est donné à titre indicatif, il pourra être modifié.

\input{exercises.tex}
\printcollection{banque}

\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "master"
%%% End: