diff options
| -rw-r--r-- | geometry/convexHull.cpp | 7 | ||||
| -rw-r--r-- | java/BigInteger.tex | 17 | ||||
| -rw-r--r-- | java/Introduction.tex | 12 | ||||
| -rw-r--r-- | java/java.tex | 42 | ||||
| -rw-r--r-- | tcr.pdf | bin | 169776 -> 172283 bytes | |||
| -rw-r--r-- | tcr.tex | 1 |
6 files changed, 43 insertions, 36 deletions
diff --git a/geometry/convexHull.cpp b/geometry/convexHull.cpp index 5d6bc16..a2df10a 100644 --- a/geometry/convexHull.cpp +++ b/geometry/convexHull.cpp @@ -1,10 +1,3 @@ -#include <algorithm> -#include <iostream> -#include <sstream> -#include <string> -#include <vector> -using namespace std; - struct point { double x, y; point(){} point(double x, double y) : x(x), y(y) {} diff --git a/java/BigInteger.tex b/java/BigInteger.tex deleted file mode 100644 index 586b0cb..0000000 --- a/java/BigInteger.tex +++ /dev/null @@ -1,17 +0,0 @@ -\subsection{BigInteger} - -Hier ein kleiner überblick über die Methoden der Klasse BigInteger: \\ - -\begin{enumerate} -\item BigInteger add(BigInteger val), multiply(BigInteger val), divide(BigInteger val), substract(BigInteger val) \\ -Returns this +,*,/,- val -\item BigInteger pow(BigInteger e) \\ Returns this\(^e\) -\item BigInteger and(BigInteger val), or(BigInteger val), xor(BigInteger val), not(), shiftLeft(int n), shiftRight(int n) \\ -Bit-Operations -\item BigInteger gcd(BigInteger val) \\ Returns the greatest common divisor of abs(this) and abs(val) -\item BigInteger mod(BigInteger m), modInverse(BigInteger m), modPow(BigInteger e, BigInteger m) \\ -Returns this mod m, this\(^{-1}\) mod m, this\(^e\) mod m -\item BigInteger nextProbablePrime() \\ Returns the next number that is greater than this and that is probably a prime. -\item int intValue(), long longValue(), float floatValue(), double doubleValue() \\ -Converting BigInteger. Attention: If the BigInteger is to big the lowest bits were choosen which fits into the converted data-type. -\end{enumerate} diff --git a/java/Introduction.tex b/java/Introduction.tex deleted file mode 100644 index d3b6cd9..0000000 --- a/java/Introduction.tex +++ /dev/null @@ -1,12 +0,0 @@ -\subsection{Introduction} - -\begin{enumerate} -\item Compilen: \\ javac main.java -\item Ausführen: \\ java main < sample.in -\item Einlesen: \\ -Scanner in = new Scanner(System.in); \\ -String line = in.nextLine(); (reads the next line of the input)\\ -int num = in.nextInt(); (reads the next token of the input as an int)\\ -double num2 = in.nextDouble(); (reads the next token of the input as a double)\\ -usw. \dot (think on your own what comes next) \\ -\ende{enumerate} diff --git a/java/java.tex b/java/java.tex new file mode 100644 index 0000000..469fcc1 --- /dev/null +++ b/java/java.tex @@ -0,0 +1,42 @@ +\section{Java} + +\subsection{Introduction} + +\begin{itemize} +\item Compilen: \lstinline{javac main.java} +\item Ausführen: \lstinline{java main < sample.in} +\item Einlesen: +\lstset{language=Java} +\begin{lstlisting} +Scanner in = new Scanner(System.in); //java.util.Scanner +String line = in.nextLine(); //reads the next line of the input +int num = in.nextInt(); //reads the next token of the input as an int +double num2 = in.nextDouble(); //reads the next token of the input as a double +\end{lstlisting} +\end{itemize} + +\subsection{BigInteger} +Hier ein kleiner überblick über die Methoden der Klasse BigInteger: +\begin{lstlisting} +//Returns this +,*,/,- val +BigInteger add(BigInteger val), multiply(BigInteger val), divide(BigInteger val), substract(BigInteger val) + +//Returns this\(^e\) +BigInteger pow(BigInteger e) + +//Bit-Operations +BigInteger and(BigInteger val), or(BigInteger val), xor(BigInteger val), not(), shiftLeft(int n), shiftRight(int n) + +//Returns the greatest common divisor of abs(this) and abs(val) +BigInteger gcd(BigInteger val) + +//Returns this mod m, this\(^{-1}\) mod m, this\(^e\) mod m +BigInteger mod(BigInteger m), modInverse(BigInteger m), modPow(BigInteger e, BigInteger m) + +//Returns the next number that is greater than this and that is probably a prime. +BigInteger nextProbablePrime() + +//Converting BigInteger. Attention: If the BigInteger is to big the lowest bits were choosen which fits into the converted data-type. +int intValue(), long longValue(), float floatValue(), double doubleValue() +\end{lstlisting} +\lstset{language=C++}
\ No newline at end of file Binary files differ@@ -65,6 +65,7 @@ \input{geometry/geometry} \input{math/math} \input{string/string} +\input{java/java.tex} \input{sonstiges/sonstiges} \end{document}
\ No newline at end of file |
