diff --git a/18/1.cpp b/18/1.cpp new file mode 100644 index 0000000..5aba67b --- /dev/null +++ b/18/1.cpp @@ -0,0 +1,7 @@ +#include + +using namespace std; + +int main() +{ +} \ No newline at end of file diff --git a/18/1.py b/18/1.py index bc6bdff..c302ddf 100644 --- a/18/1.py +++ b/18/1.py @@ -1,5 +1,32 @@ -n = int(input()) +with open('./dat/18-6.txt', 'r') as f: + matrix = [[int(i) for i in e.split()] for e in f.readlines()] + arr = [] -with open('./input.txt', 'r') as f: - arr = [f.readline().split() for i in range(n)] - steps = (n - 1) * 2 \ No newline at end of file + for row_index, row in enumerate(matrix): + new_row = [] + for el_index, el in enumerate(row): + if row_index == 0 and el_index == 0: + new_row.append([matrix[0][0]] * 2) + elif row_index == 0: + new_row.append([new_row[el_index-1][0] + el] * 2) + elif el_index == 0: + new_row.append([arr[row_index-1][el_index][0] + el] * 2) + else: + ns = [max([arr[row_index-1][el_index][0], new_row[el_index-1][0]]) + el, + min([arr[row_index-1][el_index][1], new_row[el_index-1][1]]) + el] + new_row.append(ns) + arr.append(new_row) + +# for row in matrix: +# for el in row: +# print(el, end=' ') +# print() + +# print("-------------------------Delimeter-------------------------") + +# for row in arr: +# for el in row: +# print(el, end=' ') +# print() + +print(arr[-1][-1]) diff --git a/18/2.py b/18/2.py new file mode 100644 index 0000000..01302fd --- /dev/null +++ b/18/2.py @@ -0,0 +1,48 @@ +# 1222 + +def add_10(matrix, x, y, dir): + if (dir): + if (x > 0 and x < len(matrix) - 1): + return 10 if (matrix[x-1][y] % 2 == 0 and matrix[x+1][y] % 2 == 0) or (matrix[x-1][y] % 2 == 1 and matrix[x+1][y] % 2 == 1) else 0 + else: + if (y > 0 and y < len(matrix[x]) - 1): + return 10 if (matrix[x][y-1] % 2 == 0 and matrix[x][y+1] % 2 == 0) or (matrix[x][y-1] % 2 == 1 and matrix[x][y+1] % 2 == 1) else 0 + return 0 + + +# n = int(input()) + +with open('./dat/18-J5.csv', 'r', encoding='utf-8-sig') as f: + # with open('./input.txt', 'r') as f: + matrix = [[len(i.strip()) and int(i) for i in l.split(';')] + for l in f.readlines()] + arr = [] + + for row_index, row in enumerate(matrix): + new_row = [] + for el_index, el in enumerate(row): + if row_index == 0 and el_index == 0: + new_row.append(el) + elif row_index == 0: + new_row.append(new_row[el_index-1] + el) + elif el_index == 0: + new_row.append(arr[row_index-1][el_index] + el) + else: + ns = min(arr[row_index-1][el_index] + add_10(matrix, row_index, el_index, 0), + new_row[el_index-1] + add_10(matrix, row_index, el_index, 1)) + el + new_row.append(ns) + arr.append(new_row) + +for row in matrix: + for el in row: + print(el, end=' ') + print() + +print("****************************Delimeter****************************") + +for row in arr: + for el in row: + print(el, end=' ') + print() + +print(arr[-1][-1]) diff --git a/18/3.py b/18/3.py new file mode 100644 index 0000000..489a0c7 --- /dev/null +++ b/18/3.py @@ -0,0 +1,18 @@ +# 345 + +with open('./dat/18-17.txt', 'r') as f: + p = float('+inf') + s = 0 + ms = float('-inf') + + for sn in f.readlines(): + n = float(sn) + if n < p: + s += n + else: + if s > ms: + ms = s + s = 0 + p = n + +print(int(ms)) diff --git a/18/4.py b/18/4.py new file mode 100644 index 0000000..415b3e2 --- /dev/null +++ b/18/4.py @@ -0,0 +1,18 @@ +# 29 + +with open('./dat/18-77.txt', 'r') as f: + p = float(f.readline()) + ms = float('-inf') + s = 0 + + for sn in f.readlines(): + n = float(sn) + if abs(n - p) >= 20: + s += n + if s > ms: + ms = s + else: + s = 0 + p = n + +print(int(ms)) diff --git a/18/dat/18-0.csv b/18/dat/18-0.csv new file mode 100644 index 0000000..7af9d7b --- /dev/null +++ b/18/dat/18-0.csv @@ -0,0 +1,10 @@ +51;21;93;48;45;100;67;39;18;29 +57;43;97;51;92;10;93;32;19;58 +63;16;31;16;78;88;90;72;37;67 +10;57;64;25;96;50;81;65;91;69 +99;43;95;7;40;76;18;34;5;65 +35;19;71;77;64;38;62;56;10;2 +100;57;27;26;51;33;100;11;53;1 +11;79;49;46;37;69;80;31;25;39 +22;71;20;23;11;12;39;16;64;34 +4;25;87;84;30;48;77;13;40;33 diff --git a/18/dat/18-0.xls b/18/dat/18-0.xls new file mode 100644 index 0000000..8e7eea7 Binary files /dev/null and b/18/dat/18-0.xls differ diff --git a/18/dat/18-0_ready.xls b/18/dat/18-0_ready.xls new file mode 100644 index 0000000..ea12dcd Binary files /dev/null and b/18/dat/18-0_ready.xls differ diff --git a/18/dat/18-1.xls b/18/dat/18-1.xls new file mode 100644 index 0000000..7cf5b8f Binary files /dev/null and b/18/dat/18-1.xls differ diff --git a/18/dat/18-10.xls b/18/dat/18-10.xls new file mode 100644 index 0000000..786c98b Binary files /dev/null and b/18/dat/18-10.xls differ diff --git a/18/dat/18-11.xls b/18/dat/18-11.xls new file mode 100644 index 0000000..d1ca880 Binary files /dev/null and b/18/dat/18-11.xls differ diff --git a/18/dat/18-12.xls b/18/dat/18-12.xls new file mode 100644 index 0000000..70e9241 Binary files /dev/null and b/18/dat/18-12.xls differ diff --git a/18/dat/18-13.xls b/18/dat/18-13.xls new file mode 100644 index 0000000..361d41c Binary files /dev/null and b/18/dat/18-13.xls differ diff --git a/18/dat/18-14.xls b/18/dat/18-14.xls new file mode 100644 index 0000000..179ec74 Binary files /dev/null and b/18/dat/18-14.xls differ diff --git a/18/dat/18-14_ready.xls b/18/dat/18-14_ready.xls new file mode 100644 index 0000000..ca81fd5 Binary files /dev/null and b/18/dat/18-14_ready.xls differ diff --git a/18/dat/18-15.xls b/18/dat/18-15.xls new file mode 100644 index 0000000..b665932 Binary files /dev/null and b/18/dat/18-15.xls differ diff --git a/18/dat/18-16.xls b/18/dat/18-16.xls new file mode 100644 index 0000000..2c7e0d1 Binary files /dev/null and b/18/dat/18-16.xls differ diff --git a/18/dat/18-17.txt b/18/dat/18-17.txt new file mode 100644 index 0000000..4ef0632 --- /dev/null +++ b/18/dat/18-17.txt @@ -0,0 +1,500 @@ +115.36 +148.05 +31.52 +89.34 +82.87 +80.23 +78.93 +48.47 +58.82 +127.06 +135.97 +119.56 +79.60 +29.54 +5.99 +64.98 +58.78 +96.20 +94.01 +77.80 +69.62 +89.07 +25.34 +107.61 +32.93 +125.99 +35.51 +67.87 +69.19 +55.12 +105.86 +13.48 +102.54 +123.56 +6.56 +47.62 +88.94 +114.01 +8.00 +80.69 +34.98 +30.94 +25.29 +28.62 +113.82 +63.27 +15.61 +136.60 +58.25 +53.12 +23.19 +30.90 +145.18 +81.75 +151.15 +66.57 +58.56 +154.02 +140.03 +127.79 +49.65 +121.52 +38.29 +50.85 +143.47 +102.29 +72.33 +60.84 +135.72 +46.02 +18.27 +109.58 +25.62 +127.34 +150.58 +94.61 +95.81 +96.38 +128.20 +98.20 +45.46 +103.89 +127.28 +41.17 +138.81 +138.61 +47.27 +90.26 +25.11 +130.68 +6.52 +48.07 +148.54 +78.48 +140.00 +84.10 +142.01 +15.51 +153.46 +43.11 +27.92 +106.22 +15.60 +73.66 +14.36 +120.63 +106.63 +105.02 +18.98 +58.37 +131.99 +85.21 +149.70 +56.72 +106.51 +77.89 +63.30 +48.33 +15.17 +115.31 +82.66 +40.23 +34.84 +106.86 +87.29 +93.06 +69.62 +56.43 +126.72 +23.29 +98.25 +140.52 +23.50 +124.84 +65.35 +49.44 +127.84 +77.31 +24.24 +80.02 +87.87 +130.38 +14.06 +128.47 +13.29 +85.01 +50.93 +110.43 +132.11 +125.54 +59.61 +143.77 +153.72 +11.28 +67.69 +134.24 +62.11 +105.40 +22.22 +67.39 +31.97 +67.56 +34.99 +129.33 +18.99 +34.74 +42.05 +39.45 +97.43 +142.81 +36.65 +132.58 +150.27 +136.38 +89.99 +68.84 +50.40 +151.70 +24.96 +36.39 +46.03 +86.83 +109.28 +25.87 +37.40 +75.32 +120.68 +37.52 +18.27 +29.30 +14.98 +50.64 +92.97 +32.18 +86.17 +11.47 +71.05 +36.24 +23.58 +137.88 +107.92 +74.15 +102.64 +141.46 +83.27 +113.76 +68.82 +64.62 +33.24 +17.56 +144.80 +147.66 +84.49 +68.44 +104.01 +118.57 +12.92 +72.10 +28.21 +20.65 +115.63 +74.97 +35.58 +38.69 +96.35 +120.58 +142.47 +107.44 +76.24 +51.21 +65.78 +122.83 +33.37 +26.47 +141.93 +90.27 +50.07 +107.14 +11.72 +135.57 +117.58 +51.47 +143.38 +35.12 +104.89 +129.72 +27.09 +96.83 +119.05 +133.76 +63.12 +81.12 +58.09 +98.84 +128.04 +68.75 +114.48 +128.97 +74.38 +73.82 +139.97 +124.96 +108.58 +130.81 +34.17 +44.21 +92.15 +131.73 +131.36 +32.43 +33.81 +29.38 +102.26 +144.72 +27.98 +74.91 +123.22 +63.76 +115.09 +66.36 +6.72 +107.08 +85.35 +153.24 +68.90 +53.81 +16.45 +98.71 +20.71 +42.78 +44.11 +93.06 +49.67 +69.84 +37.35 +81.73 +138.80 +125.48 +86.42 +134.51 +67.39 +31.78 +84.07 +92.68 +126.87 +134.14 +38.53 +16.66 +42.48 +154.79 +57.85 +104.25 +38.68 +11.24 +127.89 +141.84 +69.14 +33.09 +49.21 +115.06 +100.59 +68.55 +113.68 +14.87 +113.40 +78.64 +73.37 +10.43 +86.49 +79.70 +79.88 +147.51 +80.13 +145.64 +101.60 +76.77 +29.88 +108.91 +12.09 +17.33 +98.17 +130.08 +49.51 +25.54 +39.12 +43.48 +42.50 +137.74 +147.41 +120.96 +87.30 +17.34 +122.04 +116.39 +144.95 +136.22 +55.94 +35.79 +45.90 +139.65 +58.06 +96.71 +54.91 +46.59 +152.27 +80.43 +11.67 +18.03 +18.87 +97.33 +25.41 +86.44 +123.41 +62.75 +9.38 +152.74 +66.90 +31.18 +44.86 +25.68 +32.74 +43.97 +97.73 +19.46 +75.66 +102.28 +129.80 +123.31 +137.07 +102.30 +144.24 +18.46 +85.89 +52.01 +69.22 +130.63 +99.13 +21.15 +59.78 +92.15 +96.70 +27.66 +10.33 +16.78 +60.00 +92.20 +17.02 +27.59 +76.19 +151.15 +35.75 +59.67 +22.12 +90.55 +109.88 +103.40 +82.15 +154.08 +108.71 +85.00 +18.41 +136.41 +138.80 +49.72 +85.22 +150.06 +6.31 +64.53 +151.24 +76.84 +52.59 +66.56 +137.03 +57.10 +23.67 +99.98 +73.92 +12.75 +108.88 +131.91 +129.25 +123.27 +43.91 +147.67 +121.68 +94.61 +144.50 +132.51 +35.31 +129.18 +96.56 +108.95 +77.65 +60.45 +134.12 +35.72 +46.58 +51.75 +31.53 +59.90 +51.08 +55.17 +86.43 +28.78 +65.99 +41.26 +13.33 +42.57 +82.87 +110.51 +75.96 +135.75 +119.78 +48.26 +57.95 +78.69 +131.61 +64.69 +146.99 +40.72 +25.85 +44.50 +30.41 +49.81 +91.05 +143.51 +23.28 +23.16 +21.92 +143.62 +103.87 +31.95 +106.78 +19.01 +126.41 +151.22 +66.51 +59.34 +51.82 +82.90 \ No newline at end of file diff --git a/18/dat/18-17.xls b/18/dat/18-17.xls new file mode 100644 index 0000000..45a43f0 Binary files /dev/null and b/18/dat/18-17.xls differ diff --git a/18/dat/18-18.xls b/18/dat/18-18.xls new file mode 100644 index 0000000..b9c244d Binary files /dev/null and b/18/dat/18-18.xls differ diff --git a/18/dat/18-2.xls b/18/dat/18-2.xls new file mode 100644 index 0000000..cec443c Binary files /dev/null and b/18/dat/18-2.xls differ diff --git a/18/dat/18-3.xls b/18/dat/18-3.xls new file mode 100644 index 0000000..e194522 Binary files /dev/null and b/18/dat/18-3.xls differ diff --git a/18/dat/18-4.xls b/18/dat/18-4.xls new file mode 100644 index 0000000..5a86057 Binary files /dev/null and b/18/dat/18-4.xls differ diff --git a/18/dat/18-5.xls b/18/dat/18-5.xls new file mode 100644 index 0000000..aefc5dd Binary files /dev/null and b/18/dat/18-5.xls differ diff --git a/18/dat/18-6.txt b/18/dat/18-6.txt new file mode 100644 index 0000000..258fc88 --- /dev/null +++ b/18/dat/18-6.txt @@ -0,0 +1,10 @@ +48 65 28 73 28 74 61 58 59 49 +32 94 37 57 65 75 15 5 56 6 +17 90 74 85 84 66 12 42 99 30 +55 66 41 23 93 3 73 26 70 19 +84 87 74 90 68 48 40 97 10 43 +37 67 26 24 83 49 11 39 29 51 +3 31 99 92 81 3 49 51 32 55 +22 35 6 6 68 46 17 34 37 89 +41 63 58 32 17 32 59 82 91 33 +7 61 53 90 42 49 83 95 96 74 diff --git a/18/dat/18-6.xls b/18/dat/18-6.xls new file mode 100644 index 0000000..99f5041 Binary files /dev/null and b/18/dat/18-6.xls differ diff --git a/18/dat/18-7.xls b/18/dat/18-7.xls new file mode 100644 index 0000000..a902e7c Binary files /dev/null and b/18/dat/18-7.xls differ diff --git a/18/dat/18-77.txt b/18/dat/18-77.txt new file mode 100644 index 0000000..446dc97 --- /dev/null +++ b/18/dat/18-77.txt @@ -0,0 +1,1000 @@ +-0.67 +-0.65 +9.29 +5.22 +-10.54 +13.82 +-2.32 +13.07 +19.56 +8.9 +-16.13 +8.55 +-18.32 +-1.12 +-3.95 +19.95 +4.66 +-6.03 +13.82 +7.32 +17.19 +-7.09 +-12.14 +14.97 +-2.16 +-14.2 +-10.07 +-16.04 +-5.71 +5.68 +15.68 +-7.58 +-8.42 +14.94 +-7.91 +-16.64 +-9.41 +9.63 +-9.84 +-3.02 +-18.38 +15.3 +12.53 +8.06 +-9.12 +15.8 +-4.52 +6.89 +-6.81 +-18.07 +16.04 +-16.27 +17.22 +-16.59 +-2.64 +-12.02 +18.22 +6.99 +13.67 +19.69 +-18.08 +2.93 +16.04 +-3.38 +3.69 +-5.73 +19.54 +-10.55 +-0.37 +-8.98 +12.49 +-6.93 +-16.44 +-1.12 +-15.88 +12.21 +-7.04 +-9.89 +-16.1 +18.94 +-3.01 +6.84 +-16.05 +-19.63 +3.2 +-15.39 +-1.5 +-16.36 +-7.1 +10.2 +19.18 +15.58 +18.26 +-12.76 +-6.59 +10.56 +4.64 +-9.48 +6.53 +8.65 +-19.77 +18.92 +-19.34 +-0.52 +4.14 +-10.25 +-11.93 +-10.61 +12.14 +-5.83 +5.02 +-16.37 +6.6 +13.61 +-7.22 +-1.09 +-13.01 +11.12 +-16.63 +-11.98 +-1.11 +11.82 +6.34 +-19.68 +-16.53 +14.12 +5.15 +9.13 +19.57 +15.64 +-2.79 +-9.82 +-12.4 +1.24 +-18.93 +-2.29 +12.02 +-0.01 +18.8 +-18.47 +6.39 +4.3 +-16.72 +-8.53 +-19.54 +-13.03 +-14.85 +-15.04 +10.79 +-18.44 +12.01 +-0.77 +1.95 +-1 +-17.92 +12.04 +-18.04 +-9.31 +0.94 +18.19 +10.48 +-3.3 +-3.9 +-4.28 +-4.74 +6.73 +-18.47 +0.97 +-4.7 +-13.72 +-8.6 +8.35 +-0.01 +5.66 +-17.73 +-19.67 +19.86 +-1.98 +-7.71 +8.8 +-16.14 +-1.56 +5.16 +3.1 +-19.1 +2.36 +-10.91 +-1.97 +-19.52 +13.45 +10.23 +16.55 +-16.03 +11.88 +-2.24 +-3.91 +6.74 +16.94 +-19.18 +15.88 +-8.67 +-17.65 +5.26 +-5.22 +18.79 +-8.25 +-8.52 +11.66 +-0.24 +-15.11 +5.82 +16.11 +3.59 +13.08 +-17.93 +-8.43 +-16.58 +5.19 +15.27 +-1.09 +9.02 +10.29 +1.35 +-19.82 +9.07 +-13.3 +-0.86 +-18.74 +-16.16 +-14.54 +-5.11 +-18.39 +-8.4 +9.13 +-13.78 +10.55 +8.95 +-15.84 +-16.38 +1.7 +-16.77 +-2.84 +-11.86 +-19.3 +8.51 +-18.76 +-2.09 +-1.4 +19.4 +-11.95 +-8 +7.83 +6.76 +19.92 +-5.02 +-1.2 +-10.44 +-2.15 +10.5 +-10.26 +15.92 +16.35 +4.69 +-1.3 +-2.79 +19.28 +6.82 +-5.4 +-16.93 +-4.88 +12.08 +15.86 +-14.36 +-2.76 +-1.05 +-9.05 +-4.26 +1.33 +-18.64 +11.33 +16.05 +-4.56 +18.32 +-12.26 +10.54 +8.37 +-15.35 +-15.53 +-4.44 +-14.39 +6.58 +-2.89 +-1.49 +2.92 +0.25 +1.28 +8.07 +9.84 +-13.35 +16.13 +-9.8 +6.6 +16.44 +2.55 +2.85 +17.07 +-3.56 +-1.14 +10.59 +-13.84 +15.95 +-17.6 +-17.63 +-2 +-14.7 +14.99 +10.62 +13.52 +9.72 +-14.96 +-16.4 +-3.91 +-2.02 +-2.5 +-8.48 +13.79 +17.62 +2.04 +1.71 +-9.11 +-17.99 +14.36 +15.48 +-1.71 +11.3 +19.03 +4.47 +7.97 +-5.32 +3.87 +-2.19 +9.02 +-7.48 +10.77 +11.51 +-11.78 +9.87 +2.69 +5.09 +12.89 +-17.4 +-3.6 +-18.42 +14.29 +5.72 +-8.59 +0.03 +19.62 +11.89 +19.12 +11.12 +-19.98 +-16.86 +-8.99 +8.09 +4.75 +12.28 +15.88 +-10.2 +-9.33 +9.28 +-2.17 +-10.37 +-1.63 +7.86 +-0.38 +14.81 +13.93 +-11.94 +-5.14 +-17.24 +18.05 +10.49 +-11.04 +-3.43 +13.34 +-12.85 +-2.08 +19.97 +13.84 +14.84 +2.71 +12.87 +6.32 +7.54 +3.84 +-4.04 +-1.47 +5.25 +-2.04 +-7.09 +3.66 +-16.6 +15.68 +-18.95 +8.67 +-7.86 +-11.65 +-2.45 +19.87 +-3.52 +-5.6 +8.2 +11.21 +15.04 +16.81 +15.25 +-4.87 +-13.17 +-11.57 +11.47 +-15.54 +-2.72 +7.85 +-15.21 +-1.59 +2.04 +8.62 +5.45 +7.68 +8.91 +9.31 +-18.58 +-4.16 +-2.47 +18.07 +-2.27 +-8.1 +-8.82 +7.56 +-3.76 +6.39 +1.71 +17.79 +-17.41 +-11.1 +19.63 +-10.9 +-15.61 +-14.56 +-0.44 +-7.17 +7.22 +-13.88 +-6.72 +-4.19 +0.63 +4.69 +4.93 +-13.8 +-15.29 +-5.76 +0.44 +18.92 +-8.33 +2.48 +-2.18 +-19.29 +-14 +4.36 +18.82 +13.03 +-9.31 +-11.78 +-17.85 +-4.63 +-9.63 +-15.8 +4.35 +-18.71 +16.74 +-4.11 +13.7 +7.7 +-10.97 +10.96 +-1.52 +18.57 +4.23 +5.13 +9.95 +-16.29 +-8.76 +12.79 +8.72 +0.37 +-5.08 +10.38 +6.67 +18.91 +3.97 +10.98 +12.51 +-4.99 +-9.07 +-18.19 +18.85 +-13.94 +14.38 +-17.33 +16 +-2.61 +12.99 +-1.39 +3.32 +-1.51 +-13.11 +-18.16 +9.14 +-18.69 +13.71 +-12.03 +14.43 +16.12 +-16.82 +18.77 +-0.58 +4.71 +-5.67 +1.28 +19.82 +-16.44 +7.52 +0.83 +19.67 +-3.85 +13.68 +-13.3 +-14.65 +-17.85 +-14.11 +1.22 +-6.19 +-19.35 +-12.31 +8.14 +8.36 +-16.67 +8.78 +-8.98 +5.17 +-7.36 +-19.65 +3.91 +-13.56 +-18.45 +-9.95 +-13.43 +5.29 +-12.69 +14.32 +-11.67 +10.92 +-11.95 +-7.19 +15.87 +-13.25 +5.2 +13.04 +13.39 +-11.99 +-17.92 +16.98 +-18.12 +-15.79 +-9.42 +-19 +18.71 +8.13 +-0.8 +19.98 +-18.02 +-3.17 +19.94 +-9.04 +-2.17 +-17.78 +-8.1 +-10.19 +3.72 +-17.6 +8.13 +7.54 +4.76 +-10.62 +3.47 +2.63 +0.07 +7.31 +13.11 +15.58 +-18.53 +5.02 +13.36 +-10.48 +16.11 +16.4 +5.95 +-11.81 +19.9 +18.18 +11.95 +3.53 +12 +-6.01 +-9.13 +-19.98 +-13.4 +4.47 +0.89 +-1.7 +16.26 +2.19 +1.79 +19.96 +-11.32 +-11.64 +18.54 +-17.44 +-1.52 +-5.91 +11.77 +15.98 +-5.93 +-9.7 +-7.12 +-6.31 +5.35 +-2.32 +-5.72 +3.05 +-6.53 +-13.93 +-0.59 +7.77 +-19.6 +-8.25 +-1.02 +-2.7 +-9.72 +13.45 +-3.66 +-19.71 +0.68 +17.11 +5.33 +-7.81 +-13.45 +0.84 +7.04 +-14.77 +19.87 +-14.56 +-3.18 +-12.77 +-6.27 +3.56 +-13.77 +17.1 +-16.07 +10.61 +10.89 +0.65 +-2.56 +-1.42 +12.88 +-10.54 +10.49 +14.74 +-6.33 +-0.48 +7.93 +-3.24 +17.85 +19.5 +-16.79 +-0.85 +-3.01 +4.99 +10.55 +19.58 +5.22 +7.18 +-2.23 +10.38 +19.24 +5.91 +-7.44 +-5.7 +12.6 +5.71 +-4.07 +15.05 +7.41 +-10.75 +-15.92 +2.77 +6.26 +-16.38 +14.05 +0.56 +-7.06 +-16.98 +6.48 +12.02 +-10.61 +14.17 +17.75 +15.59 +-10.47 +16.72 +18.21 +-19.13 +12.24 +-12.49 +0.03 +4.59 +-3.32 +16.3 +9.97 +-2.56 +-8.37 +1.12 +18.37 +-1.99 +11.43 +-1.68 +14.18 +11.3 +8.9 +-9.82 +6.48 +-1 +-9.49 +-5.89 +4.22 +-0.97 +2.99 +2.52 +-5.5 +-2.92 +-13.66 +12.67 +15.74 +15.83 +-6.71 +6.99 +16.64 +12.23 +16.09 +-10.97 +-15.32 +2.02 +7.22 +-14.03 +-18.76 +-16.79 +9.59 +-18.34 +-6.77 +2.22 +-16.35 +5.95 +9.4 +10.53 +-16.64 +-10 +-5.37 +10.72 +0.09 +-2.93 +4.9 +-1.23 +12.98 +-15.93 +-7.25 +-3.26 +-16.83 +8.69 +-5.71 +-16.26 +-2.27 +7.34 +-10.97 +0.8 +-15.7 +5.74 +12.37 +13.9 +15.94 +6.44 +-14.26 +19.34 +19.6 +19.35 +-12.46 +-15.23 +-12.07 +14.7 +2.41 +-16.26 +2.19 +-7.14 +-18.34 +-19.16 +-19.77 +-16.29 +-15.08 +-0.66 +-10.86 +-15.49 +-6.96 +-6.28 +-11.66 +11.49 +15.26 +2.32 +9.62 +5.8 +-17.58 +16.34 +-1.59 +6.29 +-17.67 +17.67 +-10.1 +-14.7 +15.43 +-6.01 +2.33 +-10.59 +5.36 +18.36 +-4.95 +-19.92 +3.53 +-15.99 +-10.38 +-11.63 +7.57 +6.13 +0.3 +-11.64 +-6.8 +8.19 +-17.95 +-15.31 +2.21 +-18.16 +2.03 +-12.29 +-5.58 +13.63 +-0.49 +1.97 +19.81 +-8.46 +-18.78 +-15.28 +3.89 +12.07 +19.18 +-2.66 +16.52 +-1.31 +-10.45 +-1.9 +-6.8 +-16.04 +-2.91 +-12.9 +-1.62 +-18.92 +-10.41 +-2.14 +17.35 +-0.58 +0.63 +-14.67 +-5.65 +9.18 +-5.96 +12.6 +6.58 +15.68 +-5.87 +14.44 +-6.37 +-1.55 +2.61 +-18.08 +-9.27 +-9.94 +-6.83 +9.96 +-5.69 +16.24 +-11.12 +5.15 +-19.39 +-14 +-11.62 +13.55 +11.73 +-11.47 +-16.61 +18.05 +0.1 +-9.38 +6.86 +19.95 +-7.9 +12.04 +18.89 +13.16 +8.77 +-8.38 +-7.53 +-2.54 +11.56 +17.32 +8.57 +-9.07 +18.15 +-6.08 +17.89 +-14 +1.29 +11.07 +-0.37 +5.14 +-3.98 +-16.73 +19.32 +10.7 +-9.69 +-8.16 +-17.44 +13.44 +2.3 +8.52 +-18.25 +-10.62 +16.41 +17.94 +-14.46 +13.89 +-18.36 +1.67 +12.61 +12.96 +-12.56 +19.95 +17.33 +-15.12 +-7.56 +-19.44 +6.07 +6.39 +9.9 +-8.87 +-1.1 +-9.93 +17.21 +-8.13 +-10.71 +9.98 +-19.33 +6.26 +-7.96 +-8.28 +-17.42 +17.36 +2.78 +3.81 +0.72 +-16.96 +-12.08 +14.18 +1.91 +1.66 +19.68 +-6.96 +-14.17 +-14 +-15.66 +-12.75 +-1.56 +-13.54 +-2.05 diff --git a/18/dat/18-77.xls b/18/dat/18-77.xls new file mode 100644 index 0000000..f5a2e9a Binary files /dev/null and b/18/dat/18-77.xls differ diff --git a/18/dat/18-8.xls b/18/dat/18-8.xls new file mode 100644 index 0000000..aa0f9e1 Binary files /dev/null and b/18/dat/18-8.xls differ diff --git a/18/dat/18-9.xls b/18/dat/18-9.xls new file mode 100644 index 0000000..cf89518 Binary files /dev/null and b/18/dat/18-9.xls differ diff --git a/18/dat/18-J1.csv b/18/dat/18-J1.csv new file mode 100644 index 0000000..bc9d89b --- /dev/null +++ b/18/dat/18-J1.csv @@ -0,0 +1,10 @@ +65;61;87;81;49;41;64;29;60;49 +47;13;81;41;20;97;32;84;67;13 +77;14;96;86;92;33;78;47;29;59 +50;78;68;12;87;69;98;98;36;89 +18;42;75;30;45;95;42;82;52;85 +96;16;25;93;95;94;52;88;57;56 +99;29;60;10;16;26;25;85;16;28 +54;97;77;58;75;60;31;44;39;76 +87;73;79;18;47;74;12;74;33;93 +77;89;38;95;98;19;84;59;65;98 diff --git a/18/dat/18-J1.xls b/18/dat/18-J1.xls new file mode 100644 index 0000000..7bd85be Binary files /dev/null and b/18/dat/18-J1.xls differ diff --git a/18/dat/18-J2.csv b/18/dat/18-J2.csv new file mode 100644 index 0000000..863d48b --- /dev/null +++ b/18/dat/18-J2.csv @@ -0,0 +1,11 @@ +17;26;17;31;33;3;17;14;2;3;33 +8;30;40;38;33;19;48;4;30;34;49 +31;25;35;27;7;46;27;9;15;7;17 +45;24;2;35;31;23;27;1;19;48;6 +3;3;26;23;43;8;12;15;47;2;27 +3;33;27;44;11;6;40;41;18;32;50 +40;31;48;46;8;1;17;25;40;31;6 +27;3;13;21;4;29;22;39;42;18;33 +25;24;3;49;15;41;32;10;8;31;16 +20;20;39;40;49;43;3;12;33;6;16 +47;3;18;37;30;8;33;43;42;19;45 diff --git a/18/dat/18-J2.xls b/18/dat/18-J2.xls new file mode 100644 index 0000000..4cd62b5 Binary files /dev/null and b/18/dat/18-J2.xls differ diff --git a/18/dat/18-J3.csv b/18/dat/18-J3.csv new file mode 100644 index 0000000..99445e8 --- /dev/null +++ b/18/dat/18-J3.csv @@ -0,0 +1,14 @@ +38;36;50;68;33;68;61;49;19;35;96;26;75;20 +33;88;25;13;60;40;25;50;51;73;75;63;52;52 +24;79;94;69;25;67;22;77;1;15;22;2;47;40 +99;32;57;68;48;79;95;22;45;72;17;13;25;97 +70;32;39;13;21;84;95;28;60;38;87;30;92;3 +41;26;68;93;4;81;78;24;77;48;29;47;19;54 +77;16;63;29;34;31;36;3;20;34;71;41;11;20 +74;19;81;58;47;63;93;25;39;45;31;8;19;42 +69;37;91;57;38;85;24;85;34;45;27;15;12;97 +67;53;72;69;74;54;7;23;56;38;41;4;83;33 +73;65;40;17;69;14;73;30;34;43;46;25;43;85 +57;30;88;65;34;93;50;88;100;81;99;91;43;50 +56;30;14;70;93;14;66;75;95;74;45;82;89;81 +18;51;72;78;91;25;96;83;72;16;71;86;62;65 diff --git a/18/dat/18-J3.xls b/18/dat/18-J3.xls new file mode 100644 index 0000000..9af7ef5 Binary files /dev/null and b/18/dat/18-J3.xls differ diff --git a/18/dat/18-J4.csv b/18/dat/18-J4.csv new file mode 100644 index 0000000..086f84c --- /dev/null +++ b/18/dat/18-J4.csv @@ -0,0 +1,15 @@ +23;69;20;60;18;61;18;0;24;80;34;46;47;77;84 +78;97;45;72;72;68;78;27;88;40;70;72;21;82;12 +55;19;0;88;77;29;35;42;87;83;0;0;18;56;65 +84;83;0;68;71;58;73;16;88;40;28;72;35;47;58 +62;84;23;37;81;36;46;86;94;16;38;37;98;99;35 +77;92;62;64;47;0;51;27;71;26;20;40;24;60;25 +16;19;84;63;93;0;87;91;0;11;47;32;30;92;84 +70;29;41;48;58;44;92;94;22;72;95;95;72;35;34 +26;51;16;10;24;43;15;89;0;12;29;57;44;98;76 +69;94;37;24;36;0;0;0;10;90;74;24;13;39;89 +0;90;87;93;10;51;14;49;64;86;0;30;12;57;75 +61;90;81;61;37;84;63;35;16;94;0;77;53;83;18 +22;16;0;91;17;52;15;31;65;61;85;53;63;88;91 +61;73;0;94;55;84;43;91;47;74;21;55;10;27;77 +77;79;91;53;27;94;82;19;38;57;42;31;19;45;31 diff --git a/18/dat/18-J4.xls b/18/dat/18-J4.xls new file mode 100644 index 0000000..a502b98 Binary files /dev/null and b/18/dat/18-J4.xls differ diff --git a/18/dat/18-J5.csv b/18/dat/18-J5.csv new file mode 100644 index 0000000..fe67ad2 --- /dev/null +++ b/18/dat/18-J5.csv @@ -0,0 +1,15 @@ +49;56;35;57;52;93;91;95;66;80;31;97;98;22;92 +80;33;76;37;58;46;79;85;96;60;57;53;51;61;84 +84;70;51;62;57;78;76;25;28;64;33;59;28;99;78 +83;32;73;94;32;26;92;39;92;45;73;85;28;51;26 +87;75;61;83;26;48;15;59;34;37;18;66;90;26;12 +77;79;84;48;16;79;47;36;75;57;24;41;98;62;42 +52;49;71;66;58;95;86;27;67;73;38;46;39;59;74 +55;29;72;32;44;56;33;42;83;53;11;36;100;90;27 +39;28;71;59;100;83;68;59;80;79;39;73;91;75;13 +46;76;10;30;10;51;76;85;28;10;12;35;100;94;77 +41;63;30;99;88;13;70;67;71;66;22;62;73;49;81 +43;90;67;95;46;30;71;47;64;76;95;70;59;31;58 +22;54;72;87;15;48;92;44;79;66;73;41;42;19;62 +50;16;13;82;83;12;37;99;82;98;93;19;46;62;56 +51;81;99;67;78;45;82;73;73;83;93;94;53;19;68 \ No newline at end of file diff --git a/18/dat/18-J5.xls b/18/dat/18-J5.xls new file mode 100644 index 0000000..9094085 Binary files /dev/null and b/18/dat/18-J5.xls differ diff --git a/18/dat/18-k1.xls b/18/dat/18-k1.xls new file mode 100644 index 0000000..efe6618 Binary files /dev/null and b/18/dat/18-k1.xls differ diff --git a/18/dat/18-k2.xls b/18/dat/18-k2.xls new file mode 100644 index 0000000..54a2412 Binary files /dev/null and b/18/dat/18-k2.xls differ diff --git a/18/dat/18-k3.xls b/18/dat/18-k3.xls new file mode 100644 index 0000000..59801fd Binary files /dev/null and b/18/dat/18-k3.xls differ diff --git a/18/input.txt b/18/input.txt deleted file mode 100644 index fabc2f5..0000000 --- a/18/input.txt +++ /dev/null @@ -1,4 +0,0 @@ -1 8 8 4 -10 1 1 3 -1 3 12 2 -2 3 5 6 \ No newline at end of file