diff --git a/content/contest/hash.sh b/content/contest/hash.sh index 21214562b..6a5982c8f 100644 --- a/content/contest/hash.sh +++ b/content/contest/hash.sh @@ -1,3 +1,3 @@ # Hashes a file, ignoring all whitespace and comments. Use for # verifying that code was correctly typed. -cpp -dD -P -fpreprocessed | tr -d '[:space:]'| md5sum |cut -c-6 +cpp-16 -dD -P -fpreprocessed | tr -d '[:space:]' | md5sum | cut -c-6 diff --git a/content/contest/template.cpp b/content/contest/template.cpp index ac5ff7189..7b9c7a629 100644 --- a/content/contest/template.cpp +++ b/content/contest/template.cpp @@ -1,12 +1,28 @@ #include using namespace std; -#define rep(i, a, b) for(int i = a; i < (b); ++i) +#define rep(i, a, b) for(long long i = (a); i < (b); ++i) #define all(x) begin(x), end(x) #define sz(x) (int)(x).size() -typedef long long ll; -typedef pair pii; -typedef vector vi; +#define UNIQUE(x) (x).erase(unique(all(x)), (x).end()) +using ll = long long; +using pii = pair; +template +using vc = vector; +using vi = vc; +using vll = vc; + +template +inline bool chmin(T1 &a, T2 b) { + if(a > b) { a = b; return true; } + return false; +} + +template +inline bool chmax(T1 &a, T2 b) { + if(a < b) { a = b; return true; } + return false; +} int main() { cin.tie(0)->sync_with_stdio(0); diff --git a/content/kactl.tex b/content/kactl.tex index a7270f236..c68f1a535 100644 --- a/content/kactl.tex +++ b/content/kactl.tex @@ -2,32 +2,32 @@ \usepackage{kactlpkg} \kactlcontentdir{content} -\university{KTH}{KTH Royal Institute of Technology}{kth} -\team{Omogen Heap}{Simon Lindholm, Johan Sannemo, MÃ¥rten Wiman} +\university{KU}{Kyoto University}{ku} +\team{Informatical\_KU\_B-flow}{Ryoma Taniguchi, Yuki Yamaguchi, Reito Horii} % \contest{ACM-ICPC World Finals 2017}{May 24, 2017} \contest{\ }{\today} % \enablecolors \begin{document} - \maketeampage + % \maketeampage % Small KACTL header on the first page: % \maketitle{``One Last Time'' Edition}{\today} \begin{multicols*}{3} - \thispagestyle{fancy} - % Table of contents, without subsections: - \setcounter{tocdepth}{0} - \tableofcontents - - \kactlchapter{contest} - \kactlchapter{math} - \kactlchapter{data-structures} - \kactlchapter{numerical} - \kactlchapter{number-theory} - \kactlchapter{combinatorial} - \kactlchapter{graph} - \kactlchapter{geometry} - \kactlchapter{strings} - \kactlchapter{various} + % Table of contents, without subsections: + \setcounter{tocdepth}{0} + \tableofcontents + \thispagestyle{fancy} + + \kactlchapter{contest} + \kactlchapter{math} + \kactlchapter{data-structures} + \kactlchapter{numerical} + \kactlchapter{number-theory} + \kactlchapter{combinatorial} + \kactlchapter{graph} + \kactlchapter{geometry} + \kactlchapter{strings} + \kactlchapter{various} \end{multicols*} \begin{multicols*}{3} diff --git a/kactl.pdf b/kactl.pdf index 8639da563..174731308 100644 Binary files a/kactl.pdf and b/kactl.pdf differ