equal
deleted
inserted
replaced
51 \end{lstlisting}%$ |
51 \end{lstlisting}%$ |
52 |
52 |
53 \subsection*{Hints} |
53 \subsection*{Hints} |
54 |
54 |
55 \noindent |
55 \noindent |
56 \textbf{For Preliminary Part:} useful math operators: \texttt{\%} for modulo, \texttt{\&} for bit-wise and; useful |
56 \textbf{For the Preliminary Part:} useful math operators: \texttt{\%} for modulo, \texttt{\&} for bit-wise and; useful |
57 functions: \mbox{\texttt{(1\,to\,10)}} for ranges, \texttt{.toInt}, |
57 functions: \mbox{\texttt{(1\,to\,10)}} for ranges, \texttt{.toInt}, |
58 \texttt{.toList} for conversions, you can use \texttt{List(...).max} for the |
58 \texttt{.toList} for conversions, you can use \texttt{List(...).max} for the |
59 maximum of a list, \texttt{List(...).indexOf(...)} for the first index of |
59 maximum of a list, \texttt{List(...).indexOf(...)} for the first index of |
60 a value in a list.\bigskip |
60 a value in a list.\bigskip |
61 |
61 |