summaryrefslogtreecommitdiff
path: root/other
diff options
context:
space:
mode:
authorPaul Jungeblut <paul.jungeblut@gmail.com>2016-10-29 13:12:20 +0200
committerPaul Jungeblut <paul.jungeblut@gmail.com>2016-10-29 13:12:20 +0200
commit5a1fe131d72534a00817d4526b849fabdc568712 (patch)
tree9202d3d05d98344f900db3aeccb63f8daff0f542 /other
parent802eb0fa5a84023b48a7a14367a964be5739c6ba (diff)
Moving setction of code before section with text.
Diffstat (limited to 'other')
-rw-r--r--other/other.tex50
1 files changed, 25 insertions, 25 deletions
diff --git a/other/other.tex b/other/other.tex
index b0a50f9..66a65c5 100644
--- a/other/other.tex
+++ b/other/other.tex
@@ -14,6 +14,31 @@
\subsection{Bit Operations}
\lstinputlisting{other/bitOps.cpp}
+\subsection{Sonstiges}
+\begin{lstlisting}
+// Alles-Header.
+#include <bits/stdc++.h>
+
+// Setzt das deutsche Tastaturlayout.
+setxkbmap de
+
+// Schnelle Ein-/Ausgabe mit cin/cout.
+ios::sync_with_stdio(false);
+
+// Set mit eigener Sortierfunktion. Typ muss nicht explizit angegeben werden.
+set<point2, decltype(comp)> set1(comp);
+
+// PI
+#define PI (2*acos(0))
+
+// STL-Debugging, Compiler flags.
+-D_GLIBCXX_DEBUG
+#define _GLIBCXX_DEBUG
+
+// 128-Bit Integer. Muss zum Einlesen/Ausgeben in einen int oder long long gecastet werden.
+__int128
+\end{lstlisting}
+
\subsection{Josephus-Problem}
$n$ Personen im Kreis, jeder $k$-te wird erschossen.
\begin{description}
@@ -66,28 +91,3 @@ $n$ Personen im Kreis, jeder $k$-te wird erschossen.
Minimiere Matchinggewicht.
Lösung: Sortiere Knoten links aufsteigend nach Gewicht, danach nutze normlen Algorithmus (\textsc{Kuhn}, Seite \pageref{kuhn})
\end{itemize}
-
-\subsection{Sonstiges}
-\begin{lstlisting}
-// Alles-Header.
-#include <bits/stdc++.h>
-
-// Setzt das deutsche Tastaturlayout.
-setxkbmap de
-
-// Schnelle Ein-/Ausgabe mit cin/cout.
-ios::sync_with_stdio(false);
-
-// Set mit eigener Sortierfunktion. Typ muss nicht explizit angegeben werden.
-set<point2, decltype(comp)> set1(comp);
-
-// PI
-#define PI (2*acos(0))
-
-// STL-Debugging, Compiler flags.
--D_GLIBCXX_DEBUG
-#define _GLIBCXX_DEBUG
-
-// 128-Bit Integer. Muss zum Einlesen/Ausgeben in einen int oder long long gecastet werden.
-__int128
-\end{lstlisting}