summary refs log tree commit diff
path: root/einreichung/Bonusaufgabe
diff options
context:
space:
mode:
authorMalte Voos <git@mal.tc>2022-08-20 14:12:11 +0200
committerMalte Voos <git@mal.tc>2022-08-20 14:12:11 +0200
commitd0c70ad88b11f412c9d8c6735b74cce1b1ff015b (patch)
tree2f0e9821a785e083abfe851ce919cadbefe001af /einreichung/Bonusaufgabe
parent5f22745507a343163521fbe85cdc72ac144c319f (diff)
downloadbwinf402-main.tar.gz
bwinf402-main.zip
cleanup main
Diffstat (limited to 'einreichung/Bonusaufgabe')
-rwxr-xr-xeinreichung/Bonusaufgabe/AusführbaresProgramm/bonusaufgabe-x86_64-linux-staticbin0 -> 4014904 bytes
-rw-r--r--einreichung/Bonusaufgabe/Beispielausgaben/nur_ein_haus.txt8
-rw-r--r--einreichung/Bonusaufgabe/Beispielausgaben/stapel0.txt11
-rw-r--r--einreichung/Bonusaufgabe/Beispielausgaben/stapel1.txt15
-rw-r--r--einreichung/Bonusaufgabe/Beispielausgaben/stapel2.txt17
-rw-r--r--einreichung/Bonusaufgabe/Beispielausgaben/stapel3.txt17
-rw-r--r--einreichung/Bonusaufgabe/Beispielausgaben/stapel4.txt17
-rw-r--r--einreichung/Bonusaufgabe/Beispielausgaben/stapel5.txt11
-rw-r--r--einreichung/Bonusaufgabe/Beispielausgaben/wahre_freunde.txt15
-rw-r--r--einreichung/Bonusaufgabe/Beispieleingaben/nur_ein_haus.txt21
-rw-r--r--einreichung/Bonusaufgabe/Beispieleingaben/stapel0.txt21
-rw-r--r--einreichung/Bonusaufgabe/Beispieleingaben/stapel1.txt21
-rw-r--r--einreichung/Bonusaufgabe/Beispieleingaben/stapel2.txt112
-rw-r--r--einreichung/Bonusaufgabe/Beispieleingaben/stapel3.txt162
-rw-r--r--einreichung/Bonusaufgabe/Beispieleingaben/stapel4.txt182
-rw-r--r--einreichung/Bonusaufgabe/Beispieleingaben/stapel5.txt201
-rw-r--r--einreichung/Bonusaufgabe/Beispieleingaben/wahre_freunde.txt10
-rw-r--r--einreichung/Bonusaufgabe/Quelltext/Cargo.lock115
-rw-r--r--einreichung/Bonusaufgabe/Quelltext/Cargo.toml8
-rw-r--r--einreichung/Bonusaufgabe/Quelltext/src/main.rs404
20 files changed, 1368 insertions, 0 deletions
diff --git a/einreichung/Bonusaufgabe/AusführbaresProgramm/bonusaufgabe-x86_64-linux-static b/einreichung/Bonusaufgabe/AusführbaresProgramm/bonusaufgabe-x86_64-linux-static
new file mode 100755
index 0000000..08e02f2
--- /dev/null
+++ b/einreichung/Bonusaufgabe/AusführbaresProgramm/bonusaufgabe-x86_64-linux-static
Binary files differdiff --git a/einreichung/Bonusaufgabe/Beispielausgaben/nur_ein_haus.txt b/einreichung/Bonusaufgabe/Beispielausgaben/nur_ein_haus.txt
new file mode 100644
index 0000000..cda3516
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispielausgaben/nur_ein_haus.txt
@@ -0,0 +1,8 @@
+Randinformationen (siehe Dokumentation):
+n = 20; w = 2; b = 32; k = 1; p = 1
+
+Echte Karten:
+00010001110100110001111101100100
+00010001110100110001111101100100
+
+Laufzeit ohne I/O: 267.794µs
diff --git a/einreichung/Bonusaufgabe/Beispielausgaben/stapel0.txt b/einreichung/Bonusaufgabe/Beispielausgaben/stapel0.txt
new file mode 100644
index 0000000..4a8a8c1
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispielausgaben/stapel0.txt
@@ -0,0 +1,11 @@
+Randinformationen (siehe Dokumentation):
+n = 20; w = 5; b = 32; k = 1; p = 1
+
+Echte Karten:
+00111101010111000110100110011001
+10101100111111011010100011100000
+10111000011001110000101010111110
+11010111111010111101101111110000
+11111110001011010001000000110111
+
+Laufzeit ohne I/O: 266.744µs
diff --git a/einreichung/Bonusaufgabe/Beispielausgaben/stapel1.txt b/einreichung/Bonusaufgabe/Beispielausgaben/stapel1.txt
new file mode 100644
index 0000000..dd165ef
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispielausgaben/stapel1.txt
@@ -0,0 +1,15 @@
+Randinformationen (siehe Dokumentation):
+n = 20; w = 9; b = 32; k = 1; p = 1
+
+Echte Karten:
+00010001110100110001111101100100
+00100000111100111110111101111100
+00100011100111011010111011100011
+00110100001010100100001111010010
+00110110000110101101011111111010
+11000111111010110100000101110100
+11010011010110110101001101010111
+11110011101011001001000010111110
+11110111100100010100100001001110
+
+Laufzeit ohne I/O: 255.083µs
diff --git a/einreichung/Bonusaufgabe/Beispielausgaben/stapel2.txt b/einreichung/Bonusaufgabe/Beispielausgaben/stapel2.txt
new file mode 100644
index 0000000..f84e4ee
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispielausgaben/stapel2.txt
@@ -0,0 +1,17 @@
+Randinformationen (siehe Dokumentation):
+n = 111; w = 11; b = 128; k = 1; p = 1
+
+Echte Karten:
+00101000011000010010111011101011011010111000100100110101111011011110111100101100001001110010100001101001110001000100010011111100
+00101011111000101011010110111100100110000000000011010011001111011001011001000010001101010110110010101110100100001011100011010001
+01101001001011000101001111111101011000001000101100111010100101011011000100000001100001100011010110101011110110100000100101001011
+01101011101000110111010001100001110000011000110101100010111011100110011011110111011100110101101111000011110111011101011111100111
+01110110011110001110011110001101101110100101000000100000101100001010001110101000000011010011000011010010110110100101111101101000
+10000000000100100110011001000110000000000101010110100100100001000111010110110101010010101000101110101100101000110010100100111011
+10101011000001101100000101111111110011000110011100101011011111011000111111101111101000111111010000001011011011111111010011011110
+10101111110010010010100111101100010011111000010101001100100001111000100010010010011010010101011111101011000001111110000000111011
+11000011000100110111000101100100101101010110011011010101101001000011110100010001001010000110010101010010001100010001101110100000
+11011110000101001101111100110000111010011011101111010111110110110111011010001001101101100111010001000011000001010111100101111111
+11101110101011100111101111000111001101111011010101011111000110100011010001100000111101000010001100100000011101100010001011101000
+
+Laufzeit ohne I/O: 10.238145ms
diff --git a/einreichung/Bonusaufgabe/Beispielausgaben/stapel3.txt b/einreichung/Bonusaufgabe/Beispielausgaben/stapel3.txt
new file mode 100644
index 0000000..cbecf0a
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispielausgaben/stapel3.txt
@@ -0,0 +1,17 @@
+Randinformationen (siehe Dokumentation):
+n = 161; w = 11; b = 128; k = 33; p = 2
+
+Echte Karten:
+00100000111001110001101010001111110011110001011110100110010101100010011000100111101011001111001111111011110110011111001010100001
+01010000101101110011110001110011010011001111111000001000000100000010111100001110100001001001111101111001010011110110111110011011
+01110001111110101000010011100011111111100111101101110001010100010110001100010101000010100010100001010000010100001000101110101100
+01110110100111001000011011100100101010111111001011110000001011001101100101100111001011100000011010010011100111100101011010010111
+01111101100010101100110011101011010101001101000110011111101010110000000111000110101001111111110100100001100010011111100010110100
+10110000001001100110110101000100110011100101100110101111011111101000001110100011000001100000010101111111000000000101111010010001
+10110111010010111110110011000101011101000011111100001000001100111111111001001100011100011110011111101000111010111000011110110101
+10111000101111100010111110101010101100110001000011011001100010110110000001100001101111010100001100100010001101000110010011001100
+10111111010101001100000101101100111101000010100010100100001001111010110100100101100011101100011010100000011010101001110100010111
+11000001011001000110100111011111111011111011011010111110100010110000101111000111001010100101100000111011101011010101100111010100
+11001011010111111110111010001000100100000101100111010100111110100000100111110001110001011000000001001110110010011100000110011110
+
+Laufzeit ohne I/O: 22.363371ms
diff --git a/einreichung/Bonusaufgabe/Beispielausgaben/stapel4.txt b/einreichung/Bonusaufgabe/Beispielausgaben/stapel4.txt
new file mode 100644
index 0000000..e63f3f7
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispielausgaben/stapel4.txt
@@ -0,0 +1,17 @@
+Randinformationen (siehe Dokumentation):
+n = 181; w = 11; b = 128; k = 53; p = 2
+
+Echte Karten:
+00000111011010010101101110001111101001110010100011000001000001101110101111101001000100000001111011111001101011010000100011011110
+00101100000111101111000010000001011011111110000110011111111110001111000000101111101100010010000010100001010111110110000101001010
+00101100001110001110011110000100110000000000111011011001110100010100001010000110110010000111110011000100111101001100100010010000
+00110110010111001001001111001111101010011100000100000001100010101000111001000100111000100110111111100100010010100100111011110100
+01000011001001101011001111011101111010010110111010111110110111111001000100010110101100101111110000011000100111011000001101000111
+10000001000101110011010100011000110100110100111100100010001000011011000001010111100110111011101110001011110000100100001110000101
+10001100001011001101001011000110110101001101000010000101101010101100110110111111010110011001001101100100001011110000111010000111
+10101010000011111111001111011110001000100111010000010010111101000001010001100010110011110111111010111000000011000110111110000110
+11000101110001001000001011101000100110011001111011101001011010110100111000100001000100000011000010101111001001101101010111011101
+11100010000000111101001111111001001100111011101001000111001111001111000010000101100001000011000011001011101101010000101111100001
+11110010110001100010100110001001110001111010011100100011010100101001000100111100101000001000011101010011101000111001000000001111
+
+Laufzeit ohne I/O: 78.698033ms
diff --git a/einreichung/Bonusaufgabe/Beispielausgaben/stapel5.txt b/einreichung/Bonusaufgabe/Beispielausgaben/stapel5.txt
new file mode 100644
index 0000000..ae9db49
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispielausgaben/stapel5.txt
@@ -0,0 +1,11 @@
+Randinformationen (siehe Dokumentation):
+n = 200; w = 5; b = 64; k = 136; p = 2
+
+Echte Karten:
+0101111111000111000000101111100010111010110101000100000011001000
+1000010011101010001111100100110110011011100101010100010000001001
+1010000110101100101110111001100011011110111111010111000101111110
+1010111011001100100110001100110001011101001000000011011111100100
+1101010001001101000111111110000110100010100111000100001001011011
+
+Laufzeit ohne I/O: 50.661174ms
diff --git a/einreichung/Bonusaufgabe/Beispielausgaben/wahre_freunde.txt b/einreichung/Bonusaufgabe/Beispielausgaben/wahre_freunde.txt
new file mode 100644
index 0000000..b7c4922
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispielausgaben/wahre_freunde.txt
@@ -0,0 +1,15 @@
+Randinformationen (siehe Dokumentation):
+n = 9; w = 9; b = 32; k = 1; p = 1
+
+Echte Karten:
+00010001110100110001111101100100
+00100000111100111110111101111100
+00100011100111011010111011100011
+00110100001010100100001111010010
+00110110000110101101011111111010
+11000111111010110100000101110100
+11010011010110110101001101010111
+11110011101011001001000010111110
+11110111100100010100100001001110
+
+Laufzeit ohne I/O: 93.799µs
diff --git a/einreichung/Bonusaufgabe/Beispieleingaben/nur_ein_haus.txt b/einreichung/Bonusaufgabe/Beispieleingaben/nur_ein_haus.txt
new file mode 100644
index 0000000..2dca3e5
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispieleingaben/nur_ein_haus.txt
@@ -0,0 +1,21 @@
+20 1 32
+00010001110100110001111101100100
+00010001110100110001111101100100
+00100011100111011010111011100011
+00110100001010100100001111010010
+00110110000110101101011111111010
+01100101010011000010111111011011
+01111000011000011001010111111000
+10000011001001011010010100000101
+10101000111000101011011001001110
+10101110100111010100111101111100
+11000111111010110100000101110100
+11010001011001011001100001001101
+11010011010110110101001101010111
+11011100110101010101110111111101
+11011101010011100001011001100001
+11100100000110011010011001011011
+11110000010011111010101001011001
+11110010111000110110110001010000
+11110011101011001001000010111110
+11110111100100010100100001001110
diff --git a/einreichung/Bonusaufgabe/Beispieleingaben/stapel0.txt b/einreichung/Bonusaufgabe/Beispieleingaben/stapel0.txt
new file mode 100644
index 0000000..c5ae36a
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispieleingaben/stapel0.txt
@@ -0,0 +1,21 @@
+20 4 32
+00100110110010100100010010101110
+10111100110001111010101000000011
+00111101010111000110100110011001
+11111110001011010001000000110111
+00010000001100101000111000010101
+11010111111010111101101111110000
+11011101100100001001010011000111
+11100011100100011010100101111101
+11100110001101111100011001010010
+10101100111111011010100011100000
+10000011001010001101011101101111
+10111000011001110000101010111110
+01101111001001011101000110100001
+10001110111100011010010000100011
+10000110111000111001011101100110
+01100101110101100001001111011111
+10110000011011000101111010010010
+00011111101000110001000111100000
+00111110111101110001000001011010
+00100100011111111101101100101111
diff --git a/einreichung/Bonusaufgabe/Beispieleingaben/stapel1.txt b/einreichung/Bonusaufgabe/Beispieleingaben/stapel1.txt
new file mode 100644
index 0000000..6e02758
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispieleingaben/stapel1.txt
@@ -0,0 +1,21 @@
+20 8 32
+11011101010011100001011001100001
+00100000111100111110111101111100
+11010011010110110101001101010111
+11010001011001011001100001001101
+00110100001010100100001111010010
+11011100110101010101110111111101
+11110011101011001001000010111110
+00110110000110101101011111111010
+01100101010011000010111111011011
+11110111100100010100100001001110
+10101000111000101011011001001110
+00100011100111011010111011100011
+11100100000110011010011001011011
+01111000011000011001010111111000
+11000111111010110100000101110100
+00010001110100110001111101100100
+11110010111000110110110001010000
+11110000010011111010101001011001
+10101110100111010100111101111100
+10000011001001011010010100000101
diff --git a/einreichung/Bonusaufgabe/Beispieleingaben/stapel2.txt b/einreichung/Bonusaufgabe/Beispieleingaben/stapel2.txt
new file mode 100644
index 0000000..2cf4af8
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispieleingaben/stapel2.txt
@@ -0,0 +1,112 @@
+111 10 128
+00100001001110000000101100101011101111000100111101011101100001011101101100000111000011100011110111110001000111010000011011110010
+01000100100100000111111001011000000011100110011011011011000000101000100100111110110011001101010001111000011111000110000111011111
+10101010000001001010101101100001010011101110111100110110011110101001000110110111100011011000111111101101100110100110011110100000
+11001111011011001000010000100011101111101111011000001010001101101101100111111011101011011010110010011101010010000010000111111111
+00000101110001001101101001100011011000101011001010110111011000111111111110110010101110101110100110100111111010011110011000100101
+10000111011101111111011001101001101011000000011011000011000111011011011000100000100110110011110111110110010101100001001000010111
+00001011110001110010110001001111110001100001011010010011010010111000001001001111111101101100011001010100101010100101100110010101
+10010111010111110101001011111101100011100001110100001100101000111010101111000111001010110111010010110100101101100001110000000111
+00111111011110110000001010010111001011101001010011000000011101101110111100011011010000111010011111001000100010000111011010000111
+01101011101000110111010001100001110000011000110101100010111011100110011011110111011100110101101111000011110111011101011111100111
+11101110010101100100000000111100101100110011010010110111110100101000110100100001111001110100111101000010111001111111110001011101
+10010000111010010000101110111111100110011100001011100001010010000111101011100100100101001010010011100111100100001001000010110110
+10001001000111001011011111101111010011001111010001001010001101001100100111000111001001000110101111000011100100101100000110100111
+00111001010110100000001110010101000011001011101010101001111010100101011100000110000101001010000010010011100010111111011100001000
+00011111111111101000111111010010011110100000101110101101110001000110101000110110111010101100111000011001100101110110110010100111
+11111100110110110010000111011110101001001111100111001100101100011111111011010011111110010001110010100100011101001001110011001100
+00111001100010110110110001011010111101010011010010000111010101001011100101110111100001010110100110011000001011010110110000010101
+01100101111101101101110101010101110000011010001001011001111110101010010110000101110011110101011100111001010111101000010101101001
+11100111100000000111011001110111011001010111000111001010010111100100111011000001111110011001111111000101001101000001100000000101
+00110101111010100010100000010101110001110010010101110100111010010101110111001110100101110000011010110011001000011100011000101011
+00101011111000101011010110111100100110000000000011010011001111011001011001000010001101010110110010101110100100001011100011010001
+01110101000010110011110110011000110100100010001000000100010111110100000000110011101011111011000000101101010011001111101100011111
+11011110010100010000101000111100111100110110000100001100010110000010101100101000010001011000010111101110100100100101101100101101
+00100001011011101100011011110010000000101100110011001111000100000001111001001111111100010110100011111010000111001010000110101011
+11110000011011011011000010111100011011100111011000111110001000001011011011001000110011011000000110101111000101110110001110110000
+11000010100101111110010001101100110100100001111111110000101001101011000110010000011101010000110111111011110010000101010111000001
+10101011000001101100000101111111110011000110011100101011011111011000111111101111101000111111010000001011011011111111010011011110
+11010100010010110101101100000010001001000111100011000000000011111001010011101100100111110010010100000011011110001001001010110001
+00100111001100000001011010001100011001011110011000111010100110101011110001100010000011100101001100001010101101110111111010000010
+00000101111100011101011101110101110000111101001001111100011001001000000010011011111011101101101010001011001001000011100000111101
+11100101100001010001001101001010100110011011011000101000001100111110111011001001010011001100010001010000010010000001111001010111
+00100001101100110111110010001001110111101010010000101011001100101110111001101100001010110011111001011111001010001110111100001101
+00101000101010000101011101000010001101110110001011000011010101011101111100001001101000110010110001000000111000000100001111001100
+10011111111100001001000011011011101100101111101111110000111110100110010010011000011011010110100110101110000111101100001100010000
+00110110011100011110101101011111110111000010010001111110000111010000010101011011001001110000101000100110101110111100001100111111
+11001100111001101001000011010100011010101000101011111000101000101010111110001110100101111001101111111101100000000111010010111111
+10111011011110100101101111001100110011011011110001001110011110101100011010101100101101011000110001101001100010010110110111000001
+10110110110010100101001100011111100010011010000001101111111011111011000110100000111101110100111110101000001010000001111011010111
+01110000110011111100101001010100010111110110000001001100010000001011011010101101111011011111100011010011001010110000011010111000
+11100001011100101100011010110001011000101111101011101111100011101010000001101100110000000101101001000011111101000010101000000100
+11100111100011010010000101110001000101010110001111110111010000011011101001110011100011001010011101110101000100101111110000110111
+11101110110110010110110000010010011011101000011100100001110010011000000111011001000110101001100001101100111001100001111000110001
+00010011110111010001001010011001001110111010101011101001111001000000100110100011100110100001011000110101000000000001111010101100
+10001011101100011101100000010000100101111111000000101100111011100100100100010110110011100100110111000001001101101010100111010010
+01011110010001111100001001100011111011011110100110110010100010001111001110110001010100101010110100111001010111000101010110111000
+10111111101110100110101010111001111100100100101010100110101010011001110010101011011010000011011100111100000010010100111011010011
+01101110100100010110001111010111110111110101100111111111100011111101001110000101010010110011110111000110100110100111111000111110
+01100001110110011001000011010101110101111111001101011100110111110011111111011000100110110101111100011101111110100010010000001110
+10100001001101100001001100111100010110010100101001011101001100110010110110100100101111100101101111011101100101111001101001101111
+11011110100001111001101110010100111111101110110100000011111001010000001110100011000100001101100100101001010010101010000110000100
+00110010010101000100010011011001011101101011000110011010001001000111001010100011011011100101000000110110100111000110001010001001
+10001000000111011010011110101001110110100001100101101110110001011001001001111101101110010110110000111111100001101011001000001100
+11011001000100010001011110011100000100010111011010111101111000111110010001001101011111111011111101100011101101100001001001101010
+10000000000100100110011001000110000000000101010110100100100001000111010110110101010010101000101110101100101000110010100100111011
+10001010011001001111110010111110001000000100000011000001000010101110101001010011101110011111011001010011101110111000100101100001
+10010110111100100001011001011011111000010101010111110100000110100000100110011010010111101001001001010000000000111011010000000101
+11101011011011111010101001110100100101000010111101001001100111111110101100100100000110110010111111000101101110001000011101110011
+00101000011000010010111011101011011010111000100100110101111011011110111100101100001001110010100001101001110001000100010011111100
+01110110101001000011100101010100010111001001101111111100101111011110001100111011101100000111111001101111000110100100010110100000
+00001100111110010011110000100011000011000110001100011010111100010000000110110010001011110111001101001111100011010001100101011100
+01011011000111000001110000100100110001001011010110100001011101010001010101000001011110001000100001111101101001001000110000001111
+10101001100100110010110101110001100111001010001001111001111111111110100111101100101110001101000111111001111100000000010000010011
+00010111010001111000010110111111101001110000000110101101000000100100000110110110100101110111111111011111101111000001101011000000
+10000010101001000100011011110111110111011101100000110011000011010111101111000101110000101100111001111001100000010001111000110110
+01110111010000001100101111000000101001101100110100100000000001010101011010001000000011101111001111001111110101001111011001110000
+01101101001110110101110110101001010101101000101110000110000010000001110111010110110000001011011101001100100101001101111011011011
+00011111101010110100110001001010010111110000001000010101011000010000111001110000001010101100101100110110011011010101011100101001
+11000101111101011100100000111100010110001111100000111010001001101000001110100001000110011111110010110111101110100011101001100001
+00110000100000010000000100111101000111011101100101001011111101110110110111001010011010001000001001101101011110001001001110111000
+11101010101000111100100111010010110100011011000111111000010000011000101111000001110111101101011011100011110100111101011100111111
+11001000111101100110011010000110010101100110010110110111011101110000101011111100001010000001001011100111000111101011100110000001
+11000011000100110111000101100100101101010110011011010101101001000011110100010001001010000110010101010010001100010001101110100000
+10001100010011111000101010111010001001011010001010001110100000100111000111010111111111101000101100101011101010101000110101011100
+10110111000001011000111111110000111110110001101000001110110110110000100100010001110001011100101111010000101100110000010000100111
+01000111101001000101000101110011110101000111100111110100100110101011010111111010001110000001111000000101000110111100011100011111
+00111100101000110000011001000000100010100101111111101001001101111100010001010011101010011011011001110001001101001011001110000100
+10101111110010010010100111101100010011111000010101001100100001111000100010010010011010010101011111101011000001111110000000111011
+11010111111000110010010001111001110101110011101010010000101001001010110001111110101101011000111100110101110011110010001001010111
+11011110000101001101111100110000111010011011101111010111110110110111011010001001101101100111010001000011000001010111100101111111
+10100100100001110111101000010111011110101110001101110000100011010101001010110111000111100110100101000100101101010111000000011011
+00011011001111001110001110100100101010111100001000111001100010011011001110100011010101111101010110000110010111010111000000101110
+00100010110000011100010010001100001100000110100111000000010011010010110000111110000110011100101011101000010101111011111010100100
+00001101000111001101000101111111000101111001000100100101110011011001010011110000000111001101010111001001111010000010000011001011
+00111101101011000011100001011000101001111011110111011001000111011111100110001011001110110011110011001011001001111110101011010010
+11000011001101110011000001010110011011000001001110000101110001011011110001111101110110011100101100100010101000001001101110110011
+10111101000111100101000010100000000001010101110011011010000011001011100110110000001100111100101001110101000100100100011011111010
+11010010101101111111100010111100111110001110101101001001011010011101001110001010001101010100111100010110101000111000101110001001
+01100101000100001010011111101011001101110111111110100000011111001110100101110110001001010111000100100010101010010010100000100011
+00000011110111011110110001111001111110110000011011110111001110110011001011011011100110000001001101010011111101111101001111011100
+01101001001011000101001111111101011000001000101100111010100101011011000100000001100001100011010110101011110110100000100101001011
+01001111010010011010100010110010111100010111000111100110001101100011000001111111010011101000101110000110000101101011011000010111
+01001100000111110101000101100011011010111000101010110010110101000110010100110000001100101001000001100101111101110010011100010100
+10011000100100111001101010100111111001011111110001110111100100011110001110101111110101011110110010000111101000010011101100010001
+10101100111010000111000000000110011010000000010001100001011000111001000000000010111001001111111101101010101101111010001111100001
+11110100101111001001111111001110011001111010111011111100110010111110001001111110000011000100111001001110000010001110111011000100
+01110110011110001110011110001101101110100101000000100000101100001010001110101000000011010011000011010010110110100101111101101000
+10000010010010110000101110000111011110111011011111110011100101100010100111001000000100011111000110011110011111000100100100001000
+10101010100100101001101110000100110001111110001101010000001011100101010010010011111101100010101100111010010100010100101101100010
+10111011111001011011010010000101100100000111011001011111001000111011000010111010000101111011111011001111111111110000001101100110
+11101110101011100111101111000111001101111011010101011111000110100011010001100000111101000010001100100000011101100010001011101000
+10111101010001001101111000011101100111110001110011010101101101110101101100010101101100010010100100111010101101101000001000100110
+01001001111000100000111001100001100010001100011111100110111010100100001101010100001110011111010000000010111010011010100110010011
+00110010010000010001001101111000000111011001101000001100000110010111010000100101100010111001011000010011101101100001000011000011
+11001000110111001111100101001000011000101001000001011010011101000010010100111111010010000010011010000101101001011100001111100001
+10001101101010101000100011111101010101101110001011111011010110100011111101011101111011111100111001101001101000001101011101111111
+00111111100101000101010000111110110001100100001001000011001100111001111001000110111100000111001100011110011001101011110010000100
+11111110011011100001110111100110111011100010100000000110000101010000111111100101000011000000101010011001010110100111000000100100
+10011000000000011101000111011111010001100101010011101101111110011100000000110010001110000001110111101000010110011111011111110111
+01001010101011101110000101011001001000000010101001011110000011110011000011101111110000100000110111000110000001010110011000111100
+00101100001101010010111100011001011100100001001001110110110011010111000001010111001010001011110110110000110010100101011011011001
+01000100001001101001111011001101110010001010011011110000000101100010000000100101011111000110010100001110010011010000010000101100
diff --git a/einreichung/Bonusaufgabe/Beispieleingaben/stapel3.txt b/einreichung/Bonusaufgabe/Beispieleingaben/stapel3.txt
new file mode 100644
index 0000000..badbc0f
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispieleingaben/stapel3.txt
@@ -0,0 +1,162 @@
+161 10 128
+10001111110010100001000101000110101100000010111001100000100100010011011101001010000010010011001011101011010011000011000110100001
+01101100010010000001111000011100001101011100110010100011010111010010100000101111010010101001100100010101010001000001010000111010
+11100101100001011010101000100011010110100000000111100100101010001010011111100000000110011111000111101011110100111010111010100110
+00100100011011100100110001000111100001111111110010010110101000100110100111001101010101100010011100011001001010000011001000000101
+00111001110001000100111001101110100100101001001000010011101011111111000001001101100101100001001000100011100011111000010010011001
+10010100101010001000001000001001100011001110000001101001101101110111111010100100011111000010011100101000001110101100000100011001
+10001010000000100110010111000010000101010011110110111100111101110101010000011000110110011101000111101011001001111011111101000101
+11000111110000011110110001111111001100011111000001100000111010010101011110110111110011100100110000110101100111110111111111001000
+10110001000010101011010011000101100011011010100011000110000000100001111010001001111000000000000110000100100101001000000001111001
+11110010010000101111111001011001000001000100100010111111001100000100010101111011100100001010000100001100110101110110000100111010
+00111100100001110010110111111011110100010111100000001111011100010011101100101000001110111011101000010100110000000110010010110011
+00110011101111010111110000110101100101001001101100101101010001100101001101001101001100010010011010000011111011000010001010001010
+11010111101101110000101010000000011010111001101001011000101001000101001000111111010110000110100100101101111010010001011111100111
+00000011100001110100110001011101001111010101111100001111100111101101111011101110001010110000010010001110101101011010001110110010
+10001110001100011111010101111000011001110001000100011111010000110010001111110111010100011101111010010001101100000011101110101110
+11001000110100100111110011111111001101001001011101010010001011011101100000000111101100011000100111000110100100111100101101111100
+10101110011101110101111100011110101101101010100100010001100001001000000111000110000010110101000100110111101001101010100011010001
+10000001001101001011010110001100100010011010100011100011001011010100110110110010011101111001111101001011000010011010001001011100
+11110110010101100110110111100011001000011010001101011100110101010100001010100001101010001110010011100110100100101010110010100011
+00100111100101011001110000100110111011111110100010111110000011011101000101110000000100110000101111101011001110111100111111011100
+10001111100110100010010010101010010111101111011011010011011111011011001010101010110111110101010100000011110101010100011100111100
+01111001101010101010011101000100010000101011001100011100111000010011011001100001100010010110110111001000110110101101001100011101
+01010100100100000100110001001101001010001010101011010011111001001110011100000100110111111110000101011001000001110000000111110111
+10110111010010111110110011000101011101000011111100001000001100111111111001001100011100011110011111101000111010111000011110110101
+11000010010001001000110111001101101100111000000100111001000000001010001011010111001010010001010101001010010100101001111000011001
+01100000000001011000010101011110111010000101101100100000101011001101010001101110001000000001011111011001100000010011100101111011
+10111000101111100010111110101010101100110001000011011001100010110110000001100001101111010100001100100010001101000110010011001100
+11000000010000110100110111101100001010111011110110111001101100111010111100011000111101111010100010101011010001100001100100011110
+01110001111100000000101100110011010111000000100101101101111011010011101110011000101110011011101101010111011101110111111111000110
+11001001110000000011101011010000100011010011101010010000111001001001011100111100001111100001011001111011111000010110110100001111
+01111101001001100011111111100001001111000010111000111010000111111011111110001011011011110101011101011000010001000001010101100111
+01001100110100101101110110110111111101100000100000001110100000010110000111001000111101110011001010010101101000011101110100100000
+10101000000010100000111011010111001010010101010110111101110000101100000010101011110001110010101000101110010000011110101111010111
+01101010010011010010111010111110010000011000101011000110100011100100100111001101001000111000011000100111000010011010000110110011
+11001011010111111110111010001000100100000101100111010100111110100000100111110001110001011000000001001110110010011100000110011110
+00010001010101010111001010000100110100101010111110101001101000001110111111001100000111010011000000001011110011100011110110110101
+01111000011011100110010011111010001111110111111111001010110110010101001100110001110001111001001000000110101001101000010100010010
+00111010111001101001010000011010100101010001101010010101001000100110100000111101110111100011001101110000000111000101000011001011
+10011001001100101010001101001001100101000001100101000110011111111001001001011111011001101111001111111011111000100100111010010100
+00010100010100110001000101000101010001111001010001101010110101110010110100100111101001101000101110111101011000011001000011111010
+10011111100110100000001100100111101110111010100010100000111011010011010100100010010011001110001100101000011111101110010100010010
+11101010000110000101011010111111111100110111010001011011011110010000101010100010111011100000010100010000010000100100001010010001
+11011101101001111101111011100000110001101000101000110100000100110110101110000110100110010001100010000111110011001001101101001110
+01010000101101110011110001110011010011001111111000001000000100000010111100001110100001001001111101111001010011110110111110011011
+00110011110101010011011000011111100010011001010111101101010101000011111001011001001000110111111000000010010101100010010001010100
+10000101111100010101111011001100111111010001001100110100100111111010011110111000000000111111001101010100101111100000110110110100
+11001110110011001110010110000000111001110011001001010110010010010001110001100010100101000000100110110000110101110101010111000110
+01111010101001111100100001110111001100100001111100000111111001100101010001011100001010110011101110000110110101010110011100100001
+00000000111000100110001001010000100100101101001100000010101110011010000111110000101100011100110100000011111111100110100101000110
+11000011111100110111100100111011001101011110011111101110100011110000101010010100110000101101011111101100011110000111101000010011
+11111000001110001001010011011101100010110011111111101010011101001010100111100000010001011100001011011011011010011101100100011111
+00001000001000000110000000100110110010000100110000100110011101100010111011110110011100001101011100110101110100100101100010001001
+00001111101110100010000100000010100110101110111001100100010010100110000100011010001110110110110011111001011001011101101001000110
+00000000101100111000001010011111001100011100011010001100110100101110100111010011001101010000001101110101111111001101000001001100
+01101111010101001001011010000100110011010101001011111000101101011000011011111000101010101111110010110010111001110000011111100011
+00100001011110110010011010011101000110010000100110100000011101111110100010010000010110000001010100110110110001011100110001110100
+10011110111111010000000100100110110100011001100001001001111100110101000110001011010011000101011010011110000001001010011110001101
+11110111111100001010011101111010000111101001101010011101000111110000100010001010110100001011011110000111010101000010101011110011
+01110111011001100111100110000000011000111110100111000010110111100010001011111110010111011001000010110000001100101001101010000111
+01100011000011101000001111011011010111001001010101101001110101111001101000101110001101000001010101011101101001111100010110000001
+10010001001101000100011010110111001000100100100111111101111000011100100001001111110001111101110101000001101110000110011101101011
+10001101110111001010000100110011011000101110000011100000001110101111100111111011110001100011100101111001100010100011111010001011
+00111110010000010100100010101011001111011010100010100010110010001001000101110010111011000110100100110011101000011000011001001111
+11001010001101100100110010001101100010110010110101100000000010110011000100101010101101110000011010011101011001111111010001000111
+11010010100011001001001110001001010000011110011000011100101010100011101000110101110000111100111111010001001011110100001001101100
+01011100010001111100011100111111100010100010001101110001101110010111000101101110000101110010000100000111001000000111000101000010
+11101100110100010010011111100010110100011100000010011101010000011011110110101110100010100111010011101100101111111000110001111010
+00010010110111000010110110111001010000111011111100111010110010010000011110110011110011100100011110100110011100000100110101010010
+11110110111000001000110011110110010001111101010110000000111000011000100100001100101010110111111010001101001110111100100011000110
+00000101100010010111111000001000100010001001100111011010111000001111001010101111111110000010110100001110101111101000111101011111
+00001111011011101111000010000100001101010110100111100010001101101111101001111101000011000000010000111000011000011010001000111100
+10110000001001100110110101000100110011100101100110101111011111101000001110100011000001100000010101111111000000000101111010010001
+10111110001111110000011010100101110110010010010110011011010110100110100010101100101010010100101011000110010100000010111010010000
+11010100010000001011111111110111101100111000001101000010101001110101101010001100111101001101101100100100011011111100101000001111
+01100011100100001110111010001111010011101011111110011001000000011001101001101111100111100100101100011011111100101111100111110100
+11011010101101001011100001010110000001101011101010010000110100101001101010001000011100100111011111101000101111101111000001111011
+11001011001101101011011010000101011111011001110010011111111011000110001000111010110111001000011100101010011011011111100001111000
+10100011010110101100100110101011010000100001101111110110101101111111111010010101010110010010110010110100100100010011101010101100
+00111110110111100010110111001000101101100010011110000101011111000011111010011110001001010010010111001000101000011111101000100000
+10100101101010010110110011001010010110000101001110100101011101111010111000110101100100110101001110010110100010010100111110011110
+10001011001001001000000001001000100101110110010000111101101001010100011101101000101010010110110010100110100010000010010111100011
+10111101110010100111101000100011100101000110011010011101011000111010110011000001111000001001001010001011111101110100001100110000
+11110111111100001110111001000101010111110110001010101001010111101111111101001100101000001100110101010110100001010011111100000010
+10000011011011011111010110001101011001011100101011000011001110000101101111110010110010101000110000001110001011101110000011110001
+01100010100100101000011101011000010110111000001010000100101101100011011110110000010010001000010011001011110111010001100010100100
+00001000111010000001101001001011001001011111111110000111000000010001110110001111110001010101010110010001100000111111010111110001
+00001010101001000100100101100010001110000100000101001100011010101111101101101001011000001101010110100001100100011101011111010100
+01101011101100101011110011111100101011101101001001011100010010010000111011110110101100001000111011000000110000001000101011000000
+00001100100111100000100111110010001000101001011001001101001010011000011010011111111010000100001010000011010010101010100111011110
+11100110111100110000110110001110100101011011101101010011001001000100010100000111000001001011100010111010000011101100110011100110
+00100111010100000100111001100000110010001111010101001001010100010000000110001110010101001011100101101100001100110001101011111101
+11100111011111101100100001000101001100001000010101100000101000111101010011101101000010011101111010001111101011001010000111011000
+01011101110101000011101010010100011110110101111011000101010110110111000100000111111000011010001010010001001010010101001101000100
+00101110000101100111011010100100100100100100011111101110001111101001100110011000000000001110010000101000000111110101111000100010
+10111101101010000001110100110001001111110000101111001111101010101101011010100101010000010011100110011100111001101101111100100011
+00101001001100110100001010001101010010011000110111110000001000100010101101111010000000111100100100011010000100111001110100000001
+01001111111011111011111100100100100000011010100111100000011001110101011011111000111010100011010100011100000001111011100000111101
+00000111101001100001101100110000000001101101100011101110000111101011101110100110011111010000110010111001011010010001101000011001
+01111101100010101100110011101011010101001101000110011111101010110000000111000110101001111111110100100001100010011111100010110100
+10111110111011010101101001100000001010110010011110110110001010011111101100110000000001100101001110011000111111000011110111011001
+00011111011011111001101100010100101010111010010110111001000110100010110111111110111100001101110110000000100010000011001100100100
+10110101101011100010010000111100110011110000010000010100011100001101000010000010101101010100001101001100001101110110001011001110
+11100100100101010010001100010101010001111110000000010101000111101100110110011000000110001111101110111101001101011111001100001111
+10111011101011000111101111111110011101001010101000000000011101101111101101111011101000001111101000001001110100111001110110110011
+11010101100100001010010001000101100111100001110111001001100001101011100101010010010110011111111011100100010101001110010011010110
+11000110001101101111111110100001100011010010100101101110110010011100001100100010100010101100011001011010101101000001001010011001
+10101001011000111010010101011110000011001101010010001101101010111000010100101111000111010011101011010111101001000010101111011011
+00110100110100110101001011100110111010000100011001111100100101000111010110010101101110010001100110011110001001100010011100110010
+10111011000000111001101011110011010010010100000110110000100010010010100100011000110001111011011101101100101011001100110111110001
+11011110011101010100110100011110101010001101000110000011110011111001100001101010001010111011000000000101001110001001111111011001
+10111111010101001100000101101100111101000010100010100100001001111010110100100101100011101100011010100000011010101001110100010111
+00010101110011101001110100011101000100110000111101110011001101110110010010111001011100111100010010001001100001011101100000010000
+10111000110100101010110111000000001101100001111001110100101100001111000100001001000000111011100000011100111000001000001111111110
+11010111100010001101001110111100011100000101110100010101110010011110010010100010100001100110000110010110000010110110111001101011
+10000101011110001001110000100111011101001101011110111100101101010010111111000110111000111111011010110100001110010110011111010011
+10010101011101000101001110110110111111100000110011111000000001011101001100011001111000111111100111100000001111110100011111110010
+00011100000001101100100000101100111000010001000011101100001010001110110111010101111100001001101001100011110011011010010000100001
+00001110011011101110011111101101100010100011101111110000111110111011001110100101101111011100101001101110000011100100000001011001
+11000101010000010000100100001111001100111011000100100101110100100000001101101001010110100001000011001000010000110011100000101111
+00110011110001111000100101111101110001100101001010000000101101110010110101000000000010110011000000111100110101010010100001110000
+01110001111110101000010011100011111111100111101101110001010100010110001100010101000010100010100001010000010100001000101110101100
+00000100011010110011010100001101001100100000100101010101001101001101011100011110101000001011101010001000111111000010111101110101
+11001001011111010110101100001000110011111101111101111001010101111010111111010011110100011010100010100010111000010001010011111101
+11100111111010001101001010100100110010111000011011011101011100110011010000000101111100000010011101001100100001010011010000101011
+10111010101100111001001110100101001101101110110111100111101000101110110011110100111110010001101010111010111010110000100001100001
+01011011101111001001000100010010101000101010101110000010101010000010100011010110010001001110010001101000010010000000100100111110
+01110011000010011100100100001001101011111001000001011001101110110000000011011010110000011001101000000110001001100011001011110010
+01110110100111001000011011100100101010111111001011110000001011001101100101100111001011100000011010010011100111100101011010010111
+01111010010100100011001110111111111101110011010110010111001101011111100001010001110100100100111111010111000101100010100000000101
+11001000111010011101101100110000010110000110111000111100010110001001010010111111111000000100100111101000100111011111001111001100
+11010101100101110001010101100101110111000011001111010101000010010110100111001001111101110010010000001101110001100000111000011100
+00010000010110101101010001000101010111101110011011111011111000100000000100100011110000101101111111000001000110111100100110101111
+11101111010111011010101010010100101100101100110101010110110011001011010101111111101101010100001001101000001100000101000010111111
+00100000111001110001101010001111110011110001011110100110010101100010011000100111101011001111001111111011110110011111001010100001
+01110111011101001010100111001001111110001011101101001010100011100111001101100111000110001000101010110001000111011001010111011000
+11000011011100000101010111001110100010110001000001010011000001100100011111000001000111001111110001011000100000000001111001010011
+10010111000110001100010111100100000001001100010100111001001110001100110110100111011101001110001001010011001010011001000000101101
+11111100100000010011101001110110010110111100010000101010100111101011101000011101001010111110001101000000100110110001111011010011
+10010100001101010011100100011110010000000000110100001001000001101010000011101100110001011101000010101001100110000011000001101001
+01110111100001101111011010110011001010001101010100000110111111110001111111010100101001001101001110101001011101010000010111101101
+10101001100111011111100001100111111111001110000111000011100011010110110101001101100111110110110000000000110001001111110110010100
+10000010000011000100111001111110100010110101110000011001110111011101110111100100111111000000110010010101000100100011001101111011
+11011010110011100100110000011110100100111001101101100000100010111010010010010111101011001111101011110101110011000011000010010110
+01001110110010000111101111001100111000010001011001010101001010000011110111000000101100110010000101101011011111011101110110111000
+11000001011001000110100111011111111011111011011010111110100010110000101111000111001010100101100000111011101011010101100111010100
+11101011001010100000111011001100010110101010111010100100101010110000100101010001110110000010101010000010011110110010000101001100
+01101101010101011101011000001010011000111111100000100001000011111011000000101110111000010110111010110110011010011010010110101101
+01111000000101101010111111001000101101111011001100011111100000111111101100000000000010110010011111110111000010011111010110100100
+00110001111100110000111111111100111110100100111110111110110110110000110000000010011001111101001011111111010110000110110100001001
+01111011111101001001100000001011010001000101101001101110000101011011010100001000010001100110111000000010011101101010101010001110
+01101100011000000011000111010111010001110010000110110111010010000101101011000010010001100010001101110010111001101000010010110001
+10110000010101111001011001111101001000001101111010100011101110000011110101110000001101000101011000000011000101100011010011100010
+01110100101100000110010000001110110100001100001001010100001101010010111101110000000100001110111010100011101000011011011110100101
+11001111010101100011111001100111101010100101100010100000011110111100101011111111011010000101010111100100110000001110110111111101
+01001101100100000010010010111000111110001001000011100011101111111000100111101101001111011010100111110110100011111100101111000100
+00110100111010010011010001101000000110011011010001101100101110110000010100100000000011011011111101101010000000000110111000011101
+10101101110011001100110101101011101010000111010100010110010010101110000110110001111110100110111011001101110010111000100100011110
+10111100101001111100000001101110100001111011111111001111101111110001010010111100011010011010101111001011011000010110111011110000
+10101111100010111001101100101101001110010001101111110100000100111101001111000000001100010110010010100001011000010001001010100111
+10100111101011000101010001001100101011111001000100111100110110001111010100101100000110010011010110000010010101010010001000111000
+00010110011110001011101111100000101001100111110111100111001110111010001110110000101101010111100010010100111011001000100110001100
diff --git a/einreichung/Bonusaufgabe/Beispieleingaben/stapel4.txt b/einreichung/Bonusaufgabe/Beispieleingaben/stapel4.txt
new file mode 100644
index 0000000..f226e06
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispieleingaben/stapel4.txt
@@ -0,0 +1,182 @@
+181 10 128
+11100010000000111101001111111001001100111011101001000111001111001111000010000101100001000011000011001011101101010000101111100001
+11110101101101000011110111100111101111100111110001110011001111100111011110100001001111111111000011100101100101000010110100111000
+00111011001010001000000101110111001101111000111101000101111110000011001111000110011101000000100101111011111100100000011001011011
+00111100110110011110101000000010110101110000111110010110100010100010001111100001111000001110101101001100010100000101010011001011
+00101100001110100100110001101010101010100001011010000000000000001111010011001100011100111100101010101011000110001100010111010011
+00100010101111011100100001111010000100101101110110100100011101110100000001011010101110101110001010110101101101101101101011001011
+10100000001110110100110111011010000110010101110011000111000111011011101011000100001100100010001110100111010001010010101100001010
+01001000101000101100100100110000001100111000001101111110011001011010101000111001001000001101110100100101101111001110011000011011
+11100110100001011100000110011111100111010101111110010110111100001110100110101100010110100101111010001011000010010010000110000001
+11000000001010010000011001100010010000111011001111100011110010000101111001000110100100101111001010101111100001111100010110100101
+00010000011111000110001011011001100101001000110011110001101010100001110100101010111010001000010111101101000001100110110110111100
+01110110111011100111100100011100110111010000010111110100100011000111110101110111010100100011011000111100101001111001111110001010
+10010101111001101100010101111001001000111100111011000000101001111001001001001110010010011100011110100000001001001000000010010111
+10110101110100111011001100001101110011100110100011111100000111101010011111001001111111011001001111011111111100001000000101000011
+01100000010011000011110111101101111010100000001001111100010100100101110001111000010011010000100100100001101100111111000011111101
+10111000001110000111111010010111011011110101011101101101100001000111100000101111110110001000101110000011000001100010011100010000
+10100011110011111001111101110101111101101110000011110011101000011100010111000100110001111001000001000000011101111010010111111111
+10111100110100111110100010001111101101000011011110101001110011010110010101100000011101001000011010001001111011101110011000101011
+11000001101001010101111000110101111101110100000011111010000001000100110001000000100111001010001100011110110101110000001100101011
+11000001110011101101010111100010000000001000010111000101110000101110111001111000001000001010000010011010000111111110100000010001
+01100010111100010100001100100110100101110110010011010010001100010000100101001011011010010100111111010101000100111001110111101111
+00111110010110001110001100000010110101101111011000110000000000111101010000111100001110111111101001011100001101100101110111111010
+01000000101101101000000101100000000110000011101000001101000111111111001101001001100101000111110111101011001101011110100100100100
+00101100000111101111000010000001011011111110000110011111111110001111000000101111101100010010000010100001010111110110000101001010
+11001111001110001101001001011000010010100100000111011111001101010011110100111001000111100101100010001011100010010100011010100010
+10001111000111001110011100111111000110110011100110101011000111111000010101110101100011010010011000101001101001100110101011100010
+11001010010000010101100011101100010100101100101011001110110101010111101001100010000101001010111110111100011000111011101010111101
+10010001101010111010110010001000111111000001001001011010111110111100111111001000110000110101111101010110101111101011111100001010
+10011011001101100110110001001011001100010001010000010011011111100011101001000111000010001110111011001000000111011001110001110000
+01000111000100000100000010110100001000100101011101000110010101000100001000001001001001000101110101000111110101100011011010000001
+11001100011011111010000110011011011100100101011101000001111000011010000010001111100001010110000111100110111000010110010000010000
+00101110000011000110000011100000101110110111110110011111111010110110001101101001111110000000110011111011010001110111100110101011
+10101101111111000010001010110000100000111001111111001000001001010100011101011110011000100001010100011001010101011010000111100111
+00101111110111111011011001101110011001011000100010011010100111110000000011001111001011010001011100111100111101000011111111000001
+01010110011000110001001000001101101010110101011000010110101110101000110101111001110010110100101100110110000011000111010010111000
+01010001010101000110010100100001111000111011100100001001101001100011111000101010001001011000101100101010101100101000010000111111
+11001110011110000100000001010010111011100101110101011110110000010001110100010010110100000010000101101010000000001110000011001010
+00101001110000001110010110010111111001100111111111011000111100010001011100001001111111000000110110111110110001100111011101111101
+01011010111011010011010010111011111001111111110101000011110110000100010111111110110000001000010011000001101001010101101001100110
+10110010110010011110101010001010100101000001101100101000111111011101111100110111111100101111010111110010111010010010110011001110
+11111001001111110001011101100010001011000011001111001100011000010110000010110011100111010110010100101110000010010110010101111110
+01011010001001110100100010101010010100000000110011110100100001101110010010000010101110010100110101110000100010011001000010001000
+01011110100111010000000100110000101110101111010111000000011111111100000111010110011000010100110010001000111011010010001101011111
+11110001100110100011111000000111100111010110000111110011110110000110011100011010010011100011111010101111001000000010111111101011
+11101100111100000111100001101011010000011100101111000101010101011100100011011001010100101111111110001111110010100100110101010001
+10111000000110100100110111000011011110001101110101101001111111010110011110000001110011100110101110101010110111010101111110011100
+11011001001100101101110001110001110010101101111000001011010010010011010000101110100110010110101110001101101000110011101010000001
+00101101100010111101001110101110011010110011000000000101111110101101011101110000011001100011110001100100111010111110011011000011
+11111011111111111101000000111001000110111111001100110010101110111000111100101000010010001100111110110000100011100000111110001101
+01010001101001001010010000111100110011100101000011001101111111110010001011001010100101000101110011000100000111010101110101101101
+00111001110110010100110101000110000001001011110000001100110110011100101011000001011011110110000101110100010010000100000001010100
+11010001010011010001001100110101101011010011100011011011010111100110000000111010001110111011010110110110010001110111011111100010
+11111010101100111010011101010001001011110011001000000001110001001011100110001111010010011001101010110011100101100101101111011110
+01000011010011011010111101000111111110111010001100111101111111101101110110111101011111101010001110101110010001101001011011111001
+11010010000110100010010010101000101011011101011100000011000101101010001001101100010100110001110110001111010010010101011101011001
+01100001010100111111011011011100101110101000010111111010101100010011011110111100101110111011000000100010111110100010100010101000
+00010011110000110001010100100111000011110001111010000000101000000001110011101110110011000001111101010111010101011010110001110111
+10110110010011100110110010011110100000100110011100001011101001110011111101110011100101110011011100110011110011010101011001011101
+01000111001110110000001100110011000011111000010010000011001000010100010011011110011010100011101101000000100110000001100011010101
+10111011000000101111011001001001111000010111000111101110010010011001011101110010111110101000011111111010001011110011001011100000
+10110001101110110011010111010000111101100100100110111111001101010010111100001111011100011100110000001001010111110111011010010010
+11011011011011111010010100010110101110000011100100001001010101000111100111000000110111000101010001011110000100110000111000100001
+00110011000111010001111110000111011000011000010011100110010111111000011100000011100110011010100001111110010111010001001001100001
+01001111101010001110101000000110000000111000110100000001010101000110100110110101111111011100000010110001011001000100011000000000
+01010001011111100110001110101001110001110111001111001100010101000011011110010110100110010100011000011111001001110000010000000000
+00110011110011110011001000110100011010010011011000000111010000100011000100100000001000110001000101000100000111101101000001011110
+10101001000100111011111010010111110100100010110011101000111100011111110110000011101010010101111000100001100000001011000100010001
+01001010001100000101011111011000000010111000110101100001111010001011010111101110011101100110101001010001010010101100100110101110
+00110011110001001001100101110001011111101000110101100100001011001011100100110001111101101110101100010111100101000000011011010000
+11101110011010101101001101011000000100011100100110000011011111111110001001000000000101100111111011110001011010000011010111010000
+01000100000010111010111100100011001111010000101001111000000001101101101011111101001111010000110111010000011100111110110110101111
+10001100010110100101111100000011011011001000011111100101001111010000011000101100001000101010110010111000010110001101011111101100
+11100110100110011011001000001001110111100000000110100001100111001001101100111001111000011000111100100000100100100100000001010000
+00011011010111001011000101011001000010011100111011100011101111110011100000100010110110001000000001110011111010011000010100111100
+10001000101011010101001111110111010100001000001111111001100000010010001001000001101110101111010010001010001010111110111101101011
+11111011101101100101010010101000010001011101010000110110011100000110111101110001110101101011101011000110111111011010111111111000
+00000111011010010101101110001111101001110010100011000001000001101110101111101001000100000001111011111001101011010000100011011110
+11110110001000001111101010001100010110101011010110111100101110010100001011110111100111110001000101110010011100111000001100111100
+00110111110011101111111101111011110101010111010010010000110000111010000001001100110111010100111100111100001100111100101110111101
+00001101001100011000010010111011110000111101100001110100100110111011001101100100100000001001001111101011110001010011010100001000
+01011000111100010011101010111000010011110110011010111000111010111010110010101011010100101111001101101001100100010000111100010111
+11001011011111000110100100111111101111101110110111101111100101010100001010010101001110010101010000111101101001010110000000110011
+01101111000100101101011001110111110100100101000110001101000000000101010000010010000110010010101001000100111011000011000100001000
+00110110010111001001001111001111101010011100000100000001100010101000111001000100111000100110111111100100010010100100111011110100
+01010111010011000100101101010111000001100011111001011001110000000011111100111011010011111100010001111101010001101011111010100101
+10111001111101010100111000011000110010110000100000001001000010111101111010111111110011110001111100101010001000001001100100111101
+00111100011110000010101100000101001110100100100011010100000011001000110100100001011010000001111011111110010110011101001010001010
+00100000010101101011111110100001010011101011000000000000110010011101011001011011101100100010111000011111000010011110110000100110
+01101011010111011001111101010100101101100001101101000100011101001001011111010000000011011000000100110000111101101010001110001011
+11001110100011101100010000000101001100011011110000110010001010110010001101110110011010011100101101000110110000010011001001101110
+00110000111011100101111011010110001111010110011011010001101101101111001101000100001101010001001111000110101110101001111011011001
+00101100001110001110011110000100110000000000111011011001110100010100001010000110110010000111110011000100111101001100100010010000
+00001010010001010001111011000011100011101000110110001000011100010101001001100101011001100101001100110110100111101011111010000100
+10011100011010011100111100010011000110011001010010011100010100110111110000001011111100101101000100111110001001000011001110011100
+10000011000110110101001010110100100000001110001110000011001000110101110111011010101001011001001001100100101010111001100011000000
+01000011001001101011001111011101111010010110111010111110110111111001000100010110101100101111110000011000100111011000001101000111
+10010100100101110010110011010111110111010110000111011000001100111110110111100010110111111010110101000111010000111111011001111010
+00100011011001000101111110111011101101001010100101111000101100100110111010000100011011100111101101010011110101100100011110010001
+01110110001101001011011100001101111001011010010111001101010101001000001100000100001100000101000010100100010111111101111010111011
+10110101010101000001101110010100001010111101101111110111100010011000001000001101110010110111110011110111000111000111101110100100
+11110100111001011110110010011011000110101001101011010010000101001110110011100101100110110110110101101001001010000111111100011101
+10100001110110001010110110000001110110000111101010001110111001011111010001000100001001011111100111111011011100111100111001010000
+11010000000110001100000101010001011011000011110000011001101001001101010001111000001101010000011011110111011101101110000111100111
+00101000110110000010001000101111111001001101000011100010110100000000110110100001011011101001000010100010011010111011001001010111
+00110100000111111110110110010001110011111100000000101010110010111111101110000110001110101011100111001000000110010100011111001101
+01011111101001110010100101110011100000010100111011100101101111110100001010101110011100100000101011001111100111111111010110101100
+10111001000001101000111011000100000101111110100100001000001100001101001001001100011000011000010111011100100111010111100111110100
+11110110100111100000011100101110000001001100011011001111010000101101101011101001001010101110101111111100110101011000111100011111
+00100010010001100101011001101110001100101000000001011011001010001001010001011100100000011001001001010000011010101111100110000101
+11110010001010011000000010010100011000000110111000010011111101000101100001100011000101010010000011001010111011101011110101110110
+00000011010100100100001011111111000011101101010001000010111011001011010000101100000000010000010111000001110111010001011111000000
+11001001011001001010011100111010110000100110001101001001011000001010011100110111110100101100010101001111100001011001101110010111
+11100011000111001110000001100001100111000010011101010000011010001110011011110010011100101101111100111101000101111000101011011110
+01110001011001101010100011010110110001011011101011000001001000111011111001111111001101001111110000010110010111010100111000010001
+01011100010010011101100000101111011000001110011001100101011101101111111111101011100101100110011001111001110000001101001011000000
+11001000110101000000001111110001101011111111100000001001000101101011100111110111000110101011000000111001111101100000110110001010
+10000001000101110011010100011000110100110100111100100010001000011011000001010111100110111011101110001011110000100100001110000101
+10000111100101110100110110011100100101011010111110111111000010110110101010011101010100001001111100000010011101100101100011001000
+01110011001010100111101101011101101110100100001100110010011110001000110000100100111001011011000011010100100110100111100100100111
+01101010000111000011001100100000001010010101111001110011110011000000011110001111100010001101100111100010110000110100010011100011
+11111111101001110001110101100100110110100001001111000011100100011101010010000001000110110111101001000011100000000001000011000110
+10000110111000011111010000011101011010111011111110111001110011001000100011010100111111000010100100100110010101000100110000010111
+11100000110110110000101111110110100101010011010011110001001100000101110011000001001101001001000011010111101000100101110000100110
+10010110111010110111010110110010100100001110100001011100100011100000110011110110011100010110011001100000101100001000010110000110
+00001010101110001110101001100110111010001110111101010000001001100111101100001101110100111000001001010101001111010011010000101001
+11111010001100011111100100001100010110100011110100010001001011100000101111111001110101010111111010011011000010000100101100111111
+01001011001100010101100011100111001100110111101010001000100101110000100100000000100111000001111110110001010010011110011101001011
+10111110100110101001100010010000101011011001101101001110001011011110011010111011101110011011111011110001011101001100111000110000
+01000001110000110011010000110101111010101000110101100110011101000001000100111100011100111011010000010011011010001010001000110001
+01110110100001010000111110001111011111011111000111000100000100111000001011000100000101001001101110011101110010001100011000010000
+01110000010000010101111100110010101011010110100001110011011001101011000011101000010111000001011111111010111000111101001110110100
+00011011101101000100001111100011010000110110010100110010101001101001110111110101110100000001011010000000001111001010011101110011
+01110110010011101101000110111110100000101111101010111001110001000100000011100101101110010111111100001111010100000000100110010001
+00100110110010110110010111101010001001101111110101101000101110010111101000011101010100111011100111111100001111001111101101010010
+00110011100011001100100011101100000100101011111110001001111110100010010001100110101100000000110001010100011110011111011000010110
+00100110111111000110100101110101111101011010110000000110010110000001001100001010111010110101101110011110000101010100111000010010
+01110101101101000011010011001111111100101011000100101100011001100000011010011000101100110110100011101001100000111101111011111001
+11101100110111111000100001101000101110000110110000011000101011111110000010110111001010010101101100000000100100110001001110010000
+00111111111011100101011100001110010111111100011101100110100011101011001011001011110101100110001001010100101100001100011001100100
+11101000001111001000110011110110110010110011000010110010111011011001101111101011001010110110101001001101111001010101101110011110
+11011000110101000011100111001001100000101011101101110100110011000011001111111001010101100100000000011010000111000101010000110101
+10110011000110001010111000101100111010001110011010001100111011000001110100110010011000110100011000110111000101011100010000110000
+00100011001111101110000110001111101111110100100000010110101100000110101110001001110111001101111100011110001000011000111101011110
+00000011110111111111110000001010011011011101010110001110111101011111110111011000111100001100000100010100100000011010011111101111
+00001110011010010001101100000010000110110011110111010111110110001101011010100011110000111010110001111101011010011101100110011110
+11011011010111001001100000101111001111101000111000111110101101000011011100111000000111111000010011010100111010110110010111010001
+11000101110001001000001011101000100110011001111011101001011010110100111000100001000100000011000010101111001001101101010111011101
+00100111000100110011110110010101100011011110010101111001101100110101111011011111001110001011111101100110110010011001010111111111
+00110000011000001011010110110100101000000110111101111100001111000111111001110000010111110000101010011011000101111110101000010011
+10101011101010111000001110100011100111010010101010111001010100110000101110111000000011011100100000111111100100001110011101000100
+11010111110111001111111101000111011011000110111110110111001111100111110000110001011011110111011110010011111000000011101101001000
+01100000101011111110101100110001000001111111011101101011010001000001000000110000111001000110000110010011011001111001001010001011
+11011010000110001110010011111000011111100011010100101111110000101010011010001110011000000101011111010111011001011110100100111010
+11111110100000000101110111011010100001001111100110000101000000010110000100110101100011100000100001100001001110110101110011100101
+10101010000011111111001111011110001000100111010000010010111101000001010001100010110011110111111010111000000011000110111110000110
+11101000110010010001101101111110110000001011100110011011001000100010110101001011000000011010111010100000011010100011000000010001
+00000011011111000100110100110101000111010101110101001000010011010110010010110011010011101001111101111000000010100111000100010100
+11101110110000011000110001001011011110000001111101111101111100011000000011010011010011111011001011000001111001011001010111010101
+00011001001101101101001000001101111001001100110000110110010010001011001000100111000111110110110010101100001001100011011001100101
+10001100001011001101001011000110110101001101000010000101101010101100110110111111010110011001001101100100001011110000111010000111
+11110010110001100010100110001001110001111010011100100011010100101001000100111100101000001000011101010011101000111001000000001111
+10100100110111101100010100100000100111110011000111001101110101101100011000010010111011011110100010111001101110101100111000010010
+11010111110011101000101010101110000110100001100110110100000011110101111001100010101101011000000001111001101001011110000000110110
+11110100010000011111101111000111111001011111010001111100111110100001110010001010011010001001011011100100011000101010110110000001
+10001011010000000110011101011000101100001101100011100100001011010100100011000101110110010111100111100000110010111001010000110010
+01111101001101001111111100100011010110111100101110100011011011111100111011000011000101000011010101110010110110000110011010110001
+10101000111101110111000000101011011001000011011110101010101000010001000110001110000000101111110110001100011101000101101110010100
+10111111110100110111011010001010110001110111100010111001111110110010100100101100010011110001000101010101100011101011100000101100
+00011000100011110000100010111001000001111101110011111010000000111001100000001001101100000011111100100001001100011001010111010100
+11101110100110100010000000001100011100100010001101010001001111010101010101001001110011001111011000010100101110011011110100000000
+10000100010101111001011100000101001110110110100110100100011100110111010111010010011010000100011101000100001110011001011111110001
+01100000100010100111100111010011101011000001010110001111000001111110110000011100100100001010101001111101000010101101100000011001
+01100000011100100010110001000010100001101111011000000010110011110001100101001110110101010000101101101000100010111111001101100100
+01010101001001001000001000110101011110011101101111011111000110100110111000110110111111001101011110100100001101011010011110010000
+10000100110010011111000000100000000011100010100010110101011101110100010111011101110101000110110000111010011011110101010110011111
+10110001101110101000110001110111010001001001110100000010110010001010100011100111000001011000010001111001110001001101001100100111
+10101000001001101000001101000010000000011000011100001101001011111010101001111011011101100001100010010101111111111101001000001100
+10010110111011100000000001010110101111010001101110110110011111111110011010011110101100000110101110001001000110100011110001110111
+01110111100011101111011011101110001011011011100010010101111111111101111010000101010100001101010011100101010010111001001101010011
+10110011111011000001010101000101010001011101011001111011110101000010010010000001001010111101110110010000101101101010111111101000
+10001110010010011100001110110000011110111111110011101110000101011111110001001011010100100000101111110000101001101110110001100110
diff --git a/einreichung/Bonusaufgabe/Beispieleingaben/stapel5.txt b/einreichung/Bonusaufgabe/Beispieleingaben/stapel5.txt
new file mode 100644
index 0000000..26a5aa4
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispieleingaben/stapel5.txt
@@ -0,0 +1,201 @@
+200 4 64
+1000101000111000010111101111011100111001000001010101110000011000
+0101111001001000010110101000110111001001011111101011000111111111
+0100101111111000001101110111101010110000010111000001001100010110
+0001001100000000000110111100111010010110101101101110100101110100
+1001100110110111101111011100011101011011101100110010111010000010
+1111101000001010001001110011101000010011011111100110100101101101
+1001011110100000010010100110011100001110001110010110000110010011
+0000100000000111010001110010110000111000011110100000111101000010
+1011011110001011011010101001000100100000101011110100111100101110
+1001010000000101000100101000111110111100010100110000110011011101
+0111110101001111001001110011011000001110101000010111010001111101
+0011000110010011000010101100101110110110000001100010101010011110
+1001000110000010001100011101110010110100001101101111110001100011
+1011101101111101110101101001110110111011011110100100000010101101
+0110110000001011010100000001100001111011000001011101111110101011
+0110000001001100101001110101001011001110010011000101000111111100
+1101101000011001111110110110010100110001111000011011010111000101
+0000001001101000111000101011110111110011001101010011110101111010
+0011000000000110001010010000001101000101001111100000000010110010
+1010000110101101011101010101001010000111001010000101001011001110
+0101010010010101001001001111011010010111111111101001011010111100
+1011001001000000101100001111101100010110100001110101011001101100
+0101010100100001010111100010100100011000000010100110101101000000
+1111000111010101010011100000001110011010101101111010101011011010
+1111011000110110001110100011111000101010011001011111101101000011
+0101100110110100010010110010101001100110111111001001000100101010
+1000000110000110000101001101001100001110011110011010101010010111
+1001100111001000110110011100101011000111111011010101110001101111
+1100001011101010011110111000011001110100111101001000010001011010
+1000101110001011111111001010100001100101000111010101000111001100
+1110000110111100000000000010000111110010100100100001101110001000
+1000101001011100101110010010011100001011010011100010110010111001
+0000011011010101000001000101100010111010110100111010110001111100
+0100110011110001111011111011011011110100101001110001010011111101
+0001101110110110010101000111001100001100000110100010111011001000
+1000000101001111101011100011001111011000000011100100100000010110
+1000110011111000110110110101001000100110001010101000100000001100
+0000000101111111000100011001011001110011100101111101000100111101
+0111000100101111100011011010000010110110100011101111110111000110
+0011110101001011001101111000001110010111001111000111110010110011
+1110111010011011001100110000100001110000101000001101010000011000
+1001011001000000101001110011111111111111001101110010011001010011
+0101101111101111110001110110101100001100101001111000111100100101
+0110011111111111111011001100111110000000010100110010001011001010
+0100010000010100111110011010101001100101000111101111100011110011
+0100000010011100111100101011100100000000000100000101111110010101
+1001010010111011000000001100010101010011111011000101011100010001
+1101000010110110010101000000101100101011100010001011101101101101
+1100101001101110010011001001101001110011011010010101000111000111
+1111010001001001010110100111001110100010101010101101010010001000
+1001011010101101101110100011001011100000101110001010101100100101
+1011011100101101100000011100001000111100101111100111001000000001
+0111001000000010110101100001001001100101111011000001101111000100
+1110010011111101110001111001010111101001100100111011100000101001
+0000001111001001001011011011101001011000000000001101000100001010
+0111011111000000111110111100011101100011011100101010110100100010
+1000100111000110101010101110001101100101100111101100100111011100
+1010100100111110011010101101101111100100001111111000001110010110
+0101100001110001100110000110110011100010110111010100010100101001
+1010101111111101100111010110000000111110100110000110101101110100
+1111111101110001100011100110000111000011010011111110110001101011
+1100010101010010001001110111111001101111010111010100010111110001
+1011101011101100111001000101101111111101111000011010111001101100
+1110010100000100011100011101011001001110000110010100001000111100
+1000001111001010100010011011000110010011110111010010000001000001
+1000011010011111000100011011011110100110001110000000011110100101
+1101001000111001001101000010111001100000111110011001110111100010
+0100001011111001000010101001110000000000010101110110110110001000
+0010100111000010100000100000011101000010110110001111100111100111
+1010111111000010010100110101000101101011110101101011010110100111
+1000010011101010001111100100110110011011100101010100010000001001
+1010011111010001011110110010001110001100011001001010010000001110
+1001000111001011110000011011010000110111010101000101111101100100
+0100100010011011101101000000100011010001011001011001011010001100
+0100100010011000001100001100000101011111011111110011110111001100
+0001110101111111011001000011110100111010010111101000110101100110
+1111110110111010011100010111100000110101100001111011011010000101
+1101010001001101000111111110000110100010100111000100001001011011
+0000111011110010011111111111101111101011111101011001011010000101
+0100000000101100010110101110000111111111001011110100010010100000
+1100011011001100011011100110010011101110111011001010100011010111
+1110001001000010000000010110111101110011110000111111101001010001
+0100101000011001000010110000000010100101110101111111100110110110
+1010000010000101100101010100001001101000000110110101011001101010
+1100111000011100001001011011011011001101001100000010100110000011
+0010000011001011101010100111011111010010110011010110001110000111
+1100101110101100011000000110011101110001000010010110001101000010
+0101101011110010000000101011011001010011111000100110001000111011
+0111101000101000110011000111110100010111101010011100100110000110
+0111100000011011110011110101000110100011100110000100011011010100
+1111110001110111000011011010001110111111010010100110001011101111
+1100001011011010000101100001011000000110110011111011110011011010
+0010011011011011010110111001011101111111010010101100110001000000
+0001011011000001101101001001100001111000010111100001100010110010
+1111101110000101100101100100111101111111000011101000110101110111
+1001100111101110010010011101011101000101011001101011100100001001
+0100011000101100100100011101010001010111001000110100001111100010
+1010011001100011000110110011110011100010010000110100101111110011
+0100011111001011000000001011011110010011101011011101010001011110
+1001000000011110111111010010111101100100101001011101001001001001
+1000110110110011000001000101100001011101100111101000100100100000
+0111111010100000101011101011001010110000101110001100110001001001
+0111000010101010001100001111000010010110011001000111101011001100
+0000001101100010111110110110101110110100001101011011000101010010
+1000101001110000100110111110001011101110110011100010000100101100
+1110111111000001111100000010110001100100000010100111010100111001
+1010111111110000100001011001110111010110111000101001011011011010
+0001100001001100101100111110000111100001111111100011110111000101
+0110000111011101111011010001101100111110000110001011110000100110
+1011111000000001110000001001011011001010010111001010101111111000
+1000000111101011111010111000000111110001111001000001110111111010
+1001000011000010011111010011000010110111100010010000001000100011
+1110010010001110000101011011111011110101100101111111000001111010
+0110111010010000111001000110001011100100100111011000010001000000
+0111101101101101111011001100001110000100111001000100000101010010
+1100111000011000010110101101011001100000001101101000101011011100
+1101011111011000001000011001111001000111101110000001110110101000
+1100000110110101000100101100100000100100000010100110001010000111
+1100000100001110000000100100111111011001010100111100101001001010
+0101101111110110101101101101101100000010001011001101111001111000
+0010011000101101110111111001110001010010100101101010011001001000
+1100101111010010111000001111011000110000110011111011001111001011
+0001011100011001100010011100011010110101000101001100110010111011
+0110010100001001100100001111111101100000110101010111000010010101
+1001111101100100000111101001010000111101110000011111001011100101
+0101110000011010100110110000100010111111100001000011110001101010
+0110000101001011000011011010101000000110101000000000011111010101
+0001110100011010000110101000001011001011010000001110111101010111
+0001101011000000111110010001010101000101111000000001101010100110
+1010110101001001010110011101111000110101001000111110011010011011
+0000011100010000000000010001001110111111001010001110111100000111
+1100010011101001010011010000100100110010101111100101111010101100
+0000101101111101011011000011110101101011111100100100011111100011
+0000011011101010100000111101010000001111000010010010010111000110
+1100011100101001111111001010011111001001000111101111100111001100
+0111100000110011100010001111001111100001101100110101100111000011
+0011110010010100000111110111000111110011010001011011011110000010
+1010001111011101110111010011100000110101000111001101110000100001
+1010000101010100110111100010010000001010101101110101110010100011
+1101011100110000110001011000101100000111101001101010010101110000
+1000101000100011111111110111111010100010101010010101011110101000
+0011011011100000110111001011100110111011110010101111110101010100
+0010100011110110001010000101100110101000101100100000110001100110
+0111011001100111110110101000001101010100110011100100111010101001
+1011100101111001110011001011011001101100111111111100010111001110
+1101010000110011101110000100000100110000011011001001000000011001
+0100000011000001111111110100001110011010100010000000110110000111
+0111011100111000111001001011000110000010010101011100111011111101
+0001011110111111000000000001001110010110101101010011100100010111
+1000110101011111100011100100100100011011000100001011011011101001
+1100100101111100000110111000000010010010101110100111100000001100
+0010011010010000001011111011000110010010011001010000000001100110
+0111011011100011011101101011100110111011100100010001010001101101
+1001101011000100111111001110011010001001000000101000011101000110
+0010100110010110011111101101011001110010100111110101000010010110
+0011100110001101011110101100010101001110110110011101011101111001
+0010110011001011011100100111011001000101000110100110110111001001
+1101001110000100100011110011010000111011010101000110001100110100
+0101010011000000100011100000010100011110000101101001101110111100
+0000001010101000000010000110101110000011010110111110000111100111
+0000010100101111000101001100111011110110000011000010101101101000
+1000010001100111010000010011011011100100111101000111001001101111
+0110001001000111010100101111100010101000100110000110001111110101
+1010111011001100100110001100110001011101001000000011011111100100
+0111110100000000001011001110101000011000011110010010110110111110
+1110000000010101111010000011111110011101010010011110101011100101
+0110000001110000101100111100101110100001100101100111010001111110
+0101111111000111000000101111100010111010110101000100000011001000
+0000000000011110110111101010110100100101101001100110001011110011
+0010100100100010001101110110100100111001101111001110000101101001
+1001100111000110100111000100001100111000101010011001010110000111
+0101100111010100000111011001011110110101011001011110100111100110
+1000001011111000110011110110111000000100011110011011001010110011
+0110000111111011100101111111001001110001000111000011110010011100
+1001111101111011110111010100110011011011010111010011100001100011
+1111001011011000111010110101001111111100111100010111011111011100
+0010100101001100111111100000110110000001100011111101111100101001
+1110010000100101001110110110000010010010011011010101011000110001
+1111110000000010001100100001011010110101010101000001010000001011
+1101000010100111000011011100001110010001100011100100111111100101
+1001010011100001010000010001101011110011000110100111101011001000
+0011101000011101101010101010101110000110010110110110001101011111
+1000001111111000010001101101101010001111110111010100101000010011
+0010000100011100001101011111101011010010110110101111010100110000
+0100010001011001111010010110110001110010100000100010001111011110
+1010000110101100101110111001100011011110111111010111000101111110
+0111000001110101000011100100010111111010011111000111100111001010
+1110110101001010100011000101100100111010010000100100011011001010
+0100010011000100000000010010001011001011001110000011101010010000
+0100110000011100011001101000000101001100100000101011111010001110
+0000011101101010110000111110100010100000010000110111101111110011
+1010110101111010101000100001100111000011000101000000110101001100
+0010011101010101110100001110111010100010010100111001010001100000
+0011101100000110111000000101100010010111100111001001101001011010
+1100001001010110100111100000111100101100110001111101101010100011
+0100011010001001100111011100100100110010000001010000010001100100
+0010011001100010111001101001011010111010110010111111101011101001
+1001011100111101001101001010110011001100010011100110110001100111
+0001100011111001101011111110110100000011110101011111010000000111
+1110011111001100110011110001010111101011001011001110100010001111
diff --git a/einreichung/Bonusaufgabe/Beispieleingaben/wahre_freunde.txt b/einreichung/Bonusaufgabe/Beispieleingaben/wahre_freunde.txt
new file mode 100644
index 0000000..b43e870
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Beispieleingaben/wahre_freunde.txt
@@ -0,0 +1,10 @@
+9 8 32
+00010001110100110001111101100100
+00100000111100111110111101111100
+00100011100111011010111011100011
+00110100001010100100001111010010
+00110110000110101101011111111010
+11000111111010110100000101110100
+11010011010110110101001101010111
+11110011101011001001000010111110
+11110111100100010100100001001110
diff --git a/einreichung/Bonusaufgabe/Quelltext/Cargo.lock b/einreichung/Bonusaufgabe/Quelltext/Cargo.lock
new file mode 100644
index 0000000..d5f5406
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Quelltext/Cargo.lock
@@ -0,0 +1,115 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "bitvec"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1489fcb93a5bb47da0462ca93ad252ad6af2145cce58d10d46a83931ba9f016b"
+dependencies = [
+ "funty",
+ "radium",
+ "tap",
+ "wyz",
+]
+
+[[package]]
+name = "bonusaufgabe"
+version = "0.1.0"
+dependencies = [
+ "bitvec",
+ "rand",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "funty"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
+
+[[package]]
+name = "getrandom"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "wasi",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.121"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "efaa7b300f3b5fe8eb6bf21ce3895e1751d9665086af2d64b42f19701015ff4f"
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
+
+[[package]]
+name = "radium"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
+
+[[package]]
+name = "rand"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
+dependencies = [
+ "libc",
+ "rand_chacha",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
+dependencies = [
+ "getrandom",
+]
+
+[[package]]
+name = "tap"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
+
+[[package]]
+name = "wasi"
+version = "0.10.2+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
+
+[[package]]
+name = "wyz"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "30b31594f29d27036c383b53b59ed3476874d518f0efb151b27a4c275141390e"
+dependencies = [
+ "tap",
+]
diff --git a/einreichung/Bonusaufgabe/Quelltext/Cargo.toml b/einreichung/Bonusaufgabe/Quelltext/Cargo.toml
new file mode 100644
index 0000000..cc415c7
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Quelltext/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "bonusaufgabe"
+version = "0.1.0"
+edition = "2021"
+
+[dependencies]
+bitvec = "1.0.0"
+rand = "0.8.5"
diff --git a/einreichung/Bonusaufgabe/Quelltext/src/main.rs b/einreichung/Bonusaufgabe/Quelltext/src/main.rs
new file mode 100644
index 0000000..2ec4756
--- /dev/null
+++ b/einreichung/Bonusaufgabe/Quelltext/src/main.rs
@@ -0,0 +1,404 @@
+use bitvec::prelude::*;
+use rand::seq::SliceRandom;
+use std::env;
+use std::fmt;
+use std::fs;
+use std::process;
+use std::time;
+
+type Card = BitVec;
+
+// Typ, der eine zu lösende Aufgabe beschreibt.
+struct Task {
+    cards: Vec<Card>,
+    num_pass_cards: usize,
+}
+
+// Die Lösung enthält die von Zara stammenden echten Karten.
+struct Solution {
+    real_cards: Vec<Card>,
+    // Der Anschaulichkeit halber werden ein paar weitere Randinformationen
+    // mit ausgegeben.
+    num_cards: usize,
+    num_real_cards: usize,
+    bits_per_card: usize,
+    num_free_vars: usize,
+    p: usize,
+}
+
+// `solve_task` löst eine gegebene Aufgabe und beinhaltet den
+// eigentlichen Algorithmus.
+fn solve_task(task: &Task) -> Solution {
+    // `num_real_cards` Karten im Stapel stammen von Zara Zackig, nämlich
+    // die `num_pass_cards` Öffnungskarten plus eine Sicherungkarte.
+    let num_real_cards = task.num_pass_cards + 1;
+
+    // Der Lee-Brickell-Algorithmus erzeugt nur mit einer gewissen
+    // Wahrscheinlichkeit eine Lösung. Daher führen wir ihn wiederholt aus,
+    // bis eine Lösung gefunden wurde.
+    loop {
+        match lee_brickell_iteration(&task.cards, num_real_cards) {
+            None => continue,
+            Some(solution) => break solution,
+        }
+    }
+}
+
+// Parameter für den Lee-Brickell-Algorithmus.
+const P: usize = 2;
+
+// `lee_brickell_iteration` beinhaltet eine Iteration des
+// Lee-Brickell-Algorithmus. Die Funktion liefert nur mit einer gewissen
+// Wahrscheinlichkeit eine Lösung, und gibt anderenfalls `None` zurück.
+fn lee_brickell_iteration(cards: &[Card], num_real_cards: usize) -> Option<Solution> {
+    let num_cards = cards.len();
+    let bits_per_card = cards[0].len();
+
+    // `permutation` ist eine zufällige Permutation der Karten, repräsentiert
+    // durch ein Array, in dem jeder Index in `cards` einmal vorkommt.
+    let mut permutation = (0..num_cards).into_iter().collect::<Vec<usize>>();
+    permutation.shuffle(&mut rand::thread_rng());
+
+    let mut permutation_pairs = permutation
+        .iter()
+        .cloned()
+        .enumerate()
+        .map(|(from, to)| (to, from))
+        .collect::<Vec<(usize, usize)>>();
+    permutation_pairs.sort();
+
+    // `inverse_permutation` ist die zu `permutation` umgekehrte Permutation.
+    let inverse_permutation = permutation_pairs
+        .into_iter()
+        .map(|(_to, from)| from)
+        .collect::<Vec<usize>>();
+
+    // `ppcm` steht für "permuted parity-check matrix". Wie in der
+    // Dokumentation beschrieben, ist die Matrix, welche die gegebenen Karten
+    // als ihre Spalten enthält, Kontrollmatrix eines linearen Codes über den
+    // endlichen Körper GF(2). Die Codewörter dieses Codes repräsentieren
+    // jeweils eine Auswahl von Karten, die XOR einander null ergeben. Die
+    // Lösung des Problems ist gegeben durch ein Codewort dieses Codes mit
+    // Hamming-Gewicht `num_real_cards`.
+    // `ppcm` ist eine solche Kontrollmatrix (repräsentiert als Iliffe-Vektor),
+    // auf dessen Spalten zusätzlich noch die Permutation `permutation`
+    // angewandt wurde.
+    let mut ppcm = transpose_and_optionally_permute_columns(cards, Some(&permutation));
+
+    // `basic_vars` und `free_vars` enthalten jeweils die Spaltenindizes der
+    // Basisvariablen bzw. freien Variablen von `ppcm`.
+    let mut basic_vars = Vec::new();
+    let mut free_vars = Vec::new();
+
+    // Zunächst wird `ppcm` mittels des Gaußschen Eliminierungsverfahrens
+    // in die reduzierte Stufenform gebracht.
+    let mut current_row = 0;
+    let mut current_col = 0;
+    while current_row < bits_per_card && current_col < num_cards {
+        // Wir suchen in der derzeitigen Spalte ein Pivotelement (eine 1).
+        let pivot_row = match (current_row..bits_per_card).find(|row| ppcm[*row][current_col]) {
+            Some(row) => row,
+            None => {
+                // Wurde kein Pivotelement gefunden, gehört diese Spalte zu
+                // einer freien Variable, und es kann zur nächsten Spalte
+                // übergegangen werden.
+                free_vars.push(current_col);
+                current_col += 1;
+                continue;
+            }
+        };
+        // Wurde ein Pivotelement gefunden, gehört die Spalte zu einer
+        // Basisvariable.
+        basic_vars.push(current_col);
+        // Die Zeile mit dem Pivotelement wird nach oben gebracht, indem sie
+        // mit der derzeitigen Zeile getauscht wird.
+        ppcm.swap(current_row, pivot_row);
+        // Alle weiter unten liegenden Einsen dieser Spalte werden eliminiert,
+        // indem die entsprechenden Zeilen mit der Zeile des Pivotelements XOR
+        // gerechnet (addiert) werden.
+        for lower_row in (current_row + 1)..bits_per_card {
+            if ppcm[lower_row][current_col] {
+                let current_row_cloned = ppcm[current_row].clone();
+                ppcm[lower_row] ^= current_row_cloned;
+            }
+        }
+        // Es kann zur nächsten Zeile und Spalte übergegangen werden.
+        current_row += 1;
+        current_col += 1;
+    }
+    // Übrig gebliebene Spalten, die nicht mehr betrachtet wurden, da die
+    // letzte Zeile der Matrix erreicht wurde, gehören zu freien Variablen.
+    free_vars.extend(current_col..num_cards);
+
+    let num_free_vars = free_vars.len();
+    let num_basic_vars = basic_vars.len();
+
+    // Sanity Check: Nach dem Rangsatz immer erfüllt
+    assert_eq!(num_basic_vars + num_free_vars, num_cards);
+
+    // Hier ist `ppcm` in Stufenform.
+
+    // Um die reduzierte Stufenform zu erreichen, wird noch einmal rückwärts
+    // über die Spalten mit Pivotelement iteriert. Die weiter oben liegenden
+    // Einsen werden eliminiert, indem die entsprechenden Zeilen mit der Zeile
+    // des Pivotelements XOR gerechnet (addiert) werden. Diese Erweiterung
+    // wird auch als Gauß-Jordan-Algorithmus bezeichnet.
+    for (pivot_row, pivot_col) in basic_vars.iter().enumerate().rev() {
+        for upper_row in 0..pivot_row {
+            if ppcm[upper_row][*pivot_col] {
+                let pivot_row_cloned = ppcm[pivot_row].clone();
+                ppcm[upper_row] ^= pivot_row_cloned;
+            }
+        }
+    }
+
+    // Im letzten Schritt wird versucht, aus der Kontrollmatrix `ppcm` ein
+    // Codewort mit Hamming-Gewicht `num_real_cards` zu extrahieren, indem
+    // angenommen wird, dass in der Lösung genau `p` der freien Variablen
+    // den Wert 1 haben. Ob diese Annahme stimmt, hängt davon ab, ob im ersten
+    // Schritt eine glückliche Permutation gewählt wurde.
+
+    // In einigen Fällen muss der Parameter `P` des Lee-Brickell-Algorithmus
+    // an die Eingabe angepasst werden, z.B. bei sehr leicht lösbaren Aufgaben
+    // mit nur einer freien Variable. Details sind in der Dokumentation,
+    // Abschnitt 1.2, Schritt 4 zu finden.
+    let p = ((P as isize).clamp(
+        -(num_cards as isize) + num_free_vars as isize + num_real_cards as isize,
+        num_real_cards.min(num_free_vars) as isize,
+    )) as usize;
+
+    // Zunächst wird die Matrix transponiert, damit die Bits der Spalten
+    // jeweils zusammenhängend im Speicher liegen und somit die Spalten
+    // schneller miteinander XOR gerechnet werden können.
+    let transposed_ppcm = transpose_and_optionally_permute_columns(&ppcm, None);
+
+    // Um die `p` freien Variablen mit dem Wert 1 zu finden, wird über alle
+    // möglichen `p`-Untermengen der freien Variablen iteriert und jeweils
+    // angenommen, dass von den freien Variablen nur die in der Untermenge den
+    // Wert 1 haben.
+    let mut subset_iter = SubsetIterator::new(num_free_vars, p);
+    while let Some(subset) = subset_iter.next() {
+        // Zunächst wird das exklusive Oder der `p` Spalten in der Untermenge
+        // errechnet. Aus der Struktur der reduzierten Stufenform folgt, dass
+        // in jeder Zeile, in der `subset_xor` den Wert 1 hat, auch die
+        // Basisvariable dieser Zeile den Wert 1 haben muss, damit die Zeile
+        // insgesamt den Wert 0 hat (es handelt sich um eine Zeile der
+        // Kontrollmatrix!)
+        let mut subset_xor = BitVec::<usize, Lsb0>::repeat(false, bits_per_card);
+        for free_var_idx in subset {
+            subset_xor ^= &transposed_ppcm[free_vars[*free_var_idx]];
+        }
+
+        // Damit insgesamt `num_real_cards` Elemente des Lösungsvektors den
+        // Wert 1 haben, müssen genau `num_real_cards - p` Basisvariablen den
+        // Wert 1 haben, da oben angenommen wurde, dass von den freien
+        // Variablen genau `p` den Wert 1 haben.
+        if subset_xor.count_ones() == num_real_cards - p {
+            // Ist dies der Fall, ist die Lösung gefunden. Die echten Karten
+            // werden in `real_cards` gesammelt. Dabei wird die
+            // Spaltenpermutation mittels `inverse_permutation` rückgängig
+            // gemacht.
+            let mut real_cards = Vec::new();
+            for free_var_idx in subset {
+                real_cards.push(cards[inverse_permutation[free_vars[*free_var_idx]]].clone());
+            }
+            for basic_var_row in subset_xor.iter_ones() {
+                real_cards.push(cards[inverse_permutation[basic_vars[basic_var_row]]].clone());
+            }
+            // Der Benutzerfreundlichkeit gegenüber Zara halber werden die
+            // echten Karten vor der Ausgabe aufsteigend sortiert.
+            real_cards.sort();
+
+            return Some(Solution {
+                real_cards,
+                num_cards,
+                num_real_cards,
+                bits_per_card,
+                num_free_vars,
+                p,
+            });
+        }
+    }
+
+    // Von den freien Variablen hatten nicht genau `p` den Wert 1. Diese
+    // Iteration ist fehlgeschlagen, und in der nächten Iteration wird eine
+    // andere Spaltenpermutation und somit auch eine andere Auswahl freier
+    // Variablen probiert.
+    None
+}
+
+// Diese Funktion transponiert eine Bit-Matrix und wendet anschließend, falls
+// gefordert, auf die transponierte Matrix die gegebene Spaltenpermutation an.
+// Durch die Vereinigung dieser beiden Operationen kann unnötiges Herumkopieren
+// von Bits vermieden werden.
+fn transpose_and_optionally_permute_columns(
+    matrix: &[BitVec],
+    permutation: Option<&[usize]>,
+) -> Vec<BitVec> {
+    let orig_num_rows = matrix.len();
+    let orig_num_cols = matrix[0].len();
+
+    let mut transposed = vec![BitVec::<usize, Lsb0>::repeat(false, orig_num_rows); orig_num_cols];
+    for orig_row_idx in 0..orig_num_rows {
+        let new_col_idx = match permutation {
+            Some(permutation) => permutation[orig_row_idx],
+            None => orig_row_idx,
+        };
+        for orig_col_idx in 0..orig_num_cols {
+            let new_row_idx = orig_col_idx;
+            transposed[new_row_idx].set(new_col_idx, matrix[orig_row_idx][orig_col_idx]);
+        }
+    }
+    transposed
+}
+
+// Iterator, der über alle "n über k" k-Untermengen einer Menge von n Elementen
+// iteriert. Die Elemente der Menge sind die natürlichen Zahlen von 0 bis n-1.
+// Die Untermengen werden durch ein aufsteigend sortiertes Array repräsentiert.
+struct SubsetIterator {
+    n: usize,
+    k: usize,
+    fresh: bool,
+    subset: Vec<usize>,
+}
+
+impl SubsetIterator {
+    fn new(n: usize, k: usize) -> Self {
+        Self {
+            n,
+            k,
+            fresh: true,
+            // Zu Anfang enthält die Untermenge die niedrigsten k Zahlen.
+            subset: (0..k).into_iter().collect(),
+        }
+    }
+
+    fn next(&mut self) -> Option<&[usize]> {
+        // Falls dies die erste Iteration ist, geben wir einfach die in "new()"
+        // (s.o.) definierte Anfangs-Untermenge zurück.
+        if self.fresh {
+            self.fresh = false;
+            Some(&self.subset)
+        } else {
+            // `last_index` ist der Index des letzten Elements der Untermenge.
+            let last_index = self.k - 1;
+            // `index_to_increase` ist der Index des Elements der Untermenge,
+            // das durch die nächstgrößere Zahl ersetzt wird.
+            // Wir durchsuchen die Untermenge von links nach rechts nach einem
+            // erhöhbaren Element, sodass immer das niedrigste Element zuerst
+            // erhöht wird.
+            let index_to_increase = self
+                .subset
+                .iter()
+                .enumerate()
+                .find(|(index, val)| {
+                    if *index == last_index {
+                        // Falls dies das letzte Element der Untermenge ist,
+                        // kann es nurnoch erhöht werden, wenn die
+                        // nächtsgrößere Zahl noch Teil der Gesamtmenge ist.
+                        self.subset[*index] != self.n - 1
+                    } else {
+                        // Ansonsten kann das Element erhöht werden, wenn die
+                        // nächstgrößere Zahl nicht schon durch ein anderes
+                        // Element in der Untermenge repräsentiert ist.
+                        self.subset[*index + 1] != **val + 1
+                    }
+                })? // das '?' gibt sofort `None` zurück, wenn kein erhöhbares
+                // Element gefunden wurde und somit schon über alle Untermengen
+                // iteriert wurde.
+                .0;
+
+            // Das im vorherigen Schritt gefundene Element wird um 1 erhöht,
+            // und alle kleineren Elemente werden analog zum "normalen Zählen"
+            // auf die kleinstmöglichen Werte gesetzt.
+            self.subset[index_to_increase] += 1;
+            for lower_idx in 0..index_to_increase {
+                self.subset[lower_idx] = lower_idx;
+            }
+
+            // Die neu errechnete Untermenge wird zurückgegeben.
+            Some(&self.subset)
+        }
+    }
+}
+
+// Einstiegspunkt für das Programm.
+fn main() {
+    let task_file_name = match env::args().nth(1) {
+        Some(x) => x,
+        None => {
+            eprintln!("Nutzung: bonusaufgabe <dateiname>");
+            process::exit(1);
+        }
+    };
+    let task_str = fs::read_to_string(task_file_name).expect("Datei kann nicht gelesen werden");
+    let task = Task::try_from(task_str.as_str()).expect("Datei enthält keine gültige Aufgabe");
+
+    let start = time::Instant::now();
+    let solution = solve_task(&task);
+    let elapsed = start.elapsed();
+
+    println!("{}", solution);
+    println!("Laufzeit ohne I/O: {:?}", elapsed);
+}
+
+// Liest eine Aufgabe im Format der Beispielaufgaben ein.
+impl TryFrom<&str> for Task {
+    type Error = ();
+
+    fn try_from(value: &str) -> Result<Self, Self::Error> {
+        let mut lines = value.lines();
+        let first_line = lines.next().ok_or(())?;
+        let mut first_line_words = first_line.split_ascii_whitespace();
+
+        let total_num_cards_str = first_line_words.next().ok_or(())?;
+        let total_num_cards = str::parse::<usize>(total_num_cards_str).map_err(|_| ())?;
+        let num_pass_cards_str = first_line_words.next().ok_or(())?;
+        let num_pass_cards = str::parse::<usize>(num_pass_cards_str).map_err(|_| ())?;
+
+        let cards = lines
+            .into_iter()
+            .map(|line| {
+                line.chars()
+                    .flat_map(|char| match char {
+                        '0' => Some(false),
+                        '1' => Some(true),
+                        _ => None,
+                    })
+                    .collect::<Card>()
+            })
+            .collect::<Vec<Card>>();
+
+        if cards.len() != total_num_cards {
+            return Err(());
+        }
+
+        Ok(Task {
+            cards,
+            num_pass_cards,
+        })
+    }
+}
+
+// Formatiert die Lösung zur Ausgabe.
+impl fmt::Display for Solution {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+        writeln!(
+            f,
+            "Randinformationen (siehe Dokumentation):\nn = {}; w = {}; b = {}; k = {}; p = {}",
+            self.num_cards, self.num_real_cards, self.bits_per_card, self.num_free_vars, self.p
+        )?;
+        writeln!(f)?;
+        writeln!(f, "Echte Karten:")?;
+        for card in self.real_cards.iter() {
+            for bit in card.iter() {
+                match *bit {
+                    true => write!(f, "1")?,
+                    false => write!(f, "0")?,
+                };
+            }
+            writeln!(f)?;
+        }
+        Ok(())
+    }
+}