From cb9257e51e3d6237f9e146c09ba1a2370c305d57 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 1 Dec 2019 12:54:43 +0000 Subject: [PATCH] added all 2018 ones i could find --- 2018/.vscode/settings.json | 42 + 2018/1stDay/challenge1/challenge.txt | 25 + 2018/1stDay/challenge1/index.js | 3 + 2018/1stDay/challenge1/input.txt | 1008 +++++++++++++ 2018/1stDay/challenge2/challenge.txt | 21 + 2018/1stDay/challenge2/index.js | 24 + 2018/1stDay/challenge2/input.txt | 1008 +++++++++++++ 2018/2ndDay/challenge1/a.out | Bin 0 -> 19064 bytes 2018/2ndDay/challenge1/challenge.txt | 23 + 2018/2ndDay/challenge1/input.txt | 250 ++++ 2018/2ndDay/challenge1/main.cpp | 36 + 2018/2ndDay/challenge2/a.out | Bin 0 -> 35952 bytes 2018/2ndDay/challenge2/challenge.txt | 15 + 2018/2ndDay/challenge2/input.txt | 250 ++++ 2018/2ndDay/challenge2/main.cpp | 50 + 2018/3rdDay/challenge1/Program.cs | 107 ++ 2018/3rdDay/challenge1/challenge.txt | 40 + 2018/3rdDay/challenge1/challenge1.csproj | 8 + 2018/3rdDay/challenge1/input.txt | 1283 +++++++++++++++++ 2018/3rdDay/challenge2/Program.cs | 115 ++ 2018/3rdDay/challenge2/challenge.txt | 11 + 2018/3rdDay/challenge2/challenge2.csproj | 8 + 2018/3rdDay/challenge2/input.txt | 1283 +++++++++++++++++ 2018/4thDay/challenge1/.vscode/settings.json | 37 + 2018/4thDay/challenge1/a.out | Bin 0 -> 83984 bytes 2018/4thDay/challenge1/challenge.txt | 49 + 2018/4thDay/challenge1/index.js | 71 + 2018/4thDay/challenge1/input.txt | 1000 +++++++++++++ 2018/4thDay/challenge1/main.cpp | 180 +++ 2018/4thDay/challenge2/challenge.txt | 7 + 2018/4thDay/challenge2/index.js | 68 + 2018/4thDay/challenge2/input.txt | 1000 +++++++++++++ 2018/5thDay/.vscode/settings.json | 5 + 2018/5thDay/challenge1/a.out | Bin 0 -> 23848 bytes 2018/5thDay/challenge1/challenge.txt | 22 + 2018/5thDay/challenge1/index.js | 5 + 2018/5thDay/challenge1/input.txt | 1 + .../challenge1/istolethisfromsomeone.js | 44 + 2018/5thDay/challenge1/main.cpp | 43 + 2018/5thDay/challenge2/challenge.txt | 14 + 2018/5thDay/challenge2/input.txt | 1 + 2018/5thDay/challenge2/main.cpp | 0 2018/6thDay/a.out | Bin 0 -> 58720 bytes 2018/6thDay/challenge.txt | 81 ++ 2018/6thDay/input.txt | 50 + 2018/6thDay/main.cpp | 131 ++ 46 files changed, 8419 insertions(+) create mode 100644 2018/.vscode/settings.json create mode 100644 2018/1stDay/challenge1/challenge.txt create mode 100644 2018/1stDay/challenge1/index.js create mode 100644 2018/1stDay/challenge1/input.txt create mode 100644 2018/1stDay/challenge2/challenge.txt create mode 100644 2018/1stDay/challenge2/index.js create mode 100644 2018/1stDay/challenge2/input.txt create mode 100644 2018/2ndDay/challenge1/a.out create mode 100644 2018/2ndDay/challenge1/challenge.txt create mode 100644 2018/2ndDay/challenge1/input.txt create mode 100644 2018/2ndDay/challenge1/main.cpp create mode 100644 2018/2ndDay/challenge2/a.out create mode 100644 2018/2ndDay/challenge2/challenge.txt create mode 100644 2018/2ndDay/challenge2/input.txt create mode 100644 2018/2ndDay/challenge2/main.cpp create mode 100644 2018/3rdDay/challenge1/Program.cs create mode 100644 2018/3rdDay/challenge1/challenge.txt create mode 100644 2018/3rdDay/challenge1/challenge1.csproj create mode 100644 2018/3rdDay/challenge1/input.txt create mode 100644 2018/3rdDay/challenge2/Program.cs create mode 100644 2018/3rdDay/challenge2/challenge.txt create mode 100644 2018/3rdDay/challenge2/challenge2.csproj create mode 100644 2018/3rdDay/challenge2/input.txt create mode 100644 2018/4thDay/challenge1/.vscode/settings.json create mode 100644 2018/4thDay/challenge1/a.out create mode 100644 2018/4thDay/challenge1/challenge.txt create mode 100644 2018/4thDay/challenge1/index.js create mode 100644 2018/4thDay/challenge1/input.txt create mode 100644 2018/4thDay/challenge1/main.cpp create mode 100644 2018/4thDay/challenge2/challenge.txt create mode 100644 2018/4thDay/challenge2/index.js create mode 100644 2018/4thDay/challenge2/input.txt create mode 100644 2018/5thDay/.vscode/settings.json create mode 100644 2018/5thDay/challenge1/a.out create mode 100644 2018/5thDay/challenge1/challenge.txt create mode 100644 2018/5thDay/challenge1/index.js create mode 100644 2018/5thDay/challenge1/input.txt create mode 100644 2018/5thDay/challenge1/istolethisfromsomeone.js create mode 100644 2018/5thDay/challenge1/main.cpp create mode 100644 2018/5thDay/challenge2/challenge.txt create mode 100644 2018/5thDay/challenge2/input.txt create mode 100644 2018/5thDay/challenge2/main.cpp create mode 100644 2018/6thDay/a.out create mode 100644 2018/6thDay/challenge.txt create mode 100644 2018/6thDay/input.txt create mode 100644 2018/6thDay/main.cpp diff --git a/2018/.vscode/settings.json b/2018/.vscode/settings.json new file mode 100644 index 0000000..cd89cd1 --- /dev/null +++ b/2018/.vscode/settings.json @@ -0,0 +1,42 @@ +{ + "files.associations": { + "cmath": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "cwchar": "cpp", + "exception": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "ios": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "limits": "cpp", + "memory": "cpp", + "new": "cpp", + "ostream": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "string": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "typeinfo": "cpp", + "utility": "cpp", + "vector": "cpp", + "xfacet": "cpp", + "xiosbase": "cpp", + "xlocale": "cpp", + "xlocinfo": "cpp", + "xlocnum": "cpp", + "xmemory": "cpp", + "xmemory0": "cpp", + "xstddef": "cpp", + "xstring": "cpp", + "xtr1common": "cpp", + "xutility": "cpp" + } +} \ No newline at end of file diff --git a/2018/1stDay/challenge1/challenge.txt b/2018/1stDay/challenge1/challenge.txt new file mode 100644 index 0000000..7d8ae37 --- /dev/null +++ b/2018/1stDay/challenge1/challenge.txt @@ -0,0 +1,25 @@ +--- Day 1: Chronal Calibration --- +"We've detected some temporal anomalies," one of Santa's Elves at the Temporal Anomaly Research and Detection Instrument Station tells you. She sounded pretty worried when she called you down here. "At 500-year intervals into the past, someone has been changing Santa's history!" + +"The good news is that the changes won't propagate to our time stream for another 25 days, and we have a device" - she attaches something to your wrist - "that will let you fix the changes with no such propagation delay. It's configured to send you 500 years further into the past every few days; that was the best we could do on such short notice." + +"The bad news is that we are detecting roughly fifty anomalies throughout time; the device will indicate fixed anomalies with stars. The other bad news is that we only have one device and you're the best person for the job! Good lu--" She taps a button on the device and you suddenly feel like you're falling. To save Christmas, you need to get all fifty stars by December 25th. + +Collect stars by solving puzzles. Two puzzles will be made available on each day in the advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck! + +After feeling like you've been falling for a few minutes, you look at the device's tiny screen. "Error: Device must be calibrated before first use. Frequency drift detected. Cannot maintain destination lock." Below the message, the device shows a sequence of changes in frequency (your puzzle input). A value like +6 means the current frequency increases by 6; a value like -3 means the current frequency decreases by 3. + +For example, if the device displays frequency changes of +1, -2, +3, +1, then starting from a frequency of zero, the following changes would occur: + +Current frequency 0, change of +1; resulting frequency 1. +Current frequency 1, change of -2; resulting frequency -1. +Current frequency -1, change of +3; resulting frequency 2. +Current frequency 2, change of +1; resulting frequency 3. +In this example, the resulting frequency is 3. + +Here are other example situations: + ++1, +1, +1 results in 3 ++1, +1, -2 results in 0 +-1, -2, -3 results in -6 +Starting with a frequency of zero, what is the resulting frequency after all of the changes in frequency have been applied? \ No newline at end of file diff --git a/2018/1stDay/challenge1/index.js b/2018/1stDay/challenge1/index.js new file mode 100644 index 0000000..452be34 --- /dev/null +++ b/2018/1stDay/challenge1/index.js @@ -0,0 +1,3 @@ +const fs = require('fs'); +let input = fs.readFileSync('input.txt').toString().split('\n').join(''); +console.log(eval(input)); diff --git a/2018/1stDay/challenge1/input.txt b/2018/1stDay/challenge1/input.txt new file mode 100644 index 0000000..0d7449e --- /dev/null +++ b/2018/1stDay/challenge1/input.txt @@ -0,0 +1,1008 @@ ++15 +-7 ++16 ++5 ++12 ++16 +-4 ++10 +-1 ++14 +-16 ++6 ++4 ++11 +-2 ++5 ++4 ++12 ++13 ++5 ++16 ++18 +-3 +-2 ++9 +-10 ++12 +-10 +-17 ++12 +-14 +-14 ++11 ++1 +-16 ++11 +-5 ++20 +-1 ++14 +-15 +-10 +-5 ++4 +-17 +-13 +-2 +-12 +-15 ++12 ++8 +-3 ++13 ++17 ++21 ++21 ++8 ++9 +-5 +-15 +-19 +-9 +-17 +-5 ++15 ++12 ++14 ++19 +-2 ++15 +-6 ++19 +-2 ++4 +-5 +-8 +-4 ++10 ++1 +-5 ++10 ++12 ++14 +-2 ++11 +-3 +-15 +-6 ++14 ++3 ++8 ++10 ++14 ++11 ++18 ++3 +-4 +-5 +-13 ++17 +-12 +-8 +-5 ++7 ++7 +-10 +-19 ++17 ++1 ++17 +-5 +-9 +-10 +-9 +-1 +-3 +-14 ++11 ++1 ++11 ++1 ++2 +-17 ++4 ++19 ++17 ++6 ++18 +-4 ++3 +-13 ++7 +-3 ++19 ++5 ++2 ++6 ++12 ++5 +-7 ++10 ++16 +-9 +-16 ++11 ++10 ++2 ++7 +-16 ++6 ++16 ++17 ++11 ++11 +-14 ++11 +-16 +-13 ++6 ++8 ++10 +-4 +-5 ++2 ++5 +-18 ++19 +-11 +-5 +-5 +-5 +-16 +-5 ++16 ++7 +-10 +-20 +-14 +-18 ++13 ++9 +-10 ++18 +-7 +-8 +-4 ++13 ++9 ++18 ++20 +-10 +-14 +-22 +-21 +-10 ++20 +-7 +-9 ++1 ++11 ++6 ++12 ++14 +-5 ++16 ++13 ++8 +-2 +-13 +-2 ++11 ++21 ++9 +-5 ++1 ++18 ++6 ++18 +-17 ++3 ++7 +-2 +-3 ++1 ++7 ++17 ++16 ++4 ++13 ++7 ++17 +-18 ++17 ++2 ++19 +-11 ++2 ++2 ++1 +-16 +-19 +-4 +-17 +-8 +-5 ++12 +-8 ++19 ++3 ++17 ++3 ++3 ++8 ++3 +-13 ++12 +-7 ++9 ++16 ++15 ++3 +-6 +-10 ++14 +-13 +-8 ++4 ++12 ++19 ++17 ++18 +-12 +-11 ++7 +-1 +-7 +-28 +-19 +-6 ++2 ++15 ++3 +-12 +-15 ++5 +-15 +-8 +-16 +-17 ++8 +-7 ++3 ++6 +-18 ++10 +-17 +-9 +-13 ++20 +-13 +-12 +-12 ++9 +-2 ++6 +-10 +-1 ++14 +-18 +-14 ++2 ++25 +-16 +-17 ++19 ++8 ++14 +-15 +-17 ++40 ++21 +-19 ++4 ++3 +-2 ++9 +-2 +-3 ++15 +-9 +-18 ++9 ++7 ++27 ++3 ++8 ++6 ++2 +-13 ++4 +-16 ++26 +-15 +-8 +-16 ++17 +-18 ++33 ++9 ++68 ++8 ++20 +-9 +-8 ++28 ++15 ++15 ++9 ++12 ++20 ++5 ++16 ++22 +-5 ++8 ++14 ++6 ++6 ++10 ++10 ++7 +-13 +-8 ++10 ++9 ++13 +-15 +-15 ++13 ++8 ++5 ++25 +-10 ++21 ++16 ++10 +-16 ++1 +-57 ++13 +-20 +-30 ++2 ++7 ++15 +-18 +-28 +-13 ++1 +-9 +-6 +-2 +-13 ++11 +-4 +-1 +-9 +-13 +-13 ++12 +-14 ++12 +-13 +-7 +-2 +-15 +-2 ++3 ++32 ++13 ++12 +-4 +-19 +-5 ++22 +-29 +-24 +-25 +-6 +-12 +-9 ++3 +-15 ++3 +-5 ++20 +-10 +-34 +-77 +-9 +-9 +-23 +-6 ++8 ++9 ++47 +-82 +-21 ++38 +-61 ++11 +-65 +-37 +-22 ++2 ++12 +-26 +-20 +-4 ++6 +-7 ++14 ++6 ++11 ++19 +-32 ++10 +-74 ++9 +-64 +-59 +-92 +-10 +-92 +-18 +-23 +-64754 +-2 +-16 +-6 +-19 ++6 +-12 +-10 ++14 ++9 ++11 ++12 ++15 ++2 +-14 +-11 ++13 +-1 +-18 +-3 ++19 ++16 ++12 ++14 +-19 +-11 ++9 +-7 ++13 ++20 +-1 ++2 ++13 ++10 ++15 ++15 ++13 +-15 +-7 +-10 ++9 ++2 ++7 ++18 +-9 ++6 +-8 ++4 ++18 +-17 ++12 ++14 ++14 +-15 +-12 +-17 ++18 +-16 ++6 +-13 +-23 +-5 ++9 +-10 +-16 +-19 ++1 ++12 +-18 +-9 +-1 ++5 +-9 ++11 ++1 ++1 ++17 +-20 ++5 +-17 +-13 +-9 +-18 +-11 +-19 +-13 ++11 +-4 ++19 +-5 ++9 ++18 ++8 +-12 +-10 +-14 ++17 ++20 ++12 ++15 +-22 +-12 ++9 +-5 +-19 ++18 ++19 +-8 +-23 +-18 +-1 +-4 +-16 ++1 +-16 ++19 +-11 +-19 +-8 +-15 +-12 +-4 +-15 ++10 ++3 ++15 +-19 ++11 ++5 ++8 +-19 ++3 +-18 ++4 +-8 ++1 ++5 +-13 +-20 ++7 +-8 +-2 ++16 ++13 +-8 +-12 ++2 ++3 ++13 +-9 ++15 ++9 +-16 +-1 +-21 ++8 +-17 +-6 +-2 +-18 +-10 +-6 +-13 +-19 +-1 ++10 +-3 +-9 +-9 ++8 ++2 ++17 +-3 ++5 +-6 +-17 ++13 ++16 +-10 ++3 ++12 ++15 +-13 +-12 +-23 ++10 ++16 ++3 +-14 +-6 +-14 ++11 ++13 ++20 ++8 +-15 ++19 +-10 ++1 +-6 ++14 ++13 ++7 +-15 +-1 +-5 +-3 +-19 ++4 ++7 +-13 +-12 +-19 ++4 +-2 +-15 +-1 ++10 +-13 +-1 +-10 ++7 ++11 +-1 +-9 ++14 +-9 +-15 ++14 +-7 +-15 +-16 +-14 ++12 +-5 +-5 ++11 +-5 ++7 ++18 +-1 +-14 +-14 +-1 +-12 ++1 ++1 ++6 ++18 +-11 +-12 +-14 +-2 ++1 +-3 +-20 +-8 +-8 +-3 ++17 ++7 ++4 ++21 ++19 +-10 ++6 ++20 ++16 +-17 ++7 +-11 ++7 ++8 +-2 ++20 +-14 ++21 ++4 ++3 ++3 +-7 ++23 +-17 +-24 ++5 ++15 +-27 +-10 +-2 +-12 +-23 ++2 +-25 +-11 ++19 +-30 +-17 +-15 ++2 ++16 ++8 ++10 ++1 +-15 +-10 ++9 +-18 +-17 ++23 +-15 ++17 ++6 +-19 ++15 +-7 ++2 +-15 ++21 +-24 +-15 +-4 ++14 ++2 ++18 ++34 ++6 ++8 +-19 +-6 +-12 ++3 +-15 +-12 +-37 ++2 ++9 +-22 +-31 +-5 ++1 +-16 ++19 ++10 +-19 +-22 +-14 +-6 +-18 ++10 +-6 ++17 ++18 +-19 +-15 ++3 +-16 ++20 ++10 +-19 ++10 +-6 ++20 ++19 ++11 +-17 ++13 +-20 +-4 ++20 +-18 +-12 +-8 +-18 +-18 ++6 +-2 ++5 +-17 +-7 +-12 +-5 +-9 ++11 +-9 +-11 +-12 +-4 +-4 +-1 +-2 ++14 +-13 ++17 +-12 +-19 ++23 ++12 +-5 ++16 ++15 +-9 +-12 +-11 +-17 +-17 +-6 ++22 ++21 ++12 ++19 ++13 ++22 ++19 +-11 ++2 +-7 ++8 +-12 +-18 ++6 +-5 +-13 +-34 +-11 +-1 +-4 ++20 ++63 +-4 +-14 +-24 +-20 +-31 +-90 +-8 +-9 +-21 +-16 ++27 +-19 +-9 +-183 +-3 +-10 +-16 ++9 +-10 ++11 ++11 ++19 ++32 +-2 +-3 +-81 ++12 ++16 ++5 +-1 ++17 +-28 ++32 ++22 ++39 +-115 +-2 ++183 ++108 ++1 +-19 ++14 ++3 ++39 +-10 ++33 ++14 +-161 +-885 +-63592 +-9 +-10 ++3 +-4 +-4 ++19 ++16 ++20 ++14 +-3 +-18 +-10 +-5 +-7 ++17 +-16 ++5 +-4 +-18 ++10 ++1 ++18 ++1 ++2 +-19 +-6 +-19 +-12 +-13 +-4 ++20 +-7 ++2 +-4 ++15 +-21 +-4 +-16 +-5 ++17 +-10 ++9 +-5 ++18 ++21 +-6 ++9 +-19 +-6 ++17 +-2 +-5 ++24 ++130793 \ No newline at end of file diff --git a/2018/1stDay/challenge2/challenge.txt b/2018/1stDay/challenge2/challenge.txt new file mode 100644 index 0000000..a19d994 --- /dev/null +++ b/2018/1stDay/challenge2/challenge.txt @@ -0,0 +1,21 @@ +--- Part Two --- +You notice that the device repeats the same frequency change list over and over. To calibrate the device, you need to find the first frequency it reaches twice. + +For example, using the same list of changes above, the device would loop as follows: + +Current frequency 0, change of +1; resulting frequency 1. +Current frequency 1, change of -2; resulting frequency -1. +Current frequency -1, change of +3; resulting frequency 2. +Current frequency 2, change of +1; resulting frequency 3. +(At this point, the device continues from the start of the list.) +Current frequency 3, change of +1; resulting frequency 4. +Current frequency 4, change of -2; resulting frequency 2, which has already been seen. +In this example, the first frequency reached twice is 2. Note that your device might need to repeat its list of frequency changes many times before a duplicate frequency is found, and that duplicates might be found while in the middle of processing the list. + +Here are other examples: + ++1, -1 first reaches 0 twice. ++3, +3, +4, -2, -4 first reaches 10 twice. +-6, +3, +8, +5, -6 first reaches 5 twice. ++7, +7, -2, -7, -4 first reaches 14 twice. +What is the first frequency your device reaches twice? \ No newline at end of file diff --git a/2018/1stDay/challenge2/index.js b/2018/1stDay/challenge2/index.js new file mode 100644 index 0000000..76b25d3 --- /dev/null +++ b/2018/1stDay/challenge2/index.js @@ -0,0 +1,24 @@ +const fs = require('fs'); +let input = fs.readFileSync('input.txt') + .toString() + .split('\n') + .map((x) => parseInt(x)); + +let seenFrequencies = new Set([0]); +let total = 0; +let i = 0; + +while (true) { + if (i === input.length) { + i = 0; + continue; + } + total += input[i]; + if (seenFrequencies.has(total)) { + break; + } + seenFrequencies.add(total); + i++; +} + +console.log(total) diff --git a/2018/1stDay/challenge2/input.txt b/2018/1stDay/challenge2/input.txt new file mode 100644 index 0000000..0d7449e --- /dev/null +++ b/2018/1stDay/challenge2/input.txt @@ -0,0 +1,1008 @@ ++15 +-7 ++16 ++5 ++12 ++16 +-4 ++10 +-1 ++14 +-16 ++6 ++4 ++11 +-2 ++5 ++4 ++12 ++13 ++5 ++16 ++18 +-3 +-2 ++9 +-10 ++12 +-10 +-17 ++12 +-14 +-14 ++11 ++1 +-16 ++11 +-5 ++20 +-1 ++14 +-15 +-10 +-5 ++4 +-17 +-13 +-2 +-12 +-15 ++12 ++8 +-3 ++13 ++17 ++21 ++21 ++8 ++9 +-5 +-15 +-19 +-9 +-17 +-5 ++15 ++12 ++14 ++19 +-2 ++15 +-6 ++19 +-2 ++4 +-5 +-8 +-4 ++10 ++1 +-5 ++10 ++12 ++14 +-2 ++11 +-3 +-15 +-6 ++14 ++3 ++8 ++10 ++14 ++11 ++18 ++3 +-4 +-5 +-13 ++17 +-12 +-8 +-5 ++7 ++7 +-10 +-19 ++17 ++1 ++17 +-5 +-9 +-10 +-9 +-1 +-3 +-14 ++11 ++1 ++11 ++1 ++2 +-17 ++4 ++19 ++17 ++6 ++18 +-4 ++3 +-13 ++7 +-3 ++19 ++5 ++2 ++6 ++12 ++5 +-7 ++10 ++16 +-9 +-16 ++11 ++10 ++2 ++7 +-16 ++6 ++16 ++17 ++11 ++11 +-14 ++11 +-16 +-13 ++6 ++8 ++10 +-4 +-5 ++2 ++5 +-18 ++19 +-11 +-5 +-5 +-5 +-16 +-5 ++16 ++7 +-10 +-20 +-14 +-18 ++13 ++9 +-10 ++18 +-7 +-8 +-4 ++13 ++9 ++18 ++20 +-10 +-14 +-22 +-21 +-10 ++20 +-7 +-9 ++1 ++11 ++6 ++12 ++14 +-5 ++16 ++13 ++8 +-2 +-13 +-2 ++11 ++21 ++9 +-5 ++1 ++18 ++6 ++18 +-17 ++3 ++7 +-2 +-3 ++1 ++7 ++17 ++16 ++4 ++13 ++7 ++17 +-18 ++17 ++2 ++19 +-11 ++2 ++2 ++1 +-16 +-19 +-4 +-17 +-8 +-5 ++12 +-8 ++19 ++3 ++17 ++3 ++3 ++8 ++3 +-13 ++12 +-7 ++9 ++16 ++15 ++3 +-6 +-10 ++14 +-13 +-8 ++4 ++12 ++19 ++17 ++18 +-12 +-11 ++7 +-1 +-7 +-28 +-19 +-6 ++2 ++15 ++3 +-12 +-15 ++5 +-15 +-8 +-16 +-17 ++8 +-7 ++3 ++6 +-18 ++10 +-17 +-9 +-13 ++20 +-13 +-12 +-12 ++9 +-2 ++6 +-10 +-1 ++14 +-18 +-14 ++2 ++25 +-16 +-17 ++19 ++8 ++14 +-15 +-17 ++40 ++21 +-19 ++4 ++3 +-2 ++9 +-2 +-3 ++15 +-9 +-18 ++9 ++7 ++27 ++3 ++8 ++6 ++2 +-13 ++4 +-16 ++26 +-15 +-8 +-16 ++17 +-18 ++33 ++9 ++68 ++8 ++20 +-9 +-8 ++28 ++15 ++15 ++9 ++12 ++20 ++5 ++16 ++22 +-5 ++8 ++14 ++6 ++6 ++10 ++10 ++7 +-13 +-8 ++10 ++9 ++13 +-15 +-15 ++13 ++8 ++5 ++25 +-10 ++21 ++16 ++10 +-16 ++1 +-57 ++13 +-20 +-30 ++2 ++7 ++15 +-18 +-28 +-13 ++1 +-9 +-6 +-2 +-13 ++11 +-4 +-1 +-9 +-13 +-13 ++12 +-14 ++12 +-13 +-7 +-2 +-15 +-2 ++3 ++32 ++13 ++12 +-4 +-19 +-5 ++22 +-29 +-24 +-25 +-6 +-12 +-9 ++3 +-15 ++3 +-5 ++20 +-10 +-34 +-77 +-9 +-9 +-23 +-6 ++8 ++9 ++47 +-82 +-21 ++38 +-61 ++11 +-65 +-37 +-22 ++2 ++12 +-26 +-20 +-4 ++6 +-7 ++14 ++6 ++11 ++19 +-32 ++10 +-74 ++9 +-64 +-59 +-92 +-10 +-92 +-18 +-23 +-64754 +-2 +-16 +-6 +-19 ++6 +-12 +-10 ++14 ++9 ++11 ++12 ++15 ++2 +-14 +-11 ++13 +-1 +-18 +-3 ++19 ++16 ++12 ++14 +-19 +-11 ++9 +-7 ++13 ++20 +-1 ++2 ++13 ++10 ++15 ++15 ++13 +-15 +-7 +-10 ++9 ++2 ++7 ++18 +-9 ++6 +-8 ++4 ++18 +-17 ++12 ++14 ++14 +-15 +-12 +-17 ++18 +-16 ++6 +-13 +-23 +-5 ++9 +-10 +-16 +-19 ++1 ++12 +-18 +-9 +-1 ++5 +-9 ++11 ++1 ++1 ++17 +-20 ++5 +-17 +-13 +-9 +-18 +-11 +-19 +-13 ++11 +-4 ++19 +-5 ++9 ++18 ++8 +-12 +-10 +-14 ++17 ++20 ++12 ++15 +-22 +-12 ++9 +-5 +-19 ++18 ++19 +-8 +-23 +-18 +-1 +-4 +-16 ++1 +-16 ++19 +-11 +-19 +-8 +-15 +-12 +-4 +-15 ++10 ++3 ++15 +-19 ++11 ++5 ++8 +-19 ++3 +-18 ++4 +-8 ++1 ++5 +-13 +-20 ++7 +-8 +-2 ++16 ++13 +-8 +-12 ++2 ++3 ++13 +-9 ++15 ++9 +-16 +-1 +-21 ++8 +-17 +-6 +-2 +-18 +-10 +-6 +-13 +-19 +-1 ++10 +-3 +-9 +-9 ++8 ++2 ++17 +-3 ++5 +-6 +-17 ++13 ++16 +-10 ++3 ++12 ++15 +-13 +-12 +-23 ++10 ++16 ++3 +-14 +-6 +-14 ++11 ++13 ++20 ++8 +-15 ++19 +-10 ++1 +-6 ++14 ++13 ++7 +-15 +-1 +-5 +-3 +-19 ++4 ++7 +-13 +-12 +-19 ++4 +-2 +-15 +-1 ++10 +-13 +-1 +-10 ++7 ++11 +-1 +-9 ++14 +-9 +-15 ++14 +-7 +-15 +-16 +-14 ++12 +-5 +-5 ++11 +-5 ++7 ++18 +-1 +-14 +-14 +-1 +-12 ++1 ++1 ++6 ++18 +-11 +-12 +-14 +-2 ++1 +-3 +-20 +-8 +-8 +-3 ++17 ++7 ++4 ++21 ++19 +-10 ++6 ++20 ++16 +-17 ++7 +-11 ++7 ++8 +-2 ++20 +-14 ++21 ++4 ++3 ++3 +-7 ++23 +-17 +-24 ++5 ++15 +-27 +-10 +-2 +-12 +-23 ++2 +-25 +-11 ++19 +-30 +-17 +-15 ++2 ++16 ++8 ++10 ++1 +-15 +-10 ++9 +-18 +-17 ++23 +-15 ++17 ++6 +-19 ++15 +-7 ++2 +-15 ++21 +-24 +-15 +-4 ++14 ++2 ++18 ++34 ++6 ++8 +-19 +-6 +-12 ++3 +-15 +-12 +-37 ++2 ++9 +-22 +-31 +-5 ++1 +-16 ++19 ++10 +-19 +-22 +-14 +-6 +-18 ++10 +-6 ++17 ++18 +-19 +-15 ++3 +-16 ++20 ++10 +-19 ++10 +-6 ++20 ++19 ++11 +-17 ++13 +-20 +-4 ++20 +-18 +-12 +-8 +-18 +-18 ++6 +-2 ++5 +-17 +-7 +-12 +-5 +-9 ++11 +-9 +-11 +-12 +-4 +-4 +-1 +-2 ++14 +-13 ++17 +-12 +-19 ++23 ++12 +-5 ++16 ++15 +-9 +-12 +-11 +-17 +-17 +-6 ++22 ++21 ++12 ++19 ++13 ++22 ++19 +-11 ++2 +-7 ++8 +-12 +-18 ++6 +-5 +-13 +-34 +-11 +-1 +-4 ++20 ++63 +-4 +-14 +-24 +-20 +-31 +-90 +-8 +-9 +-21 +-16 ++27 +-19 +-9 +-183 +-3 +-10 +-16 ++9 +-10 ++11 ++11 ++19 ++32 +-2 +-3 +-81 ++12 ++16 ++5 +-1 ++17 +-28 ++32 ++22 ++39 +-115 +-2 ++183 ++108 ++1 +-19 ++14 ++3 ++39 +-10 ++33 ++14 +-161 +-885 +-63592 +-9 +-10 ++3 +-4 +-4 ++19 ++16 ++20 ++14 +-3 +-18 +-10 +-5 +-7 ++17 +-16 ++5 +-4 +-18 ++10 ++1 ++18 ++1 ++2 +-19 +-6 +-19 +-12 +-13 +-4 ++20 +-7 ++2 +-4 ++15 +-21 +-4 +-16 +-5 ++17 +-10 ++9 +-5 ++18 ++21 +-6 ++9 +-19 +-6 ++17 +-2 +-5 ++24 ++130793 \ No newline at end of file diff --git a/2018/2ndDay/challenge1/a.out b/2018/2ndDay/challenge1/a.out new file mode 100644 index 0000000000000000000000000000000000000000..f070164d8c2eb05f9e6a3cb0bde4910042e4ed41 GIT binary patch literal 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0%ac|9q~=@Mad&u*jS^0Xm%p(%h!P=S%#5Rf^-y?KAv0=v3pw`g~40N-1C{ET^yw zIMaUy2CprW;qz4fzcu{-X?T9K9{Y6=I@Bj_pU+)iT1wWio)pM`vp&Of;5hX~P>a?o z_>@K&upYxoC_DA}yyPjZ&+EKcpYfScCR^ +#include +#include + +bool isRepeat(std::string line, int repeats) { + for (char c = 'a'; c <= 'z'; ++c) { + int count = 0; + for (size_t i = 0; i < line.size(); ++i) { + if (line[i] == c) + ++count; + } + if (count == repeats) + return true; + } + return false; +} + +int checkSum(std::string fileName) { + std::fstream input(fileName); + std::string line; + int doubles = 0; + int triples = 0; + + while (!input.eof()) { + std::getline(input, line); + if (isRepeat(line, 2)) + ++doubles; + if (isRepeat(line, 3)) + ++triples; + } + return doubles * triples; +} + +int main(int argc, char** argv) { + std::cout << "Found: " << checkSum("input.txt") << std::endl; +} diff --git a/2018/2ndDay/challenge2/a.out b/2018/2ndDay/challenge2/a.out new file mode 100644 index 0000000000000000000000000000000000000000..78b30fc40c4b0f9aeaa707673f6f2e772311928f GIT binary patch literal 35952 zcmeHw4SZD9nfIN1KPG^(Fp(fBNi0S2W|EnZsYxcCOdy~r zZIIV7hGko7X|*k_?ylYK{+exB>vk;!VF|WwH@2>&wY7PDv7Nlonzqz8t?0b}=bY!< zIde0^E7|GpyT4x!B+ot1*Llu!&UwzcC-L~gFclry1!x8g92 za--C^6u;*f*BMiQ&caVQlbx_7LlP9sVZKa2l6!{fPB@$S6jT-xB)L?n;R;Dn(8!Z{ zlFOz`H~m6#i{CcfJYD7$)a68Z<;?GZXD^j_1$8;{&B1k&esFUl>>vjq9Z;2FJINg+ z_Z-VT$8rkhvA+~l{v>1&NnZ&6{B#U6+(oZakdF`V>@hABG&+`F;~u z&)C4_rSeMym!}}L8>J7n1{#-@e6ZEGxHZt;)xEg8blKu%B?Xl1Uj|8C<$;YQ=kzAdvKa{rGNqPTgWlMY$0zZBPmqcr6Ie%ndNtGV=)va!xzDrWOyq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s@W zr}%w+R@E^?oF6x3vf3?ie3}}|gQC(Tf3O(e?h~8B=|)Z4B!ZV{w}Cn)#hsKNzQ(7a zCsyA7qsw0Wr=O`c5nL;PIF?Jn}N`DW8i+&~tn) z{P1Iw_WL^Oy&XKZm5_*6PxO4$RQxD;^bY@+rstV-dG-E}g7Xw3L#I4F zNBlP4B~#_A_v;i?&pF{Sb&+xyDsU$*=ovUAuin2?a34QsipR}`pOicv0~F~l{3aG9 zuiocVP`$q=x#RC?sQkUSpm*hzym~)L!D?ny_A5RG?*pCQy;FJh9+QH*Sf1=BJC*&6 zHg@2Ge5&Nt`%Vg~_y1J+N?z4}H_NYNg#-Mcn1TmcG0BsRQ+_XS)ThWkk=%(8k9j5} zXZuG$)#cr8$*!O{BSq7Y$JYw(M_!j#?_(*b>{TjMUcoOosr^;hyGET`Z+MPLQa@{c&=)q7-G?0mzX5Rr%`uxRdKin_-knVES!;Vy+R;gtRAyX1KvmK-xkxt848HC^U$ z`GrnA%cq)ulv;w0E-Ew?vb>uejmLuxdh}J +#include +#include +#include + +std::string equalLetters(std::string fileName) { + std::fstream input(fileName); + std::string line; + std::string a; + std::string b; + std::string answer; + std::vector lines; + + while (!input.eof()) { + std::getline(input, line); + lines.push_back(line); + } + + for (size_t i = 0; i < lines.size(); ++i) { + int count = 0; + a = lines[i]; + + for (size_t j = i + 1; j < lines.size(); ++j) { + b = lines[j]; + count = 0; + + for (size_t k = 0; k < a.size(); ++k) { + if (a[k] != b[k]) + ++count; + if (count > 1) + break; + } + if (count == 1) + break; + } + if (count == 1) + break; + } + + for (size_t i = 0; i < a.size(); ++i) { + if (a[i] == b[i]) + answer += a[i]; + } + + return answer; +} + +int main(int argc, char** argv) { + std::cout << "Found: " << equalLetters("input.txt") << std::endl; +} diff --git a/2018/3rdDay/challenge1/Program.cs b/2018/3rdDay/challenge1/Program.cs new file mode 100644 index 0000000..ec907d4 --- /dev/null +++ b/2018/3rdDay/challenge1/Program.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; + +namespace challenge1 { + class Program { + static string[] Lines {get; set;} + static List Claims {get; set;} + + static void Main(string[] args) { + Claims = new List(); + Console.WriteLine("Reading input.txt"); + Lines = File.ReadAllLines("./input.txt"); + foreach (string line in Lines) { + Claim current = new Claim(line); + Claims.Add(current); + current.Print(); + } + Fabric fabric = new Fabric(Claims); + Console.WriteLine("Found: " + fabric.CalculateOverlaps() + " overlaps"); + } + + public static void printArray(string[] arr) { + foreach (string str in arr) { + Console.WriteLine(str); + } + } + } + + class Claim { + public int ID {get; set;} + public int X {get; set;} + public int Y {get; set;} + public int W {get; set;} + public int H {get; set;} + public string Source {get; set;} + + public Claim(string source) { + this.Source = source; + ParseSource(); + } + + private void ParseSource() { + Console.WriteLine("Parsing: " + this.Source); + string[] source = this.Source.Split('#'); + string[] idAndRest = source[1].Split('@'); + this.ID = int.Parse(idAndRest[0]); + string[] fromSides = idAndRest[1].Split(','); + string[] afterColon = fromSides[1].Split(':'); + this.X = int.Parse(fromSides[0]); + this.Y = int.Parse(afterColon[0]); + string[] dimensions = afterColon[1].Split('x'); + this.W = int.Parse(dimensions[0]); + this.H = int.Parse(dimensions[1]); + } + + public void Print() { + Console.WriteLine("Claim ID: " + this.ID); + Console.WriteLine("X, Y: " + this.X + ',' + this.Y); + Console.WriteLine("Dimensions: " + this.W + 'x' + this.H); + Console.WriteLine("Parsed from source: " + this.Source); + Console.WriteLine(); + } + } + + class Fabric { + public List Claims; + + private int[,] Board; + + public Fabric(List claims) { + this.Claims = claims; + this.Board = new int[10000, 10000]; + + for (int i = 0; i < 10000; i++) { + for (int j = 0; j < 10000; j++) { + Board[i, j] = 0; + } + } + } + + public int CalculateOverlaps() { + int overlaps = 0; + + int i = 0; + foreach (Claim claim in this.Claims) { + Console.WriteLine("Processing claim ID: " + claim.ID); + + for (int x = claim.X; x < claim.X + claim.W; x++) { + for (int y = claim.Y; y < claim.Y + claim.H; y++) { + Board[x, y]++; + } + } + i++; + } + + for (i = 0; i < 10000; i++) { + for (int j = 0; j < 10000; j++) { + if (Board[i,j] > 1) overlaps++; + } + } + + return overlaps; + } + } +} diff --git a/2018/3rdDay/challenge1/challenge.txt b/2018/3rdDay/challenge1/challenge.txt new file mode 100644 index 0000000..c24e866 --- /dev/null +++ b/2018/3rdDay/challenge1/challenge.txt @@ -0,0 +1,40 @@ +--- Day 3: No Matter How You Slice It --- +The Elves managed to locate the chimney-squeeze prototype fabric for Santa's suit (thanks to someone who helpfully wrote its box IDs on the wall of the warehouse in the middle of the night). Unfortunately, anomalies are still affecting them - nobody can even agree on how to cut the fabric. + +The whole piece of fabric they're working on is a very large square - at least 1000 inches on each side. + +Each Elf has made a claim about which area of fabric would be ideal for Santa's suit. All claims have an ID and consist of a single rectangle with edges parallel to the edges of the fabric. Each claim's rectangle is defined as follows: + +The number of inches between the left edge of the fabric and the left edge of the rectangle. +The number of inches between the top edge of the fabric and the top edge of the rectangle. +The width of the rectangle in inches. +The height of the rectangle in inches. +A claim like #123 @ 3,2: 5x4 means that claim ID 123 specifies a rectangle 3 inches from the left edge, 2 inches from the top edge, 5 inches wide, and 4 inches tall. Visually, it claims the square inches of fabric represented by # (and ignores the square inches of fabric represented by .) in the diagram below: + +........... +........... +...#####... +...#####... +...#####... +...#####... +........... +........... +........... +The problem is that many of the claims overlap, causing two or more claims to cover part of the same areas. For example, consider the following claims: + +#1 @ 1,3: 4x4 +#2 @ 3,1: 4x4 +#3 @ 5,5: 2x2 +Visually, these claim the following areas: + +........ +...2222. +...2222. +.11XX22. +.11XX22. +.111133. +.111133. +........ +The four square inches marked with X are claimed by both 1 and 2. (Claim 3, while adjacent to the others, does not overlap either of them.) + +If the Elves all proceed with their own plans, none of them will have enough fabric. How many square inches of fabric are within two or more claims? \ No newline at end of file diff --git a/2018/3rdDay/challenge1/challenge1.csproj b/2018/3rdDay/challenge1/challenge1.csproj new file mode 100644 index 0000000..23df604 --- /dev/null +++ b/2018/3rdDay/challenge1/challenge1.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.1 + + + diff --git a/2018/3rdDay/challenge1/input.txt b/2018/3rdDay/challenge1/input.txt new file mode 100644 index 0000000..0a0580f --- /dev/null +++ b/2018/3rdDay/challenge1/input.txt @@ -0,0 +1,1283 @@ +#1 @ 179,662: 16x27 +#2 @ 609,961: 25x21 +#3 @ 73,376: 23x28 +#4 @ 599,405: 26x25 +#5 @ 28,933: 19x29 +#6 @ 441,852: 29x23 +#7 @ 512,396: 15x17 +#8 @ 702,415: 14x10 +#9 @ 730,587: 27x21 +#10 @ 252,715: 17x27 +#11 @ 541,822: 21x13 +#12 @ 901,802: 12x24 +#13 @ 759,349: 15x26 +#14 @ 862,839: 22x25 +#15 @ 862,576: 17x16 +#16 @ 265,967: 11x25 +#17 @ 124,444: 23x25 +#18 @ 971,141: 25x15 +#19 @ 864,246: 22x27 +#20 @ 841,34: 17x15 +#21 @ 173,462: 19x22 +#22 @ 122,22: 27x20 +#23 @ 327,178: 12x19 +#24 @ 576,663: 21x10 +#25 @ 410,958: 11x12 +#26 @ 676,145: 14x10 +#27 @ 177,676: 10x22 +#28 @ 663,60: 23x15 +#29 @ 686,352: 24x19 +#30 @ 68,618: 18x12 +#31 @ 20,643: 19x18 +#32 @ 683,128: 19x22 +#33 @ 88,45: 28x25 +#34 @ 442,736: 20x29 +#35 @ 824,825: 13x13 +#36 @ 668,253: 25x27 +#37 @ 254,404: 27x25 +#38 @ 712,260: 26x17 +#39 @ 588,470: 21x20 +#40 @ 114,148: 11x26 +#41 @ 242,409: 17x26 +#42 @ 342,481: 24x21 +#43 @ 104,187: 27x12 +#44 @ 440,919: 13x22 +#45 @ 177,312: 22x15 +#46 @ 249,925: 29x15 +#47 @ 376,750: 19x20 +#48 @ 157,760: 21x21 +#49 @ 760,833: 28x15 +#50 @ 955,909: 26x12 +#51 @ 941,896: 17x25 +#52 @ 154,33: 29x20 +#53 @ 236,275: 27x29 +#54 @ 848,800: 11x18 +#55 @ 950,130: 28x24 +#56 @ 351,564: 21x11 +#57 @ 32,70: 17x11 +#58 @ 215,219: 22x18 +#59 @ 816,714: 15x21 +#60 @ 738,879: 16x27 +#61 @ 218,896: 26x27 +#62 @ 953,363: 16x19 +#63 @ 836,508: 28x13 +#64 @ 839,14: 12x21 +#65 @ 831,683: 24x15 +#66 @ 809,698: 12x26 +#67 @ 887,296: 23x11 +#68 @ 770,771: 29x21 +#69 @ 383,762: 14x25 +#70 @ 542,962: 28x14 +#71 @ 236,286: 18x10 +#72 @ 517,363: 12x18 +#73 @ 171,753: 16x17 +#74 @ 272,910: 18x20 +#75 @ 658,202: 25x14 +#76 @ 534,906: 18x25 +#77 @ 468,342: 27x12 +#78 @ 426,350: 28x26 +#79 @ 277,968: 12x20 +#80 @ 390,877: 10x27 +#81 @ 859,603: 26x12 +#82 @ 491,937: 13x16 +#83 @ 19,883: 20x15 +#84 @ 47,400: 27x15 +#85 @ 627,191: 14x26 +#86 @ 164,326: 17x28 +#87 @ 768,216: 20x24 +#88 @ 947,765: 15x19 +#89 @ 917,142: 11x20 +#90 @ 351,87: 24x29 +#91 @ 872,451: 29x10 +#92 @ 749,900: 20x26 +#93 @ 935,30: 25x12 +#94 @ 221,943: 15x10 +#95 @ 344,602: 12x24 +#96 @ 677,578: 16x26 +#97 @ 452,606: 21x10 +#98 @ 2,722: 19x22 +#99 @ 310,605: 17x29 +#100 @ 262,390: 26x23 +#101 @ 640,499: 19x13 +#102 @ 852,924: 26x16 +#103 @ 309,81: 20x16 +#104 @ 108,918: 18x11 +#105 @ 249,160: 9x17 +#106 @ 26,62: 26x25 +#107 @ 407,587: 14x24 +#108 @ 956,98: 18x27 +#109 @ 944,459: 16x26 +#110 @ 209,699: 28x25 +#111 @ 710,856: 12x22 +#112 @ 744,288: 27x25 +#113 @ 489,344: 20x21 +#114 @ 438,488: 12x16 +#115 @ 884,95: 15x22 +#116 @ 60,617: 24x24 +#117 @ 957,191: 10x11 +#118 @ 315,527: 22x23 +#119 @ 199,117: 18x26 +#120 @ 255,642: 10x15 +#121 @ 957,962: 11x14 +#122 @ 193,131: 10x13 +#123 @ 2,931: 21x11 +#124 @ 36,961: 27x23 +#125 @ 863,38: 29x14 +#126 @ 31,731: 13x15 +#127 @ 357,741: 28x15 +#128 @ 209,354: 27x23 +#129 @ 524,8: 22x20 +#130 @ 302,247: 15x12 +#131 @ 76,857: 10x16 +#132 @ 531,502: 24x10 +#133 @ 559,962: 17x15 +#134 @ 233,710: 29x15 +#135 @ 762,70: 15x24 +#136 @ 934,186: 25x20 +#137 @ 808,252: 29x29 +#138 @ 550,694: 22x19 +#139 @ 265,368: 23x25 +#140 @ 640,637: 11x14 +#141 @ 736,484: 15x10 +#142 @ 946,571: 27x17 +#143 @ 332,174: 20x20 +#144 @ 797,775: 11x23 +#145 @ 684,63: 22x13 +#146 @ 932,36: 20x12 +#147 @ 375,882: 19x17 +#148 @ 656,227: 12x20 +#149 @ 455,223: 12x15 +#150 @ 732,619: 20x20 +#151 @ 292,615: 19x29 +#152 @ 615,0: 15x28 +#153 @ 463,174: 16x15 +#154 @ 322,456: 27x15 +#155 @ 352,224: 10x15 +#156 @ 966,673: 29x21 +#157 @ 527,42: 23x27 +#158 @ 632,775: 15x15 +#159 @ 871,805: 22x15 +#160 @ 667,240: 15x27 +#161 @ 607,880: 25x25 +#162 @ 447,44: 10x21 +#163 @ 445,126: 17x15 +#164 @ 844,933: 11x29 +#165 @ 471,423: 24x27 +#166 @ 715,867: 16x16 +#167 @ 778,279: 10x18 +#168 @ 490,630: 23x16 +#169 @ 687,301: 28x13 +#170 @ 476,432: 11x18 +#171 @ 123,794: 23x26 +#172 @ 738,256: 22x25 +#173 @ 336,60: 26x28 +#174 @ 698,766: 4x10 +#175 @ 511,10: 13x10 +#176 @ 580,702: 18x20 +#177 @ 218,620: 13x22 +#178 @ 476,488: 13x25 +#179 @ 154,617: 14x29 +#180 @ 620,563: 11x6 +#181 @ 168,433: 28x10 +#182 @ 60,685: 10x24 +#183 @ 880,680: 18x18 +#184 @ 859,616: 17x25 +#185 @ 114,80: 26x19 +#186 @ 236,868: 25x10 +#187 @ 135,13: 26x29 +#188 @ 810,677: 22x10 +#189 @ 938,932: 16x14 +#190 @ 427,434: 14x11 +#191 @ 83,731: 29x23 +#192 @ 960,148: 25x16 +#193 @ 577,669: 24x16 +#194 @ 67,267: 18x29 +#195 @ 603,928: 15x26 +#196 @ 881,39: 29x11 +#197 @ 963,957: 19x23 +#198 @ 891,868: 12x13 +#199 @ 799,34: 14x12 +#200 @ 529,785: 24x27 +#201 @ 596,936: 12x21 +#202 @ 832,289: 13x10 +#203 @ 664,232: 17x22 +#204 @ 171,345: 24x26 +#205 @ 283,521: 28x22 +#206 @ 702,469: 14x10 +#207 @ 490,531: 21x27 +#208 @ 411,388: 26x21 +#209 @ 120,780: 13x28 +#210 @ 711,391: 24x12 +#211 @ 347,848: 22x13 +#212 @ 956,507: 20x18 +#213 @ 844,696: 20x26 +#214 @ 550,230: 28x25 +#215 @ 71,625: 14x26 +#216 @ 701,305: 29x23 +#217 @ 629,488: 21x14 +#218 @ 966,362: 10x26 +#219 @ 802,763: 17x19 +#220 @ 631,858: 22x17 +#221 @ 175,656: 24x26 +#222 @ 822,185: 17x15 +#223 @ 110,390: 11x19 +#224 @ 328,13: 28x26 +#225 @ 479,262: 22x12 +#226 @ 178,796: 25x25 +#227 @ 23,782: 18x21 +#228 @ 597,578: 10x12 +#229 @ 692,683: 26x29 +#230 @ 268,713: 21x28 +#231 @ 112,197: 21x15 +#232 @ 619,282: 21x19 +#233 @ 765,56: 21x29 +#234 @ 96,163: 29x11 +#235 @ 229,927: 18x29 +#236 @ 588,775: 27x29 +#237 @ 498,293: 23x15 +#238 @ 311,166: 14x25 +#239 @ 134,371: 27x28 +#240 @ 450,173: 24x16 +#241 @ 700,398: 28x12 +#242 @ 216,282: 25x10 +#243 @ 886,817: 16x15 +#244 @ 291,967: 29x25 +#245 @ 406,283: 14x20 +#246 @ 601,779: 26x28 +#247 @ 767,213: 20x10 +#248 @ 802,36: 15x17 +#249 @ 264,361: 19x27 +#250 @ 565,236: 23x28 +#251 @ 260,394: 21x18 +#252 @ 506,427: 17x26 +#253 @ 479,946: 28x10 +#254 @ 463,505: 24x19 +#255 @ 42,314: 27x27 +#256 @ 901,709: 26x14 +#257 @ 716,194: 21x29 +#258 @ 404,285: 18x21 +#259 @ 838,243: 29x28 +#260 @ 276,510: 23x11 +#261 @ 66,605: 29x16 +#262 @ 225,3: 26x16 +#263 @ 451,355: 22x21 +#264 @ 423,41: 19x17 +#265 @ 942,912: 14x11 +#266 @ 915,613: 22x11 +#267 @ 316,786: 25x24 +#268 @ 640,185: 24x17 +#269 @ 4,564: 29x18 +#270 @ 535,912: 21x16 +#271 @ 95,633: 13x17 +#272 @ 517,170: 21x19 +#273 @ 857,812: 14x23 +#274 @ 682,515: 12x21 +#275 @ 615,847: 22x14 +#276 @ 547,47: 26x18 +#277 @ 461,552: 19x28 +#278 @ 866,29: 28x28 +#279 @ 725,878: 17x15 +#280 @ 604,454: 19x24 +#281 @ 529,452: 28x12 +#282 @ 731,633: 23x22 +#283 @ 505,447: 27x18 +#284 @ 75,694: 12x16 +#285 @ 212,909: 29x13 +#286 @ 96,630: 15x29 +#287 @ 168,34: 28x18 +#288 @ 935,481: 23x26 +#289 @ 892,235: 27x16 +#290 @ 942,945: 13x15 +#291 @ 759,221: 13x25 +#292 @ 604,339: 10x27 +#293 @ 699,313: 17x23 +#294 @ 319,716: 22x24 +#295 @ 718,219: 26x26 +#296 @ 11,917: 13x19 +#297 @ 666,632: 13x24 +#298 @ 85,791: 25x29 +#299 @ 179,204: 20x17 +#300 @ 292,234: 27x11 +#301 @ 527,488: 15x19 +#302 @ 651,158: 22x10 +#303 @ 727,98: 25x25 +#304 @ 452,9: 23x26 +#305 @ 520,386: 23x22 +#306 @ 755,196: 26x11 +#307 @ 321,107: 13x25 +#308 @ 654,563: 20x25 +#309 @ 188,228: 11x23 +#310 @ 416,355: 22x19 +#311 @ 679,567: 12x8 +#312 @ 319,282: 17x27 +#313 @ 276,620: 23x23 +#314 @ 50,242: 11x19 +#315 @ 759,918: 23x19 +#316 @ 599,84: 18x21 +#317 @ 675,230: 15x28 +#318 @ 96,480: 13x13 +#319 @ 386,254: 24x19 +#320 @ 682,199: 22x19 +#321 @ 14,819: 12x14 +#322 @ 231,451: 19x17 +#323 @ 36,396: 27x13 +#324 @ 459,917: 18x26 +#325 @ 149,874: 11x10 +#326 @ 182,325: 11x25 +#327 @ 142,279: 17x12 +#328 @ 954,276: 27x24 +#329 @ 512,263: 16x19 +#330 @ 446,841: 25x25 +#331 @ 79,247: 15x11 +#332 @ 378,881: 20x17 +#333 @ 958,324: 18x22 +#334 @ 583,501: 13x23 +#335 @ 966,133: 16x20 +#336 @ 236,395: 19x19 +#337 @ 588,910: 18x10 +#338 @ 35,406: 20x25 +#339 @ 326,404: 20x29 +#340 @ 293,761: 16x24 +#341 @ 420,371: 5x5 +#342 @ 694,764: 12x17 +#343 @ 617,15: 10x14 +#344 @ 859,915: 11x15 +#345 @ 522,430: 20x17 +#346 @ 727,180: 15x14 +#347 @ 208,679: 11x16 +#348 @ 523,670: 28x22 +#349 @ 512,436: 15x13 +#350 @ 170,11: 25x18 +#351 @ 353,588: 23x12 +#352 @ 201,605: 26x12 +#353 @ 561,681: 15x12 +#354 @ 500,357: 12x12 +#355 @ 813,438: 26x26 +#356 @ 759,853: 14x28 +#357 @ 152,737: 27x27 +#358 @ 646,721: 11x13 +#359 @ 588,446: 15x21 +#360 @ 713,927: 21x28 +#361 @ 189,43: 21x29 +#362 @ 655,722: 29x22 +#363 @ 614,184: 17x14 +#364 @ 465,10: 12x19 +#365 @ 493,612: 11x24 +#366 @ 594,442: 13x18 +#367 @ 392,893: 11x16 +#368 @ 77,740: 12x21 +#369 @ 628,138: 12x27 +#370 @ 173,500: 20x11 +#371 @ 363,587: 13x27 +#372 @ 852,276: 25x19 +#373 @ 410,949: 13x10 +#374 @ 359,948: 25x25 +#375 @ 546,677: 11x29 +#376 @ 854,582: 23x19 +#377 @ 761,145: 11x10 +#378 @ 300,888: 22x17 +#379 @ 284,791: 27x16 +#380 @ 758,255: 13x20 +#381 @ 453,16: 21x16 +#382 @ 525,183: 21x22 +#383 @ 114,307: 18x15 +#384 @ 556,225: 28x20 +#385 @ 463,19: 19x13 +#386 @ 601,579: 24x14 +#387 @ 314,870: 19x21 +#388 @ 541,438: 22x17 +#389 @ 704,543: 26x11 +#390 @ 420,537: 21x22 +#391 @ 728,211: 10x17 +#392 @ 232,822: 25x16 +#393 @ 482,339: 16x17 +#394 @ 460,129: 22x18 +#395 @ 223,181: 24x28 +#396 @ 270,740: 25x24 +#397 @ 220,22: 16x17 +#398 @ 416,414: 15x21 +#399 @ 391,524: 10x20 +#400 @ 448,282: 12x29 +#401 @ 247,862: 16x13 +#402 @ 967,527: 17x20 +#403 @ 279,637: 12x15 +#404 @ 792,166: 16x29 +#405 @ 597,902: 21x12 +#406 @ 375,729: 11x13 +#407 @ 404,395: 15x27 +#408 @ 852,581: 27x17 +#409 @ 97,859: 14x19 +#410 @ 867,477: 23x24 +#411 @ 419,139: 20x23 +#412 @ 395,956: 23x15 +#413 @ 498,388: 22x24 +#414 @ 880,814: 13x19 +#415 @ 845,417: 12x25 +#416 @ 498,357: 27x29 +#417 @ 366,739: 24x29 +#418 @ 86,66: 20x23 +#419 @ 619,871: 17x4 +#420 @ 896,449: 25x24 +#421 @ 414,64: 13x27 +#422 @ 308,77: 27x10 +#423 @ 105,927: 15x12 +#424 @ 213,110: 18x26 +#425 @ 912,820: 12x15 +#426 @ 755,643: 22x13 +#427 @ 850,256: 17x12 +#428 @ 581,456: 18x29 +#429 @ 881,461: 28x22 +#430 @ 204,903: 27x19 +#431 @ 12,578: 22x13 +#432 @ 69,762: 22x27 +#433 @ 140,879: 15x18 +#434 @ 548,924: 20x23 +#435 @ 256,293: 28x22 +#436 @ 583,438: 29x27 +#437 @ 31,936: 17x11 +#438 @ 53,289: 23x26 +#439 @ 753,871: 16x27 +#440 @ 64,856: 21x28 +#441 @ 832,962: 11x15 +#442 @ 305,969: 17x29 +#443 @ 562,103: 24x24 +#444 @ 243,231: 18x11 +#445 @ 210,19: 10x29 +#446 @ 62,702: 28x18 +#447 @ 167,127: 13x29 +#448 @ 751,334: 12x20 +#449 @ 404,236: 27x28 +#450 @ 869,107: 20x18 +#451 @ 167,687: 22x22 +#452 @ 79,449: 29x19 +#453 @ 821,288: 15x26 +#454 @ 235,926: 18x10 +#455 @ 902,705: 16x18 +#456 @ 777,189: 23x25 +#457 @ 560,141: 23x17 +#458 @ 711,900: 28x12 +#459 @ 650,864: 23x19 +#460 @ 965,91: 25x29 +#461 @ 366,589: 24x18 +#462 @ 262,423: 25x21 +#463 @ 775,176: 25x10 +#464 @ 634,899: 24x15 +#465 @ 330,489: 21x16 +#466 @ 711,668: 28x14 +#467 @ 283,699: 17x15 +#468 @ 12,741: 14x11 +#469 @ 10,532: 17x19 +#470 @ 763,148: 12x17 +#471 @ 630,884: 13x26 +#472 @ 39,381: 12x19 +#473 @ 313,382: 4x17 +#474 @ 617,862: 22x18 +#475 @ 113,120: 20x21 +#476 @ 913,322: 26x17 +#477 @ 197,33: 22x15 +#478 @ 760,220: 22x29 +#479 @ 395,195: 17x4 +#480 @ 25,469: 16x19 +#481 @ 289,620: 13x20 +#482 @ 41,395: 15x21 +#483 @ 50,148: 24x22 +#484 @ 787,117: 29x24 +#485 @ 456,623: 28x15 +#486 @ 938,37: 19x10 +#487 @ 475,340: 16x22 +#488 @ 221,808: 28x22 +#489 @ 387,452: 17x19 +#490 @ 835,789: 21x23 +#491 @ 153,456: 29x20 +#492 @ 462,344: 19x13 +#493 @ 927,8: 16x27 +#494 @ 172,734: 19x15 +#495 @ 562,52: 27x15 +#496 @ 781,826: 19x26 +#497 @ 204,123: 17x13 +#498 @ 839,514: 26x25 +#499 @ 324,417: 29x11 +#500 @ 746,828: 19x11 +#501 @ 737,580: 18x14 +#502 @ 802,22: 28x20 +#503 @ 974,392: 19x17 +#504 @ 426,55: 16x14 +#505 @ 845,795: 19x13 +#506 @ 261,102: 10x27 +#507 @ 415,400: 14x22 +#508 @ 62,0: 19x29 +#509 @ 643,429: 28x10 +#510 @ 713,121: 18x19 +#511 @ 829,23: 17x16 +#512 @ 268,80: 10x11 +#513 @ 826,654: 28x29 +#514 @ 73,96: 19x18 +#515 @ 696,417: 22x13 +#516 @ 253,437: 26x29 +#517 @ 842,523: 16x10 +#518 @ 274,960: 28x10 +#519 @ 410,317: 16x22 +#520 @ 334,981: 26x18 +#521 @ 183,480: 25x29 +#522 @ 794,659: 26x26 +#523 @ 416,188: 25x10 +#524 @ 735,400: 17x21 +#525 @ 836,779: 15x26 +#526 @ 913,298: 12x15 +#527 @ 28,507: 10x18 +#528 @ 596,697: 20x20 +#529 @ 322,163: 12x20 +#530 @ 626,94: 21x10 +#531 @ 39,391: 14x10 +#532 @ 894,108: 11x29 +#533 @ 384,173: 25x18 +#534 @ 557,974: 11x23 +#535 @ 780,805: 10x11 +#536 @ 448,734: 27x14 +#537 @ 68,349: 27x17 +#538 @ 215,700: 15x13 +#539 @ 921,309: 26x16 +#540 @ 312,665: 15x3 +#541 @ 301,946: 16x22 +#542 @ 798,747: 11x22 +#543 @ 850,675: 28x28 +#544 @ 438,425: 11x18 +#545 @ 477,537: 16x25 +#546 @ 869,878: 22x22 +#547 @ 830,106: 26x15 +#548 @ 16,880: 23x28 +#549 @ 89,598: 25x10 +#550 @ 911,746: 25x20 +#551 @ 132,268: 27x14 +#552 @ 107,54: 22x16 +#553 @ 617,920: 17x25 +#554 @ 888,796: 17x17 +#555 @ 911,21: 21x13 +#556 @ 901,126: 12x28 +#557 @ 501,378: 25x26 +#558 @ 231,749: 28x10 +#559 @ 534,889: 12x24 +#560 @ 388,923: 17x14 +#561 @ 113,84: 15x28 +#562 @ 924,424: 19x27 +#563 @ 669,933: 29x22 +#564 @ 317,796: 22x24 +#565 @ 149,894: 18x11 +#566 @ 815,914: 21x17 +#567 @ 686,540: 28x10 +#568 @ 531,331: 20x24 +#569 @ 459,576: 15x28 +#570 @ 127,520: 15x24 +#571 @ 466,572: 13x26 +#572 @ 935,555: 18x19 +#573 @ 461,946: 12x20 +#574 @ 918,162: 11x12 +#575 @ 279,305: 21x15 +#576 @ 650,714: 15x13 +#577 @ 486,776: 12x27 +#578 @ 81,253: 20x17 +#579 @ 906,18: 22x14 +#580 @ 306,26: 16x16 +#581 @ 184,724: 17x28 +#582 @ 751,225: 15x10 +#583 @ 26,783: 21x11 +#584 @ 103,41: 21x26 +#585 @ 283,5: 12x24 +#586 @ 733,375: 13x27 +#587 @ 193,973: 11x21 +#588 @ 47,306: 19x14 +#589 @ 964,124: 11x19 +#590 @ 856,321: 19x12 +#591 @ 437,655: 29x14 +#592 @ 368,437: 25x24 +#593 @ 537,154: 28x17 +#594 @ 574,451: 11x13 +#595 @ 963,342: 21x26 +#596 @ 250,492: 22x18 +#597 @ 962,740: 22x14 +#598 @ 697,784: 29x22 +#599 @ 153,323: 23x23 +#600 @ 534,713: 13x12 +#601 @ 75,73: 22x18 +#602 @ 166,755: 15x12 +#603 @ 273,622: 22x12 +#604 @ 660,432: 10x24 +#605 @ 119,965: 25x25 +#606 @ 751,294: 28x14 +#607 @ 676,358: 13x11 +#608 @ 204,588: 17x29 +#609 @ 792,828: 21x14 +#610 @ 163,141: 27x12 +#611 @ 159,33: 22x19 +#612 @ 158,364: 13x15 +#613 @ 711,929: 16x14 +#614 @ 811,654: 18x29 +#615 @ 903,828: 24x20 +#616 @ 323,111: 23x26 +#617 @ 891,258: 28x28 +#618 @ 551,826: 25x12 +#619 @ 660,935: 29x19 +#620 @ 41,27: 28x19 +#621 @ 590,491: 26x24 +#622 @ 174,31: 10x25 +#623 @ 563,817: 21x25 +#624 @ 961,746: 13x27 +#625 @ 599,403: 13x11 +#626 @ 852,661: 22x27 +#627 @ 84,473: 18x19 +#628 @ 580,98: 28x27 +#629 @ 138,506: 28x15 +#630 @ 981,544: 16x26 +#631 @ 418,908: 23x24 +#632 @ 371,926: 22x25 +#633 @ 701,291: 11x20 +#634 @ 66,889: 28x25 +#635 @ 641,689: 14x26 +#636 @ 177,960: 10x16 +#637 @ 60,39: 20x18 +#638 @ 378,445: 14x25 +#639 @ 113,794: 17x16 +#640 @ 197,627: 22x16 +#641 @ 324,530: 12x25 +#642 @ 8,206: 18x29 +#643 @ 359,893: 23x15 +#644 @ 795,198: 19x17 +#645 @ 239,900: 12x20 +#646 @ 504,343: 19x10 +#647 @ 708,677: 29x10 +#648 @ 63,697: 14x12 +#649 @ 403,203: 25x18 +#650 @ 305,183: 16x18 +#651 @ 609,447: 20x22 +#652 @ 508,394: 16x29 +#653 @ 178,144: 29x27 +#654 @ 870,490: 23x19 +#655 @ 130,855: 27x14 +#656 @ 333,563: 25x14 +#657 @ 862,252: 18x16 +#658 @ 40,384: 20x29 +#659 @ 639,299: 13x10 +#660 @ 869,856: 12x23 +#661 @ 35,495: 13x28 +#662 @ 545,322: 16x26 +#663 @ 671,566: 11x12 +#664 @ 342,10: 10x17 +#665 @ 932,940: 21x14 +#666 @ 726,480: 11x11 +#667 @ 249,632: 17x21 +#668 @ 939,830: 11x14 +#669 @ 812,241: 19x25 +#670 @ 739,641: 15x21 +#671 @ 307,873: 21x25 +#672 @ 845,687: 13x11 +#673 @ 953,676: 26x17 +#674 @ 137,960: 26x13 +#675 @ 853,498: 29x13 +#676 @ 396,599: 17x17 +#677 @ 431,839: 27x27 +#678 @ 745,290: 23x16 +#679 @ 336,849: 12x23 +#680 @ 852,492: 28x15 +#681 @ 467,781: 25x23 +#682 @ 525,668: 18x15 +#683 @ 941,189: 25x24 +#684 @ 130,323: 17x26 +#685 @ 410,612: 12x20 +#686 @ 967,499: 13x23 +#687 @ 947,263: 16x22 +#688 @ 158,434: 13x13 +#689 @ 920,298: 13x15 +#690 @ 361,415: 16x21 +#691 @ 302,600: 21x20 +#692 @ 65,356: 20x24 +#693 @ 855,427: 13x12 +#694 @ 877,366: 10x10 +#695 @ 138,415: 20x14 +#696 @ 818,653: 27x12 +#697 @ 829,540: 15x29 +#698 @ 636,121: 19x28 +#699 @ 324,960: 16x23 +#700 @ 680,614: 10x11 +#701 @ 380,819: 21x21 +#702 @ 873,107: 11x15 +#703 @ 42,644: 11x17 +#704 @ 62,860: 17x21 +#705 @ 728,704: 27x27 +#706 @ 604,488: 17x25 +#707 @ 418,252: 28x14 +#708 @ 715,408: 28x17 +#709 @ 747,225: 21x13 +#710 @ 124,787: 18x18 +#711 @ 394,376: 29x18 +#712 @ 182,552: 13x16 +#713 @ 129,424: 19x23 +#714 @ 852,526: 18x12 +#715 @ 849,634: 21x19 +#716 @ 220,22: 14x21 +#717 @ 327,870: 18x15 +#718 @ 627,170: 10x13 +#719 @ 108,768: 17x22 +#720 @ 870,303: 11x28 +#721 @ 616,917: 19x18 +#722 @ 118,316: 10x11 +#723 @ 476,355: 12x13 +#724 @ 235,946: 23x12 +#725 @ 310,723: 24x21 +#726 @ 28,483: 14x28 +#727 @ 746,202: 26x12 +#728 @ 736,404: 19x28 +#729 @ 973,143: 21x26 +#730 @ 226,9: 18x24 +#731 @ 717,746: 29x26 +#732 @ 793,668: 28x19 +#733 @ 446,177: 11x25 +#734 @ 86,243: 27x11 +#735 @ 73,13: 15x25 +#736 @ 225,706: 13x13 +#737 @ 852,950: 25x10 +#738 @ 502,427: 13x15 +#739 @ 950,504: 26x17 +#740 @ 761,290: 21x24 +#741 @ 90,378: 28x29 +#742 @ 431,457: 27x13 +#743 @ 196,666: 15x29 +#744 @ 439,105: 10x29 +#745 @ 788,261: 28x10 +#746 @ 947,904: 13x12 +#747 @ 328,973: 17x25 +#748 @ 255,758: 22x26 +#749 @ 320,426: 21x21 +#750 @ 735,258: 16x24 +#751 @ 883,333: 21x25 +#752 @ 5,510: 10x23 +#753 @ 389,972: 20x14 +#754 @ 671,937: 18x10 +#755 @ 728,342: 20x18 +#756 @ 247,617: 26x13 +#757 @ 301,241: 25x19 +#758 @ 971,653: 18x25 +#759 @ 807,30: 25x14 +#760 @ 318,525: 14x12 +#761 @ 640,618: 26x24 +#762 @ 788,253: 25x26 +#763 @ 393,192: 23x12 +#764 @ 522,920: 13x26 +#765 @ 232,204: 14x18 +#766 @ 953,862: 22x25 +#767 @ 41,239: 22x18 +#768 @ 760,535: 11x25 +#769 @ 84,868: 28x26 +#770 @ 920,703: 19x26 +#771 @ 678,544: 27x17 +#772 @ 814,591: 18x11 +#773 @ 15,181: 18x10 +#774 @ 725,661: 22x11 +#775 @ 241,691: 18x17 +#776 @ 84,81: 14x29 +#777 @ 909,818: 14x23 +#778 @ 357,478: 27x25 +#779 @ 537,878: 24x15 +#780 @ 812,832: 16x18 +#781 @ 528,394: 24x29 +#782 @ 411,603: 15x12 +#783 @ 94,727: 10x16 +#784 @ 968,146: 24x27 +#785 @ 755,195: 22x11 +#786 @ 948,802: 21x13 +#787 @ 509,266: 10x28 +#788 @ 626,463: 21x19 +#789 @ 766,203: 19x22 +#790 @ 450,28: 12x24 +#791 @ 290,589: 25x12 +#792 @ 294,195: 22x28 +#793 @ 481,949: 22x20 +#794 @ 732,708: 25x13 +#795 @ 292,706: 17x20 +#796 @ 502,6: 13x10 +#797 @ 119,382: 29x23 +#798 @ 300,953: 16x22 +#799 @ 978,231: 18x16 +#800 @ 119,409: 23x12 +#801 @ 390,634: 27x13 +#802 @ 958,124: 19x21 +#803 @ 423,437: 27x13 +#804 @ 394,299: 27x19 +#805 @ 973,910: 24x10 +#806 @ 462,133: 29x11 +#807 @ 529,750: 17x15 +#808 @ 80,744: 12x17 +#809 @ 56,99: 19x17 +#810 @ 926,721: 12x28 +#811 @ 916,569: 27x15 +#812 @ 723,376: 13x27 +#813 @ 852,824: 26x23 +#814 @ 953,944: 17x10 +#815 @ 786,937: 28x17 +#816 @ 188,705: 17x24 +#817 @ 543,456: 13x18 +#818 @ 676,918: 20x10 +#819 @ 97,706: 24x29 +#820 @ 722,656: 29x18 +#821 @ 182,328: 24x15 +#822 @ 490,397: 28x20 +#823 @ 247,217: 19x20 +#824 @ 217,592: 12x21 +#825 @ 452,201: 14x25 +#826 @ 348,612: 11x26 +#827 @ 652,935: 22x21 +#828 @ 650,925: 29x21 +#829 @ 495,247: 15x29 +#830 @ 594,561: 20x15 +#831 @ 220,460: 29x25 +#832 @ 642,117: 12x20 +#833 @ 235,533: 24x13 +#834 @ 285,755: 14x11 +#835 @ 739,473: 23x21 +#836 @ 268,387: 20x16 +#837 @ 459,275: 28x10 +#838 @ 493,572: 13x21 +#839 @ 320,720: 18x20 +#840 @ 168,757: 5x6 +#841 @ 496,368: 29x18 +#842 @ 419,45: 15x22 +#843 @ 749,524: 23x19 +#844 @ 413,68: 25x19 +#845 @ 250,698: 16x27 +#846 @ 101,697: 26x13 +#847 @ 968,332: 11x19 +#848 @ 953,137: 19x11 +#849 @ 134,396: 27x19 +#850 @ 891,465: 13x28 +#851 @ 40,931: 24x18 +#852 @ 170,775: 25x10 +#853 @ 187,26: 18x15 +#854 @ 677,28: 19x17 +#855 @ 752,274: 22x16 +#856 @ 217,376: 15x17 +#857 @ 379,249: 15x28 +#858 @ 308,661: 25x16 +#859 @ 514,704: 28x16 +#860 @ 281,235: 26x23 +#861 @ 430,650: 15x28 +#862 @ 784,125: 26x25 +#863 @ 212,123: 19x14 +#864 @ 946,191: 15x8 +#865 @ 405,399: 21x27 +#866 @ 443,484: 19x16 +#867 @ 769,626: 17x25 +#868 @ 119,786: 29x19 +#869 @ 890,20: 26x28 +#870 @ 12,161: 11x24 +#871 @ 957,869: 11x12 +#872 @ 332,736: 28x15 +#873 @ 178,967: 27x10 +#874 @ 323,441: 23x10 +#875 @ 229,436: 28x16 +#876 @ 734,578: 23x17 +#877 @ 433,614: 25x27 +#878 @ 30,160: 28x18 +#879 @ 217,279: 26x21 +#880 @ 621,130: 27x15 +#881 @ 465,601: 26x28 +#882 @ 231,580: 25x11 +#883 @ 300,512: 25x23 +#884 @ 422,258: 22x19 +#885 @ 308,530: 15x13 +#886 @ 164,202: 10x12 +#887 @ 412,181: 18x21 +#888 @ 121,766: 25x18 +#889 @ 177,945: 14x16 +#890 @ 30,162: 13x26 +#891 @ 437,565: 23x27 +#892 @ 454,280: 26x27 +#893 @ 379,526: 23x12 +#894 @ 834,707: 13x5 +#895 @ 859,357: 24x28 +#896 @ 891,303: 16x14 +#897 @ 385,116: 28x20 +#898 @ 53,12: 24x22 +#899 @ 428,979: 24x20 +#900 @ 916,602: 28x17 +#901 @ 19,739: 16x21 +#902 @ 871,32: 18x22 +#903 @ 207,110: 12x16 +#904 @ 932,15: 26x19 +#905 @ 691,232: 11x18 +#906 @ 965,799: 20x20 +#907 @ 241,526: 24x23 +#908 @ 931,915: 18x14 +#909 @ 662,584: 24x14 +#910 @ 30,148: 10x17 +#911 @ 50,466: 24x29 +#912 @ 265,504: 22x10 +#913 @ 59,857: 28x24 +#914 @ 170,780: 18x27 +#915 @ 436,51: 27x12 +#916 @ 921,139: 16x17 +#917 @ 532,377: 16x23 +#918 @ 237,188: 20x27 +#919 @ 672,653: 11x20 +#920 @ 333,546: 13x18 +#921 @ 830,191: 25x27 +#922 @ 745,644: 24x23 +#923 @ 877,371: 17x28 +#924 @ 926,426: 12x19 +#925 @ 731,977: 13x21 +#926 @ 12,122: 14x14 +#927 @ 65,896: 17x28 +#928 @ 126,609: 29x13 +#929 @ 557,244: 24x22 +#930 @ 80,21: 14x24 +#931 @ 725,184: 18x28 +#932 @ 654,181: 18x12 +#933 @ 439,283: 14x21 +#934 @ 974,95: 26x15 +#935 @ 235,9: 10x17 +#936 @ 306,422: 24x21 +#937 @ 383,952: 29x10 +#938 @ 738,201: 23x15 +#939 @ 254,624: 26x19 +#940 @ 421,672: 17x14 +#941 @ 221,751: 12x28 +#942 @ 730,768: 13x18 +#943 @ 342,13: 17x18 +#944 @ 594,639: 24x17 +#945 @ 127,323: 16x12 +#946 @ 861,701: 13x10 +#947 @ 696,541: 28x24 +#948 @ 804,363: 12x25 +#949 @ 958,296: 29x13 +#950 @ 126,868: 16x20 +#951 @ 916,483: 26x15 +#952 @ 318,52: 19x22 +#953 @ 240,938: 18x11 +#954 @ 849,275: 16x11 +#955 @ 712,412: 27x26 +#956 @ 913,613: 14x15 +#957 @ 756,476: 20x18 +#958 @ 656,906: 14x11 +#959 @ 461,633: 12x26 +#960 @ 398,208: 19x12 +#961 @ 490,333: 14x14 +#962 @ 816,658: 16x27 +#963 @ 579,562: 17x19 +#964 @ 961,552: 16x29 +#965 @ 393,947: 27x19 +#966 @ 68,464: 18x13 +#967 @ 318,537: 21x13 +#968 @ 904,171: 28x13 +#969 @ 629,974: 23x22 +#970 @ 415,366: 15x19 +#971 @ 401,976: 26x13 +#972 @ 18,44: 26x12 +#973 @ 18,804: 27x26 +#974 @ 134,446: 25x22 +#975 @ 158,464: 19x13 +#976 @ 623,437: 9x3 +#977 @ 376,181: 19x15 +#978 @ 738,397: 26x27 +#979 @ 338,207: 20x23 +#980 @ 218,403: 27x17 +#981 @ 530,937: 27x10 +#982 @ 134,958: 11x19 +#983 @ 675,514: 13x17 +#984 @ 891,383: 10x27 +#985 @ 935,748: 15x11 +#986 @ 943,956: 25x22 +#987 @ 18,649: 11x14 +#988 @ 740,243: 21x10 +#989 @ 404,309: 14x22 +#990 @ 134,19: 13x19 +#991 @ 406,381: 14x23 +#992 @ 428,395: 18x13 +#993 @ 121,971: 18x15 +#994 @ 62,794: 25x17 +#995 @ 134,403: 20x13 +#996 @ 347,567: 20x29 +#997 @ 615,358: 3x18 +#998 @ 852,28: 15x16 +#999 @ 259,379: 27x24 +#1000 @ 268,617: 20x20 +#1001 @ 956,657: 20x22 +#1002 @ 924,876: 26x18 +#1003 @ 748,411: 12x14 +#1004 @ 882,249: 29x10 +#1005 @ 979,25: 21x17 +#1006 @ 559,126: 25x28 +#1007 @ 569,712: 28x13 +#1008 @ 623,781: 25x16 +#1009 @ 422,607: 25x10 +#1010 @ 613,904: 11x26 +#1011 @ 128,411: 16x17 +#1012 @ 9,195: 22x12 +#1013 @ 83,362: 14x23 +#1014 @ 617,149: 26x18 +#1015 @ 382,436: 12x21 +#1016 @ 613,855: 23x16 +#1017 @ 956,222: 24x17 +#1018 @ 400,977: 12x15 +#1019 @ 181,333: 18x17 +#1020 @ 610,174: 25x14 +#1021 @ 825,26: 13x24 +#1022 @ 296,778: 26x14 +#1023 @ 465,135: 24x16 +#1024 @ 638,807: 10x14 +#1025 @ 547,697: 19x15 +#1026 @ 103,663: 15x21 +#1027 @ 71,113: 20x28 +#1028 @ 325,498: 27x28 +#1029 @ 525,808: 23x19 +#1030 @ 828,949: 15x27 +#1031 @ 46,699: 11x18 +#1032 @ 676,396: 29x29 +#1033 @ 552,889: 25x27 +#1034 @ 943,865: 15x22 +#1035 @ 480,310: 27x20 +#1036 @ 714,270: 29x17 +#1037 @ 647,711: 18x15 +#1038 @ 590,431: 24x16 +#1039 @ 675,554: 20x26 +#1040 @ 287,13: 17x20 +#1041 @ 886,310: 16x28 +#1042 @ 219,353: 15x22 +#1043 @ 215,12: 14x17 +#1044 @ 307,541: 29x22 +#1045 @ 151,734: 22x22 +#1046 @ 517,785: 14x24 +#1047 @ 617,89: 15x26 +#1048 @ 726,978: 13x22 +#1049 @ 404,546: 25x29 +#1050 @ 395,372: 23x15 +#1051 @ 249,583: 21x21 +#1052 @ 941,455: 23x15 +#1053 @ 801,651: 19x11 +#1054 @ 186,120: 10x22 +#1055 @ 562,177: 11x10 +#1056 @ 504,441: 14x29 +#1057 @ 401,274: 11x16 +#1058 @ 69,463: 24x28 +#1059 @ 409,955: 20x27 +#1060 @ 856,263: 26x20 +#1061 @ 747,821: 23x11 +#1062 @ 243,158: 20x22 +#1063 @ 694,957: 27x10 +#1064 @ 370,666: 29x23 +#1065 @ 74,640: 14x24 +#1066 @ 330,223: 11x21 +#1067 @ 93,659: 27x10 +#1068 @ 916,571: 20x24 +#1069 @ 681,208: 10x26 +#1070 @ 62,125: 27x28 +#1071 @ 163,527: 14x24 +#1072 @ 353,71: 23x22 +#1073 @ 938,1: 12x27 +#1074 @ 561,956: 20x26 +#1075 @ 850,491: 29x23 +#1076 @ 762,231: 16x28 +#1077 @ 391,96: 13x24 +#1078 @ 359,435: 14x17 +#1079 @ 150,326: 15x20 +#1080 @ 615,695: 29x17 +#1081 @ 477,123: 24x14 +#1082 @ 851,99: 12x26 +#1083 @ 328,627: 22x29 +#1084 @ 925,616: 14x23 +#1085 @ 59,897: 23x19 +#1086 @ 152,379: 23x15 +#1087 @ 255,415: 19x22 +#1088 @ 921,476: 19x24 +#1089 @ 946,215: 23x16 +#1090 @ 384,725: 23x11 +#1091 @ 612,353: 18x29 +#1092 @ 443,193: 22x20 +#1093 @ 41,141: 18x10 +#1094 @ 288,10: 24x19 +#1095 @ 623,908: 11x20 +#1096 @ 424,159: 27x19 +#1097 @ 896,878: 16x29 +#1098 @ 466,334: 27x18 +#1099 @ 589,755: 23x25 +#1100 @ 341,592: 13x27 +#1101 @ 220,387: 16x12 +#1102 @ 958,510: 15x9 +#1103 @ 252,435: 11x23 +#1104 @ 143,853: 15x10 +#1105 @ 841,205: 14x29 +#1106 @ 439,456: 11x19 +#1107 @ 937,828: 18x21 +#1108 @ 725,650: 24x26 +#1109 @ 851,222: 19x26 +#1110 @ 248,423: 5x4 +#1111 @ 740,325: 10x23 +#1112 @ 474,960: 20x22 +#1113 @ 943,946: 11x26 +#1114 @ 590,580: 18x25 +#1115 @ 472,370: 19x17 +#1116 @ 804,427: 29x16 +#1117 @ 679,42: 16x14 +#1118 @ 318,272: 12x28 +#1119 @ 372,878: 10x12 +#1120 @ 685,223: 16x26 +#1121 @ 853,19: 23x12 +#1122 @ 532,63: 27x18 +#1123 @ 456,320: 28x19 +#1124 @ 888,828: 25x24 +#1125 @ 348,461: 19x25 +#1126 @ 873,395: 15x13 +#1127 @ 705,451: 27x28 +#1128 @ 730,589: 11x26 +#1129 @ 667,727: 20x24 +#1130 @ 101,130: 24x23 +#1131 @ 563,688: 28x21 +#1132 @ 5,143: 26x19 +#1133 @ 522,671: 19x23 +#1134 @ 481,350: 19x23 +#1135 @ 4,125: 25x18 +#1136 @ 118,943: 26x24 +#1137 @ 371,834: 20x26 +#1138 @ 523,751: 22x10 +#1139 @ 92,181: 18x16 +#1140 @ 904,145: 20x17 +#1141 @ 280,513: 25x28 +#1142 @ 43,61: 17x19 +#1143 @ 602,643: 12x9 +#1144 @ 499,293: 12x10 +#1145 @ 155,345: 28x25 +#1146 @ 572,503: 17x21 +#1147 @ 537,595: 28x12 +#1148 @ 256,841: 18x25 +#1149 @ 621,431: 16x14 +#1150 @ 657,258: 23x12 +#1151 @ 305,436: 24x18 +#1152 @ 907,820: 12x15 +#1153 @ 65,744: 26x23 +#1154 @ 230,861: 18x17 +#1155 @ 333,12: 23x24 +#1156 @ 248,418: 23x27 +#1157 @ 469,958: 19x12 +#1158 @ 35,931: 11x14 +#1159 @ 288,563: 10x29 +#1160 @ 43,378: 14x11 +#1161 @ 88,739: 12x25 +#1162 @ 804,900: 21x29 +#1163 @ 381,76: 22x24 +#1164 @ 30,502: 16x14 +#1165 @ 527,603: 12x14 +#1166 @ 956,209: 15x19 +#1167 @ 960,546: 29x14 +#1168 @ 188,744: 10x19 +#1169 @ 175,744: 12x29 +#1170 @ 133,778: 22x21 +#1171 @ 174,205: 14x20 +#1172 @ 690,959: 21x12 +#1173 @ 619,491: 13x22 +#1174 @ 813,594: 18x12 +#1175 @ 876,607: 29x13 +#1176 @ 900,6: 19x18 +#1177 @ 967,721: 13x25 +#1178 @ 189,232: 19x26 +#1179 @ 827,553: 24x18 +#1180 @ 402,245: 28x17 +#1181 @ 162,896: 14x17 +#1182 @ 914,1: 22x27 +#1183 @ 208,134: 22x19 +#1184 @ 526,331: 29x22 +#1185 @ 145,202: 22x13 +#1186 @ 409,861: 25x13 +#1187 @ 801,730: 28x18 +#1188 @ 624,487: 20x15 +#1189 @ 393,687: 15x29 +#1190 @ 279,958: 15x29 +#1191 @ 653,395: 26x27 +#1192 @ 179,26: 10x19 +#1193 @ 260,76: 29x25 +#1194 @ 859,406: 18x10 +#1195 @ 296,932: 21x23 +#1196 @ 301,974: 16x26 +#1197 @ 727,757: 29x10 +#1198 @ 657,397: 17x20 +#1199 @ 442,937: 18x26 +#1200 @ 29,508: 19x15 +#1201 @ 636,245: 24x12 +#1202 @ 960,402: 28x12 +#1203 @ 139,256: 17x29 +#1204 @ 168,117: 23x15 +#1205 @ 770,785: 27x29 +#1206 @ 752,276: 21x21 +#1207 @ 883,889: 13x13 +#1208 @ 62,918: 21x10 +#1209 @ 163,517: 17x12 +#1210 @ 470,613: 19x11 +#1211 @ 451,661: 26x29 +#1212 @ 211,38: 19x13 +#1213 @ 539,439: 19x28 +#1214 @ 339,229: 23x21 +#1215 @ 591,542: 26x25 +#1216 @ 41,643: 29x21 +#1217 @ 806,823: 14x19 +#1218 @ 628,245: 11x18 +#1219 @ 378,619: 20x19 +#1220 @ 250,444: 14x22 +#1221 @ 713,891: 17x12 +#1222 @ 144,430: 27x21 +#1223 @ 125,200: 27x29 +#1224 @ 525,664: 15x22 +#1225 @ 369,485: 23x27 +#1226 @ 868,564: 29x20 +#1227 @ 642,700: 11x12 +#1228 @ 951,6: 14x25 +#1229 @ 532,331: 24x13 +#1230 @ 937,480: 15x12 +#1231 @ 81,65: 27x25 +#1232 @ 153,263: 11x26 +#1233 @ 970,364: 14x19 +#1234 @ 143,454: 26x27 +#1235 @ 495,574: 7x15 +#1236 @ 850,209: 20x17 +#1237 @ 126,965: 23x29 +#1238 @ 870,675: 23x28 +#1239 @ 308,376: 14x28 +#1240 @ 578,755: 14x24 +#1241 @ 844,481: 23x22 +#1242 @ 734,769: 25x16 +#1243 @ 723,219: 22x27 +#1244 @ 159,695: 23x18 +#1245 @ 754,285: 26x22 +#1246 @ 345,974: 26x23 +#1247 @ 29,69: 27x12 +#1248 @ 181,784: 15x12 +#1249 @ 682,616: 5x6 +#1250 @ 208,28: 27x28 +#1251 @ 665,234: 18x23 +#1252 @ 961,288: 11x22 +#1253 @ 363,57: 19x21 +#1254 @ 662,137: 25x24 +#1255 @ 7,41: 21x15 +#1256 @ 693,784: 12x28 +#1257 @ 186,543: 29x13 +#1258 @ 596,354: 13x10 +#1259 @ 824,705: 28x16 +#1260 @ 468,614: 25x20 +#1261 @ 542,10: 28x18 +#1262 @ 231,942: 18x29 +#1263 @ 979,39: 12x13 +#1264 @ 345,77: 16x25 +#1265 @ 715,127: 14x28 +#1266 @ 618,560: 16x16 +#1267 @ 687,397: 22x25 +#1268 @ 880,229: 16x18 +#1269 @ 806,358: 29x16 +#1270 @ 106,846: 23x29 +#1271 @ 61,299: 16x14 +#1272 @ 644,818: 19x22 +#1273 @ 557,157: 29x24 +#1274 @ 29,710: 25x28 +#1275 @ 207,585: 21x27 +#1276 @ 83,715: 26x14 +#1277 @ 325,51: 13x10 +#1278 @ 717,97: 16x12 +#1279 @ 602,139: 26x11 +#1280 @ 26,933: 29x12 +#1281 @ 815,755: 13x22 +#1282 @ 786,950: 23x21 +#1283 @ 403,978: 29x19 \ No newline at end of file diff --git a/2018/3rdDay/challenge2/Program.cs b/2018/3rdDay/challenge2/Program.cs new file mode 100644 index 0000000..7682c50 --- /dev/null +++ b/2018/3rdDay/challenge2/Program.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; + +namespace challenge2 { + class Program { + static string[] Lines {get; set;} + static List Claims {get; set;} + + static void Main(string[] args) { + Claims = new List(); + Console.WriteLine("Reading input.txt"); + Lines = File.ReadAllLines("./input.txt"); + foreach (string line in Lines) { + Claim current = new Claim(line); + Claims.Add(current); + current.Print(); + } + Fabric fabric = new Fabric(Claims); + Console.WriteLine("Found ID: " + fabric.CalculateOverlaps()); + } + + public static void printArray(string[] arr) { + foreach (string str in arr) { + Console.WriteLine(str); + } + } + } + + class Claim { + public int ID {get; set;} + public int X {get; set;} + public int Y {get; set;} + public int W {get; set;} + public int H {get; set;} + public string Source {get; set;} + + public Claim(string source) { + this.Source = source; + ParseSource(); + } + + private void ParseSource() { + Console.WriteLine("Parsing: " + this.Source); + string[] source = this.Source.Split('#'); + string[] idAndRest = source[1].Split('@'); + this.ID = int.Parse(idAndRest[0]); + string[] fromSides = idAndRest[1].Split(','); + string[] afterColon = fromSides[1].Split(':'); + this.X = int.Parse(fromSides[0]); + this.Y = int.Parse(afterColon[0]); + string[] dimensions = afterColon[1].Split('x'); + this.W = int.Parse(dimensions[0]); + this.H = int.Parse(dimensions[1]); + } + + public void Print() { + Console.WriteLine("Claim ID: " + this.ID); + Console.WriteLine("X, Y: " + this.X + ',' + this.Y); + Console.WriteLine("Dimensions: " + this.W + 'x' + this.H); + Console.WriteLine("Parsed from source: " + this.Source); + Console.WriteLine(); + } + } + + class Fabric { + public List Claims; + + private int[,] Board; + + public Fabric(List claims) { + this.Claims = claims; + this.Board = new int[10000, 10000]; + + for (int i = 0; i < 10000; i++) { + for (int j = 0; j < 10000; j++) { + Board[i, j] = 0; + } + } + } + + public int CalculateOverlaps() { + int overlaps = 0; + + foreach (Claim claim in this.Claims) { + for (int x = claim.X; x < claim.X + claim.W; x++) { + for (int y = claim.Y; y < claim.Y + claim.H; y++) { + Board[x, y]++; + } + } + } + + foreach (Claim claim in this.Claims) { + bool isValid = true; + Console.WriteLine("Processing claim ID: " + claim.ID); + + for (int x = claim.X; x < claim.X + claim.W; x++) { + for (int y = claim.Y; y < claim.Y + claim.H; y++) { + if(this.Board[x,y] != 1) { + isValid = false; + break; + } + } + if (!isValid) break; + } + if (isValid) { + overlaps = claim.ID; + break; + } + } + return overlaps; + } + } +} diff --git a/2018/3rdDay/challenge2/challenge.txt b/2018/3rdDay/challenge2/challenge.txt new file mode 100644 index 0000000..b75bc6e --- /dev/null +++ b/2018/3rdDay/challenge2/challenge.txt @@ -0,0 +1,11 @@ + +Your puzzle answer was 109143. + +The first half of this puzzle is complete! It provides one gold star: * + +--- Part Two --- +Amidst the chaos, you notice that exactly one claim doesn't overlap by even a single square inch of fabric with any other claim. If you can somehow draw attention to it, maybe the Elves will be able to make Santa's suit after all! + +For example, in the claims above, only claim 3 is intact after all claims are made. + +What is the ID of the only claim that doesn't overlap? \ No newline at end of file diff --git a/2018/3rdDay/challenge2/challenge2.csproj b/2018/3rdDay/challenge2/challenge2.csproj new file mode 100644 index 0000000..23df604 --- /dev/null +++ b/2018/3rdDay/challenge2/challenge2.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.1 + + + diff --git a/2018/3rdDay/challenge2/input.txt b/2018/3rdDay/challenge2/input.txt new file mode 100644 index 0000000..0a0580f --- /dev/null +++ b/2018/3rdDay/challenge2/input.txt @@ -0,0 +1,1283 @@ +#1 @ 179,662: 16x27 +#2 @ 609,961: 25x21 +#3 @ 73,376: 23x28 +#4 @ 599,405: 26x25 +#5 @ 28,933: 19x29 +#6 @ 441,852: 29x23 +#7 @ 512,396: 15x17 +#8 @ 702,415: 14x10 +#9 @ 730,587: 27x21 +#10 @ 252,715: 17x27 +#11 @ 541,822: 21x13 +#12 @ 901,802: 12x24 +#13 @ 759,349: 15x26 +#14 @ 862,839: 22x25 +#15 @ 862,576: 17x16 +#16 @ 265,967: 11x25 +#17 @ 124,444: 23x25 +#18 @ 971,141: 25x15 +#19 @ 864,246: 22x27 +#20 @ 841,34: 17x15 +#21 @ 173,462: 19x22 +#22 @ 122,22: 27x20 +#23 @ 327,178: 12x19 +#24 @ 576,663: 21x10 +#25 @ 410,958: 11x12 +#26 @ 676,145: 14x10 +#27 @ 177,676: 10x22 +#28 @ 663,60: 23x15 +#29 @ 686,352: 24x19 +#30 @ 68,618: 18x12 +#31 @ 20,643: 19x18 +#32 @ 683,128: 19x22 +#33 @ 88,45: 28x25 +#34 @ 442,736: 20x29 +#35 @ 824,825: 13x13 +#36 @ 668,253: 25x27 +#37 @ 254,404: 27x25 +#38 @ 712,260: 26x17 +#39 @ 588,470: 21x20 +#40 @ 114,148: 11x26 +#41 @ 242,409: 17x26 +#42 @ 342,481: 24x21 +#43 @ 104,187: 27x12 +#44 @ 440,919: 13x22 +#45 @ 177,312: 22x15 +#46 @ 249,925: 29x15 +#47 @ 376,750: 19x20 +#48 @ 157,760: 21x21 +#49 @ 760,833: 28x15 +#50 @ 955,909: 26x12 +#51 @ 941,896: 17x25 +#52 @ 154,33: 29x20 +#53 @ 236,275: 27x29 +#54 @ 848,800: 11x18 +#55 @ 950,130: 28x24 +#56 @ 351,564: 21x11 +#57 @ 32,70: 17x11 +#58 @ 215,219: 22x18 +#59 @ 816,714: 15x21 +#60 @ 738,879: 16x27 +#61 @ 218,896: 26x27 +#62 @ 953,363: 16x19 +#63 @ 836,508: 28x13 +#64 @ 839,14: 12x21 +#65 @ 831,683: 24x15 +#66 @ 809,698: 12x26 +#67 @ 887,296: 23x11 +#68 @ 770,771: 29x21 +#69 @ 383,762: 14x25 +#70 @ 542,962: 28x14 +#71 @ 236,286: 18x10 +#72 @ 517,363: 12x18 +#73 @ 171,753: 16x17 +#74 @ 272,910: 18x20 +#75 @ 658,202: 25x14 +#76 @ 534,906: 18x25 +#77 @ 468,342: 27x12 +#78 @ 426,350: 28x26 +#79 @ 277,968: 12x20 +#80 @ 390,877: 10x27 +#81 @ 859,603: 26x12 +#82 @ 491,937: 13x16 +#83 @ 19,883: 20x15 +#84 @ 47,400: 27x15 +#85 @ 627,191: 14x26 +#86 @ 164,326: 17x28 +#87 @ 768,216: 20x24 +#88 @ 947,765: 15x19 +#89 @ 917,142: 11x20 +#90 @ 351,87: 24x29 +#91 @ 872,451: 29x10 +#92 @ 749,900: 20x26 +#93 @ 935,30: 25x12 +#94 @ 221,943: 15x10 +#95 @ 344,602: 12x24 +#96 @ 677,578: 16x26 +#97 @ 452,606: 21x10 +#98 @ 2,722: 19x22 +#99 @ 310,605: 17x29 +#100 @ 262,390: 26x23 +#101 @ 640,499: 19x13 +#102 @ 852,924: 26x16 +#103 @ 309,81: 20x16 +#104 @ 108,918: 18x11 +#105 @ 249,160: 9x17 +#106 @ 26,62: 26x25 +#107 @ 407,587: 14x24 +#108 @ 956,98: 18x27 +#109 @ 944,459: 16x26 +#110 @ 209,699: 28x25 +#111 @ 710,856: 12x22 +#112 @ 744,288: 27x25 +#113 @ 489,344: 20x21 +#114 @ 438,488: 12x16 +#115 @ 884,95: 15x22 +#116 @ 60,617: 24x24 +#117 @ 957,191: 10x11 +#118 @ 315,527: 22x23 +#119 @ 199,117: 18x26 +#120 @ 255,642: 10x15 +#121 @ 957,962: 11x14 +#122 @ 193,131: 10x13 +#123 @ 2,931: 21x11 +#124 @ 36,961: 27x23 +#125 @ 863,38: 29x14 +#126 @ 31,731: 13x15 +#127 @ 357,741: 28x15 +#128 @ 209,354: 27x23 +#129 @ 524,8: 22x20 +#130 @ 302,247: 15x12 +#131 @ 76,857: 10x16 +#132 @ 531,502: 24x10 +#133 @ 559,962: 17x15 +#134 @ 233,710: 29x15 +#135 @ 762,70: 15x24 +#136 @ 934,186: 25x20 +#137 @ 808,252: 29x29 +#138 @ 550,694: 22x19 +#139 @ 265,368: 23x25 +#140 @ 640,637: 11x14 +#141 @ 736,484: 15x10 +#142 @ 946,571: 27x17 +#143 @ 332,174: 20x20 +#144 @ 797,775: 11x23 +#145 @ 684,63: 22x13 +#146 @ 932,36: 20x12 +#147 @ 375,882: 19x17 +#148 @ 656,227: 12x20 +#149 @ 455,223: 12x15 +#150 @ 732,619: 20x20 +#151 @ 292,615: 19x29 +#152 @ 615,0: 15x28 +#153 @ 463,174: 16x15 +#154 @ 322,456: 27x15 +#155 @ 352,224: 10x15 +#156 @ 966,673: 29x21 +#157 @ 527,42: 23x27 +#158 @ 632,775: 15x15 +#159 @ 871,805: 22x15 +#160 @ 667,240: 15x27 +#161 @ 607,880: 25x25 +#162 @ 447,44: 10x21 +#163 @ 445,126: 17x15 +#164 @ 844,933: 11x29 +#165 @ 471,423: 24x27 +#166 @ 715,867: 16x16 +#167 @ 778,279: 10x18 +#168 @ 490,630: 23x16 +#169 @ 687,301: 28x13 +#170 @ 476,432: 11x18 +#171 @ 123,794: 23x26 +#172 @ 738,256: 22x25 +#173 @ 336,60: 26x28 +#174 @ 698,766: 4x10 +#175 @ 511,10: 13x10 +#176 @ 580,702: 18x20 +#177 @ 218,620: 13x22 +#178 @ 476,488: 13x25 +#179 @ 154,617: 14x29 +#180 @ 620,563: 11x6 +#181 @ 168,433: 28x10 +#182 @ 60,685: 10x24 +#183 @ 880,680: 18x18 +#184 @ 859,616: 17x25 +#185 @ 114,80: 26x19 +#186 @ 236,868: 25x10 +#187 @ 135,13: 26x29 +#188 @ 810,677: 22x10 +#189 @ 938,932: 16x14 +#190 @ 427,434: 14x11 +#191 @ 83,731: 29x23 +#192 @ 960,148: 25x16 +#193 @ 577,669: 24x16 +#194 @ 67,267: 18x29 +#195 @ 603,928: 15x26 +#196 @ 881,39: 29x11 +#197 @ 963,957: 19x23 +#198 @ 891,868: 12x13 +#199 @ 799,34: 14x12 +#200 @ 529,785: 24x27 +#201 @ 596,936: 12x21 +#202 @ 832,289: 13x10 +#203 @ 664,232: 17x22 +#204 @ 171,345: 24x26 +#205 @ 283,521: 28x22 +#206 @ 702,469: 14x10 +#207 @ 490,531: 21x27 +#208 @ 411,388: 26x21 +#209 @ 120,780: 13x28 +#210 @ 711,391: 24x12 +#211 @ 347,848: 22x13 +#212 @ 956,507: 20x18 +#213 @ 844,696: 20x26 +#214 @ 550,230: 28x25 +#215 @ 71,625: 14x26 +#216 @ 701,305: 29x23 +#217 @ 629,488: 21x14 +#218 @ 966,362: 10x26 +#219 @ 802,763: 17x19 +#220 @ 631,858: 22x17 +#221 @ 175,656: 24x26 +#222 @ 822,185: 17x15 +#223 @ 110,390: 11x19 +#224 @ 328,13: 28x26 +#225 @ 479,262: 22x12 +#226 @ 178,796: 25x25 +#227 @ 23,782: 18x21 +#228 @ 597,578: 10x12 +#229 @ 692,683: 26x29 +#230 @ 268,713: 21x28 +#231 @ 112,197: 21x15 +#232 @ 619,282: 21x19 +#233 @ 765,56: 21x29 +#234 @ 96,163: 29x11 +#235 @ 229,927: 18x29 +#236 @ 588,775: 27x29 +#237 @ 498,293: 23x15 +#238 @ 311,166: 14x25 +#239 @ 134,371: 27x28 +#240 @ 450,173: 24x16 +#241 @ 700,398: 28x12 +#242 @ 216,282: 25x10 +#243 @ 886,817: 16x15 +#244 @ 291,967: 29x25 +#245 @ 406,283: 14x20 +#246 @ 601,779: 26x28 +#247 @ 767,213: 20x10 +#248 @ 802,36: 15x17 +#249 @ 264,361: 19x27 +#250 @ 565,236: 23x28 +#251 @ 260,394: 21x18 +#252 @ 506,427: 17x26 +#253 @ 479,946: 28x10 +#254 @ 463,505: 24x19 +#255 @ 42,314: 27x27 +#256 @ 901,709: 26x14 +#257 @ 716,194: 21x29 +#258 @ 404,285: 18x21 +#259 @ 838,243: 29x28 +#260 @ 276,510: 23x11 +#261 @ 66,605: 29x16 +#262 @ 225,3: 26x16 +#263 @ 451,355: 22x21 +#264 @ 423,41: 19x17 +#265 @ 942,912: 14x11 +#266 @ 915,613: 22x11 +#267 @ 316,786: 25x24 +#268 @ 640,185: 24x17 +#269 @ 4,564: 29x18 +#270 @ 535,912: 21x16 +#271 @ 95,633: 13x17 +#272 @ 517,170: 21x19 +#273 @ 857,812: 14x23 +#274 @ 682,515: 12x21 +#275 @ 615,847: 22x14 +#276 @ 547,47: 26x18 +#277 @ 461,552: 19x28 +#278 @ 866,29: 28x28 +#279 @ 725,878: 17x15 +#280 @ 604,454: 19x24 +#281 @ 529,452: 28x12 +#282 @ 731,633: 23x22 +#283 @ 505,447: 27x18 +#284 @ 75,694: 12x16 +#285 @ 212,909: 29x13 +#286 @ 96,630: 15x29 +#287 @ 168,34: 28x18 +#288 @ 935,481: 23x26 +#289 @ 892,235: 27x16 +#290 @ 942,945: 13x15 +#291 @ 759,221: 13x25 +#292 @ 604,339: 10x27 +#293 @ 699,313: 17x23 +#294 @ 319,716: 22x24 +#295 @ 718,219: 26x26 +#296 @ 11,917: 13x19 +#297 @ 666,632: 13x24 +#298 @ 85,791: 25x29 +#299 @ 179,204: 20x17 +#300 @ 292,234: 27x11 +#301 @ 527,488: 15x19 +#302 @ 651,158: 22x10 +#303 @ 727,98: 25x25 +#304 @ 452,9: 23x26 +#305 @ 520,386: 23x22 +#306 @ 755,196: 26x11 +#307 @ 321,107: 13x25 +#308 @ 654,563: 20x25 +#309 @ 188,228: 11x23 +#310 @ 416,355: 22x19 +#311 @ 679,567: 12x8 +#312 @ 319,282: 17x27 +#313 @ 276,620: 23x23 +#314 @ 50,242: 11x19 +#315 @ 759,918: 23x19 +#316 @ 599,84: 18x21 +#317 @ 675,230: 15x28 +#318 @ 96,480: 13x13 +#319 @ 386,254: 24x19 +#320 @ 682,199: 22x19 +#321 @ 14,819: 12x14 +#322 @ 231,451: 19x17 +#323 @ 36,396: 27x13 +#324 @ 459,917: 18x26 +#325 @ 149,874: 11x10 +#326 @ 182,325: 11x25 +#327 @ 142,279: 17x12 +#328 @ 954,276: 27x24 +#329 @ 512,263: 16x19 +#330 @ 446,841: 25x25 +#331 @ 79,247: 15x11 +#332 @ 378,881: 20x17 +#333 @ 958,324: 18x22 +#334 @ 583,501: 13x23 +#335 @ 966,133: 16x20 +#336 @ 236,395: 19x19 +#337 @ 588,910: 18x10 +#338 @ 35,406: 20x25 +#339 @ 326,404: 20x29 +#340 @ 293,761: 16x24 +#341 @ 420,371: 5x5 +#342 @ 694,764: 12x17 +#343 @ 617,15: 10x14 +#344 @ 859,915: 11x15 +#345 @ 522,430: 20x17 +#346 @ 727,180: 15x14 +#347 @ 208,679: 11x16 +#348 @ 523,670: 28x22 +#349 @ 512,436: 15x13 +#350 @ 170,11: 25x18 +#351 @ 353,588: 23x12 +#352 @ 201,605: 26x12 +#353 @ 561,681: 15x12 +#354 @ 500,357: 12x12 +#355 @ 813,438: 26x26 +#356 @ 759,853: 14x28 +#357 @ 152,737: 27x27 +#358 @ 646,721: 11x13 +#359 @ 588,446: 15x21 +#360 @ 713,927: 21x28 +#361 @ 189,43: 21x29 +#362 @ 655,722: 29x22 +#363 @ 614,184: 17x14 +#364 @ 465,10: 12x19 +#365 @ 493,612: 11x24 +#366 @ 594,442: 13x18 +#367 @ 392,893: 11x16 +#368 @ 77,740: 12x21 +#369 @ 628,138: 12x27 +#370 @ 173,500: 20x11 +#371 @ 363,587: 13x27 +#372 @ 852,276: 25x19 +#373 @ 410,949: 13x10 +#374 @ 359,948: 25x25 +#375 @ 546,677: 11x29 +#376 @ 854,582: 23x19 +#377 @ 761,145: 11x10 +#378 @ 300,888: 22x17 +#379 @ 284,791: 27x16 +#380 @ 758,255: 13x20 +#381 @ 453,16: 21x16 +#382 @ 525,183: 21x22 +#383 @ 114,307: 18x15 +#384 @ 556,225: 28x20 +#385 @ 463,19: 19x13 +#386 @ 601,579: 24x14 +#387 @ 314,870: 19x21 +#388 @ 541,438: 22x17 +#389 @ 704,543: 26x11 +#390 @ 420,537: 21x22 +#391 @ 728,211: 10x17 +#392 @ 232,822: 25x16 +#393 @ 482,339: 16x17 +#394 @ 460,129: 22x18 +#395 @ 223,181: 24x28 +#396 @ 270,740: 25x24 +#397 @ 220,22: 16x17 +#398 @ 416,414: 15x21 +#399 @ 391,524: 10x20 +#400 @ 448,282: 12x29 +#401 @ 247,862: 16x13 +#402 @ 967,527: 17x20 +#403 @ 279,637: 12x15 +#404 @ 792,166: 16x29 +#405 @ 597,902: 21x12 +#406 @ 375,729: 11x13 +#407 @ 404,395: 15x27 +#408 @ 852,581: 27x17 +#409 @ 97,859: 14x19 +#410 @ 867,477: 23x24 +#411 @ 419,139: 20x23 +#412 @ 395,956: 23x15 +#413 @ 498,388: 22x24 +#414 @ 880,814: 13x19 +#415 @ 845,417: 12x25 +#416 @ 498,357: 27x29 +#417 @ 366,739: 24x29 +#418 @ 86,66: 20x23 +#419 @ 619,871: 17x4 +#420 @ 896,449: 25x24 +#421 @ 414,64: 13x27 +#422 @ 308,77: 27x10 +#423 @ 105,927: 15x12 +#424 @ 213,110: 18x26 +#425 @ 912,820: 12x15 +#426 @ 755,643: 22x13 +#427 @ 850,256: 17x12 +#428 @ 581,456: 18x29 +#429 @ 881,461: 28x22 +#430 @ 204,903: 27x19 +#431 @ 12,578: 22x13 +#432 @ 69,762: 22x27 +#433 @ 140,879: 15x18 +#434 @ 548,924: 20x23 +#435 @ 256,293: 28x22 +#436 @ 583,438: 29x27 +#437 @ 31,936: 17x11 +#438 @ 53,289: 23x26 +#439 @ 753,871: 16x27 +#440 @ 64,856: 21x28 +#441 @ 832,962: 11x15 +#442 @ 305,969: 17x29 +#443 @ 562,103: 24x24 +#444 @ 243,231: 18x11 +#445 @ 210,19: 10x29 +#446 @ 62,702: 28x18 +#447 @ 167,127: 13x29 +#448 @ 751,334: 12x20 +#449 @ 404,236: 27x28 +#450 @ 869,107: 20x18 +#451 @ 167,687: 22x22 +#452 @ 79,449: 29x19 +#453 @ 821,288: 15x26 +#454 @ 235,926: 18x10 +#455 @ 902,705: 16x18 +#456 @ 777,189: 23x25 +#457 @ 560,141: 23x17 +#458 @ 711,900: 28x12 +#459 @ 650,864: 23x19 +#460 @ 965,91: 25x29 +#461 @ 366,589: 24x18 +#462 @ 262,423: 25x21 +#463 @ 775,176: 25x10 +#464 @ 634,899: 24x15 +#465 @ 330,489: 21x16 +#466 @ 711,668: 28x14 +#467 @ 283,699: 17x15 +#468 @ 12,741: 14x11 +#469 @ 10,532: 17x19 +#470 @ 763,148: 12x17 +#471 @ 630,884: 13x26 +#472 @ 39,381: 12x19 +#473 @ 313,382: 4x17 +#474 @ 617,862: 22x18 +#475 @ 113,120: 20x21 +#476 @ 913,322: 26x17 +#477 @ 197,33: 22x15 +#478 @ 760,220: 22x29 +#479 @ 395,195: 17x4 +#480 @ 25,469: 16x19 +#481 @ 289,620: 13x20 +#482 @ 41,395: 15x21 +#483 @ 50,148: 24x22 +#484 @ 787,117: 29x24 +#485 @ 456,623: 28x15 +#486 @ 938,37: 19x10 +#487 @ 475,340: 16x22 +#488 @ 221,808: 28x22 +#489 @ 387,452: 17x19 +#490 @ 835,789: 21x23 +#491 @ 153,456: 29x20 +#492 @ 462,344: 19x13 +#493 @ 927,8: 16x27 +#494 @ 172,734: 19x15 +#495 @ 562,52: 27x15 +#496 @ 781,826: 19x26 +#497 @ 204,123: 17x13 +#498 @ 839,514: 26x25 +#499 @ 324,417: 29x11 +#500 @ 746,828: 19x11 +#501 @ 737,580: 18x14 +#502 @ 802,22: 28x20 +#503 @ 974,392: 19x17 +#504 @ 426,55: 16x14 +#505 @ 845,795: 19x13 +#506 @ 261,102: 10x27 +#507 @ 415,400: 14x22 +#508 @ 62,0: 19x29 +#509 @ 643,429: 28x10 +#510 @ 713,121: 18x19 +#511 @ 829,23: 17x16 +#512 @ 268,80: 10x11 +#513 @ 826,654: 28x29 +#514 @ 73,96: 19x18 +#515 @ 696,417: 22x13 +#516 @ 253,437: 26x29 +#517 @ 842,523: 16x10 +#518 @ 274,960: 28x10 +#519 @ 410,317: 16x22 +#520 @ 334,981: 26x18 +#521 @ 183,480: 25x29 +#522 @ 794,659: 26x26 +#523 @ 416,188: 25x10 +#524 @ 735,400: 17x21 +#525 @ 836,779: 15x26 +#526 @ 913,298: 12x15 +#527 @ 28,507: 10x18 +#528 @ 596,697: 20x20 +#529 @ 322,163: 12x20 +#530 @ 626,94: 21x10 +#531 @ 39,391: 14x10 +#532 @ 894,108: 11x29 +#533 @ 384,173: 25x18 +#534 @ 557,974: 11x23 +#535 @ 780,805: 10x11 +#536 @ 448,734: 27x14 +#537 @ 68,349: 27x17 +#538 @ 215,700: 15x13 +#539 @ 921,309: 26x16 +#540 @ 312,665: 15x3 +#541 @ 301,946: 16x22 +#542 @ 798,747: 11x22 +#543 @ 850,675: 28x28 +#544 @ 438,425: 11x18 +#545 @ 477,537: 16x25 +#546 @ 869,878: 22x22 +#547 @ 830,106: 26x15 +#548 @ 16,880: 23x28 +#549 @ 89,598: 25x10 +#550 @ 911,746: 25x20 +#551 @ 132,268: 27x14 +#552 @ 107,54: 22x16 +#553 @ 617,920: 17x25 +#554 @ 888,796: 17x17 +#555 @ 911,21: 21x13 +#556 @ 901,126: 12x28 +#557 @ 501,378: 25x26 +#558 @ 231,749: 28x10 +#559 @ 534,889: 12x24 +#560 @ 388,923: 17x14 +#561 @ 113,84: 15x28 +#562 @ 924,424: 19x27 +#563 @ 669,933: 29x22 +#564 @ 317,796: 22x24 +#565 @ 149,894: 18x11 +#566 @ 815,914: 21x17 +#567 @ 686,540: 28x10 +#568 @ 531,331: 20x24 +#569 @ 459,576: 15x28 +#570 @ 127,520: 15x24 +#571 @ 466,572: 13x26 +#572 @ 935,555: 18x19 +#573 @ 461,946: 12x20 +#574 @ 918,162: 11x12 +#575 @ 279,305: 21x15 +#576 @ 650,714: 15x13 +#577 @ 486,776: 12x27 +#578 @ 81,253: 20x17 +#579 @ 906,18: 22x14 +#580 @ 306,26: 16x16 +#581 @ 184,724: 17x28 +#582 @ 751,225: 15x10 +#583 @ 26,783: 21x11 +#584 @ 103,41: 21x26 +#585 @ 283,5: 12x24 +#586 @ 733,375: 13x27 +#587 @ 193,973: 11x21 +#588 @ 47,306: 19x14 +#589 @ 964,124: 11x19 +#590 @ 856,321: 19x12 +#591 @ 437,655: 29x14 +#592 @ 368,437: 25x24 +#593 @ 537,154: 28x17 +#594 @ 574,451: 11x13 +#595 @ 963,342: 21x26 +#596 @ 250,492: 22x18 +#597 @ 962,740: 22x14 +#598 @ 697,784: 29x22 +#599 @ 153,323: 23x23 +#600 @ 534,713: 13x12 +#601 @ 75,73: 22x18 +#602 @ 166,755: 15x12 +#603 @ 273,622: 22x12 +#604 @ 660,432: 10x24 +#605 @ 119,965: 25x25 +#606 @ 751,294: 28x14 +#607 @ 676,358: 13x11 +#608 @ 204,588: 17x29 +#609 @ 792,828: 21x14 +#610 @ 163,141: 27x12 +#611 @ 159,33: 22x19 +#612 @ 158,364: 13x15 +#613 @ 711,929: 16x14 +#614 @ 811,654: 18x29 +#615 @ 903,828: 24x20 +#616 @ 323,111: 23x26 +#617 @ 891,258: 28x28 +#618 @ 551,826: 25x12 +#619 @ 660,935: 29x19 +#620 @ 41,27: 28x19 +#621 @ 590,491: 26x24 +#622 @ 174,31: 10x25 +#623 @ 563,817: 21x25 +#624 @ 961,746: 13x27 +#625 @ 599,403: 13x11 +#626 @ 852,661: 22x27 +#627 @ 84,473: 18x19 +#628 @ 580,98: 28x27 +#629 @ 138,506: 28x15 +#630 @ 981,544: 16x26 +#631 @ 418,908: 23x24 +#632 @ 371,926: 22x25 +#633 @ 701,291: 11x20 +#634 @ 66,889: 28x25 +#635 @ 641,689: 14x26 +#636 @ 177,960: 10x16 +#637 @ 60,39: 20x18 +#638 @ 378,445: 14x25 +#639 @ 113,794: 17x16 +#640 @ 197,627: 22x16 +#641 @ 324,530: 12x25 +#642 @ 8,206: 18x29 +#643 @ 359,893: 23x15 +#644 @ 795,198: 19x17 +#645 @ 239,900: 12x20 +#646 @ 504,343: 19x10 +#647 @ 708,677: 29x10 +#648 @ 63,697: 14x12 +#649 @ 403,203: 25x18 +#650 @ 305,183: 16x18 +#651 @ 609,447: 20x22 +#652 @ 508,394: 16x29 +#653 @ 178,144: 29x27 +#654 @ 870,490: 23x19 +#655 @ 130,855: 27x14 +#656 @ 333,563: 25x14 +#657 @ 862,252: 18x16 +#658 @ 40,384: 20x29 +#659 @ 639,299: 13x10 +#660 @ 869,856: 12x23 +#661 @ 35,495: 13x28 +#662 @ 545,322: 16x26 +#663 @ 671,566: 11x12 +#664 @ 342,10: 10x17 +#665 @ 932,940: 21x14 +#666 @ 726,480: 11x11 +#667 @ 249,632: 17x21 +#668 @ 939,830: 11x14 +#669 @ 812,241: 19x25 +#670 @ 739,641: 15x21 +#671 @ 307,873: 21x25 +#672 @ 845,687: 13x11 +#673 @ 953,676: 26x17 +#674 @ 137,960: 26x13 +#675 @ 853,498: 29x13 +#676 @ 396,599: 17x17 +#677 @ 431,839: 27x27 +#678 @ 745,290: 23x16 +#679 @ 336,849: 12x23 +#680 @ 852,492: 28x15 +#681 @ 467,781: 25x23 +#682 @ 525,668: 18x15 +#683 @ 941,189: 25x24 +#684 @ 130,323: 17x26 +#685 @ 410,612: 12x20 +#686 @ 967,499: 13x23 +#687 @ 947,263: 16x22 +#688 @ 158,434: 13x13 +#689 @ 920,298: 13x15 +#690 @ 361,415: 16x21 +#691 @ 302,600: 21x20 +#692 @ 65,356: 20x24 +#693 @ 855,427: 13x12 +#694 @ 877,366: 10x10 +#695 @ 138,415: 20x14 +#696 @ 818,653: 27x12 +#697 @ 829,540: 15x29 +#698 @ 636,121: 19x28 +#699 @ 324,960: 16x23 +#700 @ 680,614: 10x11 +#701 @ 380,819: 21x21 +#702 @ 873,107: 11x15 +#703 @ 42,644: 11x17 +#704 @ 62,860: 17x21 +#705 @ 728,704: 27x27 +#706 @ 604,488: 17x25 +#707 @ 418,252: 28x14 +#708 @ 715,408: 28x17 +#709 @ 747,225: 21x13 +#710 @ 124,787: 18x18 +#711 @ 394,376: 29x18 +#712 @ 182,552: 13x16 +#713 @ 129,424: 19x23 +#714 @ 852,526: 18x12 +#715 @ 849,634: 21x19 +#716 @ 220,22: 14x21 +#717 @ 327,870: 18x15 +#718 @ 627,170: 10x13 +#719 @ 108,768: 17x22 +#720 @ 870,303: 11x28 +#721 @ 616,917: 19x18 +#722 @ 118,316: 10x11 +#723 @ 476,355: 12x13 +#724 @ 235,946: 23x12 +#725 @ 310,723: 24x21 +#726 @ 28,483: 14x28 +#727 @ 746,202: 26x12 +#728 @ 736,404: 19x28 +#729 @ 973,143: 21x26 +#730 @ 226,9: 18x24 +#731 @ 717,746: 29x26 +#732 @ 793,668: 28x19 +#733 @ 446,177: 11x25 +#734 @ 86,243: 27x11 +#735 @ 73,13: 15x25 +#736 @ 225,706: 13x13 +#737 @ 852,950: 25x10 +#738 @ 502,427: 13x15 +#739 @ 950,504: 26x17 +#740 @ 761,290: 21x24 +#741 @ 90,378: 28x29 +#742 @ 431,457: 27x13 +#743 @ 196,666: 15x29 +#744 @ 439,105: 10x29 +#745 @ 788,261: 28x10 +#746 @ 947,904: 13x12 +#747 @ 328,973: 17x25 +#748 @ 255,758: 22x26 +#749 @ 320,426: 21x21 +#750 @ 735,258: 16x24 +#751 @ 883,333: 21x25 +#752 @ 5,510: 10x23 +#753 @ 389,972: 20x14 +#754 @ 671,937: 18x10 +#755 @ 728,342: 20x18 +#756 @ 247,617: 26x13 +#757 @ 301,241: 25x19 +#758 @ 971,653: 18x25 +#759 @ 807,30: 25x14 +#760 @ 318,525: 14x12 +#761 @ 640,618: 26x24 +#762 @ 788,253: 25x26 +#763 @ 393,192: 23x12 +#764 @ 522,920: 13x26 +#765 @ 232,204: 14x18 +#766 @ 953,862: 22x25 +#767 @ 41,239: 22x18 +#768 @ 760,535: 11x25 +#769 @ 84,868: 28x26 +#770 @ 920,703: 19x26 +#771 @ 678,544: 27x17 +#772 @ 814,591: 18x11 +#773 @ 15,181: 18x10 +#774 @ 725,661: 22x11 +#775 @ 241,691: 18x17 +#776 @ 84,81: 14x29 +#777 @ 909,818: 14x23 +#778 @ 357,478: 27x25 +#779 @ 537,878: 24x15 +#780 @ 812,832: 16x18 +#781 @ 528,394: 24x29 +#782 @ 411,603: 15x12 +#783 @ 94,727: 10x16 +#784 @ 968,146: 24x27 +#785 @ 755,195: 22x11 +#786 @ 948,802: 21x13 +#787 @ 509,266: 10x28 +#788 @ 626,463: 21x19 +#789 @ 766,203: 19x22 +#790 @ 450,28: 12x24 +#791 @ 290,589: 25x12 +#792 @ 294,195: 22x28 +#793 @ 481,949: 22x20 +#794 @ 732,708: 25x13 +#795 @ 292,706: 17x20 +#796 @ 502,6: 13x10 +#797 @ 119,382: 29x23 +#798 @ 300,953: 16x22 +#799 @ 978,231: 18x16 +#800 @ 119,409: 23x12 +#801 @ 390,634: 27x13 +#802 @ 958,124: 19x21 +#803 @ 423,437: 27x13 +#804 @ 394,299: 27x19 +#805 @ 973,910: 24x10 +#806 @ 462,133: 29x11 +#807 @ 529,750: 17x15 +#808 @ 80,744: 12x17 +#809 @ 56,99: 19x17 +#810 @ 926,721: 12x28 +#811 @ 916,569: 27x15 +#812 @ 723,376: 13x27 +#813 @ 852,824: 26x23 +#814 @ 953,944: 17x10 +#815 @ 786,937: 28x17 +#816 @ 188,705: 17x24 +#817 @ 543,456: 13x18 +#818 @ 676,918: 20x10 +#819 @ 97,706: 24x29 +#820 @ 722,656: 29x18 +#821 @ 182,328: 24x15 +#822 @ 490,397: 28x20 +#823 @ 247,217: 19x20 +#824 @ 217,592: 12x21 +#825 @ 452,201: 14x25 +#826 @ 348,612: 11x26 +#827 @ 652,935: 22x21 +#828 @ 650,925: 29x21 +#829 @ 495,247: 15x29 +#830 @ 594,561: 20x15 +#831 @ 220,460: 29x25 +#832 @ 642,117: 12x20 +#833 @ 235,533: 24x13 +#834 @ 285,755: 14x11 +#835 @ 739,473: 23x21 +#836 @ 268,387: 20x16 +#837 @ 459,275: 28x10 +#838 @ 493,572: 13x21 +#839 @ 320,720: 18x20 +#840 @ 168,757: 5x6 +#841 @ 496,368: 29x18 +#842 @ 419,45: 15x22 +#843 @ 749,524: 23x19 +#844 @ 413,68: 25x19 +#845 @ 250,698: 16x27 +#846 @ 101,697: 26x13 +#847 @ 968,332: 11x19 +#848 @ 953,137: 19x11 +#849 @ 134,396: 27x19 +#850 @ 891,465: 13x28 +#851 @ 40,931: 24x18 +#852 @ 170,775: 25x10 +#853 @ 187,26: 18x15 +#854 @ 677,28: 19x17 +#855 @ 752,274: 22x16 +#856 @ 217,376: 15x17 +#857 @ 379,249: 15x28 +#858 @ 308,661: 25x16 +#859 @ 514,704: 28x16 +#860 @ 281,235: 26x23 +#861 @ 430,650: 15x28 +#862 @ 784,125: 26x25 +#863 @ 212,123: 19x14 +#864 @ 946,191: 15x8 +#865 @ 405,399: 21x27 +#866 @ 443,484: 19x16 +#867 @ 769,626: 17x25 +#868 @ 119,786: 29x19 +#869 @ 890,20: 26x28 +#870 @ 12,161: 11x24 +#871 @ 957,869: 11x12 +#872 @ 332,736: 28x15 +#873 @ 178,967: 27x10 +#874 @ 323,441: 23x10 +#875 @ 229,436: 28x16 +#876 @ 734,578: 23x17 +#877 @ 433,614: 25x27 +#878 @ 30,160: 28x18 +#879 @ 217,279: 26x21 +#880 @ 621,130: 27x15 +#881 @ 465,601: 26x28 +#882 @ 231,580: 25x11 +#883 @ 300,512: 25x23 +#884 @ 422,258: 22x19 +#885 @ 308,530: 15x13 +#886 @ 164,202: 10x12 +#887 @ 412,181: 18x21 +#888 @ 121,766: 25x18 +#889 @ 177,945: 14x16 +#890 @ 30,162: 13x26 +#891 @ 437,565: 23x27 +#892 @ 454,280: 26x27 +#893 @ 379,526: 23x12 +#894 @ 834,707: 13x5 +#895 @ 859,357: 24x28 +#896 @ 891,303: 16x14 +#897 @ 385,116: 28x20 +#898 @ 53,12: 24x22 +#899 @ 428,979: 24x20 +#900 @ 916,602: 28x17 +#901 @ 19,739: 16x21 +#902 @ 871,32: 18x22 +#903 @ 207,110: 12x16 +#904 @ 932,15: 26x19 +#905 @ 691,232: 11x18 +#906 @ 965,799: 20x20 +#907 @ 241,526: 24x23 +#908 @ 931,915: 18x14 +#909 @ 662,584: 24x14 +#910 @ 30,148: 10x17 +#911 @ 50,466: 24x29 +#912 @ 265,504: 22x10 +#913 @ 59,857: 28x24 +#914 @ 170,780: 18x27 +#915 @ 436,51: 27x12 +#916 @ 921,139: 16x17 +#917 @ 532,377: 16x23 +#918 @ 237,188: 20x27 +#919 @ 672,653: 11x20 +#920 @ 333,546: 13x18 +#921 @ 830,191: 25x27 +#922 @ 745,644: 24x23 +#923 @ 877,371: 17x28 +#924 @ 926,426: 12x19 +#925 @ 731,977: 13x21 +#926 @ 12,122: 14x14 +#927 @ 65,896: 17x28 +#928 @ 126,609: 29x13 +#929 @ 557,244: 24x22 +#930 @ 80,21: 14x24 +#931 @ 725,184: 18x28 +#932 @ 654,181: 18x12 +#933 @ 439,283: 14x21 +#934 @ 974,95: 26x15 +#935 @ 235,9: 10x17 +#936 @ 306,422: 24x21 +#937 @ 383,952: 29x10 +#938 @ 738,201: 23x15 +#939 @ 254,624: 26x19 +#940 @ 421,672: 17x14 +#941 @ 221,751: 12x28 +#942 @ 730,768: 13x18 +#943 @ 342,13: 17x18 +#944 @ 594,639: 24x17 +#945 @ 127,323: 16x12 +#946 @ 861,701: 13x10 +#947 @ 696,541: 28x24 +#948 @ 804,363: 12x25 +#949 @ 958,296: 29x13 +#950 @ 126,868: 16x20 +#951 @ 916,483: 26x15 +#952 @ 318,52: 19x22 +#953 @ 240,938: 18x11 +#954 @ 849,275: 16x11 +#955 @ 712,412: 27x26 +#956 @ 913,613: 14x15 +#957 @ 756,476: 20x18 +#958 @ 656,906: 14x11 +#959 @ 461,633: 12x26 +#960 @ 398,208: 19x12 +#961 @ 490,333: 14x14 +#962 @ 816,658: 16x27 +#963 @ 579,562: 17x19 +#964 @ 961,552: 16x29 +#965 @ 393,947: 27x19 +#966 @ 68,464: 18x13 +#967 @ 318,537: 21x13 +#968 @ 904,171: 28x13 +#969 @ 629,974: 23x22 +#970 @ 415,366: 15x19 +#971 @ 401,976: 26x13 +#972 @ 18,44: 26x12 +#973 @ 18,804: 27x26 +#974 @ 134,446: 25x22 +#975 @ 158,464: 19x13 +#976 @ 623,437: 9x3 +#977 @ 376,181: 19x15 +#978 @ 738,397: 26x27 +#979 @ 338,207: 20x23 +#980 @ 218,403: 27x17 +#981 @ 530,937: 27x10 +#982 @ 134,958: 11x19 +#983 @ 675,514: 13x17 +#984 @ 891,383: 10x27 +#985 @ 935,748: 15x11 +#986 @ 943,956: 25x22 +#987 @ 18,649: 11x14 +#988 @ 740,243: 21x10 +#989 @ 404,309: 14x22 +#990 @ 134,19: 13x19 +#991 @ 406,381: 14x23 +#992 @ 428,395: 18x13 +#993 @ 121,971: 18x15 +#994 @ 62,794: 25x17 +#995 @ 134,403: 20x13 +#996 @ 347,567: 20x29 +#997 @ 615,358: 3x18 +#998 @ 852,28: 15x16 +#999 @ 259,379: 27x24 +#1000 @ 268,617: 20x20 +#1001 @ 956,657: 20x22 +#1002 @ 924,876: 26x18 +#1003 @ 748,411: 12x14 +#1004 @ 882,249: 29x10 +#1005 @ 979,25: 21x17 +#1006 @ 559,126: 25x28 +#1007 @ 569,712: 28x13 +#1008 @ 623,781: 25x16 +#1009 @ 422,607: 25x10 +#1010 @ 613,904: 11x26 +#1011 @ 128,411: 16x17 +#1012 @ 9,195: 22x12 +#1013 @ 83,362: 14x23 +#1014 @ 617,149: 26x18 +#1015 @ 382,436: 12x21 +#1016 @ 613,855: 23x16 +#1017 @ 956,222: 24x17 +#1018 @ 400,977: 12x15 +#1019 @ 181,333: 18x17 +#1020 @ 610,174: 25x14 +#1021 @ 825,26: 13x24 +#1022 @ 296,778: 26x14 +#1023 @ 465,135: 24x16 +#1024 @ 638,807: 10x14 +#1025 @ 547,697: 19x15 +#1026 @ 103,663: 15x21 +#1027 @ 71,113: 20x28 +#1028 @ 325,498: 27x28 +#1029 @ 525,808: 23x19 +#1030 @ 828,949: 15x27 +#1031 @ 46,699: 11x18 +#1032 @ 676,396: 29x29 +#1033 @ 552,889: 25x27 +#1034 @ 943,865: 15x22 +#1035 @ 480,310: 27x20 +#1036 @ 714,270: 29x17 +#1037 @ 647,711: 18x15 +#1038 @ 590,431: 24x16 +#1039 @ 675,554: 20x26 +#1040 @ 287,13: 17x20 +#1041 @ 886,310: 16x28 +#1042 @ 219,353: 15x22 +#1043 @ 215,12: 14x17 +#1044 @ 307,541: 29x22 +#1045 @ 151,734: 22x22 +#1046 @ 517,785: 14x24 +#1047 @ 617,89: 15x26 +#1048 @ 726,978: 13x22 +#1049 @ 404,546: 25x29 +#1050 @ 395,372: 23x15 +#1051 @ 249,583: 21x21 +#1052 @ 941,455: 23x15 +#1053 @ 801,651: 19x11 +#1054 @ 186,120: 10x22 +#1055 @ 562,177: 11x10 +#1056 @ 504,441: 14x29 +#1057 @ 401,274: 11x16 +#1058 @ 69,463: 24x28 +#1059 @ 409,955: 20x27 +#1060 @ 856,263: 26x20 +#1061 @ 747,821: 23x11 +#1062 @ 243,158: 20x22 +#1063 @ 694,957: 27x10 +#1064 @ 370,666: 29x23 +#1065 @ 74,640: 14x24 +#1066 @ 330,223: 11x21 +#1067 @ 93,659: 27x10 +#1068 @ 916,571: 20x24 +#1069 @ 681,208: 10x26 +#1070 @ 62,125: 27x28 +#1071 @ 163,527: 14x24 +#1072 @ 353,71: 23x22 +#1073 @ 938,1: 12x27 +#1074 @ 561,956: 20x26 +#1075 @ 850,491: 29x23 +#1076 @ 762,231: 16x28 +#1077 @ 391,96: 13x24 +#1078 @ 359,435: 14x17 +#1079 @ 150,326: 15x20 +#1080 @ 615,695: 29x17 +#1081 @ 477,123: 24x14 +#1082 @ 851,99: 12x26 +#1083 @ 328,627: 22x29 +#1084 @ 925,616: 14x23 +#1085 @ 59,897: 23x19 +#1086 @ 152,379: 23x15 +#1087 @ 255,415: 19x22 +#1088 @ 921,476: 19x24 +#1089 @ 946,215: 23x16 +#1090 @ 384,725: 23x11 +#1091 @ 612,353: 18x29 +#1092 @ 443,193: 22x20 +#1093 @ 41,141: 18x10 +#1094 @ 288,10: 24x19 +#1095 @ 623,908: 11x20 +#1096 @ 424,159: 27x19 +#1097 @ 896,878: 16x29 +#1098 @ 466,334: 27x18 +#1099 @ 589,755: 23x25 +#1100 @ 341,592: 13x27 +#1101 @ 220,387: 16x12 +#1102 @ 958,510: 15x9 +#1103 @ 252,435: 11x23 +#1104 @ 143,853: 15x10 +#1105 @ 841,205: 14x29 +#1106 @ 439,456: 11x19 +#1107 @ 937,828: 18x21 +#1108 @ 725,650: 24x26 +#1109 @ 851,222: 19x26 +#1110 @ 248,423: 5x4 +#1111 @ 740,325: 10x23 +#1112 @ 474,960: 20x22 +#1113 @ 943,946: 11x26 +#1114 @ 590,580: 18x25 +#1115 @ 472,370: 19x17 +#1116 @ 804,427: 29x16 +#1117 @ 679,42: 16x14 +#1118 @ 318,272: 12x28 +#1119 @ 372,878: 10x12 +#1120 @ 685,223: 16x26 +#1121 @ 853,19: 23x12 +#1122 @ 532,63: 27x18 +#1123 @ 456,320: 28x19 +#1124 @ 888,828: 25x24 +#1125 @ 348,461: 19x25 +#1126 @ 873,395: 15x13 +#1127 @ 705,451: 27x28 +#1128 @ 730,589: 11x26 +#1129 @ 667,727: 20x24 +#1130 @ 101,130: 24x23 +#1131 @ 563,688: 28x21 +#1132 @ 5,143: 26x19 +#1133 @ 522,671: 19x23 +#1134 @ 481,350: 19x23 +#1135 @ 4,125: 25x18 +#1136 @ 118,943: 26x24 +#1137 @ 371,834: 20x26 +#1138 @ 523,751: 22x10 +#1139 @ 92,181: 18x16 +#1140 @ 904,145: 20x17 +#1141 @ 280,513: 25x28 +#1142 @ 43,61: 17x19 +#1143 @ 602,643: 12x9 +#1144 @ 499,293: 12x10 +#1145 @ 155,345: 28x25 +#1146 @ 572,503: 17x21 +#1147 @ 537,595: 28x12 +#1148 @ 256,841: 18x25 +#1149 @ 621,431: 16x14 +#1150 @ 657,258: 23x12 +#1151 @ 305,436: 24x18 +#1152 @ 907,820: 12x15 +#1153 @ 65,744: 26x23 +#1154 @ 230,861: 18x17 +#1155 @ 333,12: 23x24 +#1156 @ 248,418: 23x27 +#1157 @ 469,958: 19x12 +#1158 @ 35,931: 11x14 +#1159 @ 288,563: 10x29 +#1160 @ 43,378: 14x11 +#1161 @ 88,739: 12x25 +#1162 @ 804,900: 21x29 +#1163 @ 381,76: 22x24 +#1164 @ 30,502: 16x14 +#1165 @ 527,603: 12x14 +#1166 @ 956,209: 15x19 +#1167 @ 960,546: 29x14 +#1168 @ 188,744: 10x19 +#1169 @ 175,744: 12x29 +#1170 @ 133,778: 22x21 +#1171 @ 174,205: 14x20 +#1172 @ 690,959: 21x12 +#1173 @ 619,491: 13x22 +#1174 @ 813,594: 18x12 +#1175 @ 876,607: 29x13 +#1176 @ 900,6: 19x18 +#1177 @ 967,721: 13x25 +#1178 @ 189,232: 19x26 +#1179 @ 827,553: 24x18 +#1180 @ 402,245: 28x17 +#1181 @ 162,896: 14x17 +#1182 @ 914,1: 22x27 +#1183 @ 208,134: 22x19 +#1184 @ 526,331: 29x22 +#1185 @ 145,202: 22x13 +#1186 @ 409,861: 25x13 +#1187 @ 801,730: 28x18 +#1188 @ 624,487: 20x15 +#1189 @ 393,687: 15x29 +#1190 @ 279,958: 15x29 +#1191 @ 653,395: 26x27 +#1192 @ 179,26: 10x19 +#1193 @ 260,76: 29x25 +#1194 @ 859,406: 18x10 +#1195 @ 296,932: 21x23 +#1196 @ 301,974: 16x26 +#1197 @ 727,757: 29x10 +#1198 @ 657,397: 17x20 +#1199 @ 442,937: 18x26 +#1200 @ 29,508: 19x15 +#1201 @ 636,245: 24x12 +#1202 @ 960,402: 28x12 +#1203 @ 139,256: 17x29 +#1204 @ 168,117: 23x15 +#1205 @ 770,785: 27x29 +#1206 @ 752,276: 21x21 +#1207 @ 883,889: 13x13 +#1208 @ 62,918: 21x10 +#1209 @ 163,517: 17x12 +#1210 @ 470,613: 19x11 +#1211 @ 451,661: 26x29 +#1212 @ 211,38: 19x13 +#1213 @ 539,439: 19x28 +#1214 @ 339,229: 23x21 +#1215 @ 591,542: 26x25 +#1216 @ 41,643: 29x21 +#1217 @ 806,823: 14x19 +#1218 @ 628,245: 11x18 +#1219 @ 378,619: 20x19 +#1220 @ 250,444: 14x22 +#1221 @ 713,891: 17x12 +#1222 @ 144,430: 27x21 +#1223 @ 125,200: 27x29 +#1224 @ 525,664: 15x22 +#1225 @ 369,485: 23x27 +#1226 @ 868,564: 29x20 +#1227 @ 642,700: 11x12 +#1228 @ 951,6: 14x25 +#1229 @ 532,331: 24x13 +#1230 @ 937,480: 15x12 +#1231 @ 81,65: 27x25 +#1232 @ 153,263: 11x26 +#1233 @ 970,364: 14x19 +#1234 @ 143,454: 26x27 +#1235 @ 495,574: 7x15 +#1236 @ 850,209: 20x17 +#1237 @ 126,965: 23x29 +#1238 @ 870,675: 23x28 +#1239 @ 308,376: 14x28 +#1240 @ 578,755: 14x24 +#1241 @ 844,481: 23x22 +#1242 @ 734,769: 25x16 +#1243 @ 723,219: 22x27 +#1244 @ 159,695: 23x18 +#1245 @ 754,285: 26x22 +#1246 @ 345,974: 26x23 +#1247 @ 29,69: 27x12 +#1248 @ 181,784: 15x12 +#1249 @ 682,616: 5x6 +#1250 @ 208,28: 27x28 +#1251 @ 665,234: 18x23 +#1252 @ 961,288: 11x22 +#1253 @ 363,57: 19x21 +#1254 @ 662,137: 25x24 +#1255 @ 7,41: 21x15 +#1256 @ 693,784: 12x28 +#1257 @ 186,543: 29x13 +#1258 @ 596,354: 13x10 +#1259 @ 824,705: 28x16 +#1260 @ 468,614: 25x20 +#1261 @ 542,10: 28x18 +#1262 @ 231,942: 18x29 +#1263 @ 979,39: 12x13 +#1264 @ 345,77: 16x25 +#1265 @ 715,127: 14x28 +#1266 @ 618,560: 16x16 +#1267 @ 687,397: 22x25 +#1268 @ 880,229: 16x18 +#1269 @ 806,358: 29x16 +#1270 @ 106,846: 23x29 +#1271 @ 61,299: 16x14 +#1272 @ 644,818: 19x22 +#1273 @ 557,157: 29x24 +#1274 @ 29,710: 25x28 +#1275 @ 207,585: 21x27 +#1276 @ 83,715: 26x14 +#1277 @ 325,51: 13x10 +#1278 @ 717,97: 16x12 +#1279 @ 602,139: 26x11 +#1280 @ 26,933: 29x12 +#1281 @ 815,755: 13x22 +#1282 @ 786,950: 23x21 +#1283 @ 403,978: 29x19 \ No newline at end of file diff --git a/2018/4thDay/challenge1/.vscode/settings.json b/2018/4thDay/challenge1/.vscode/settings.json new file mode 100644 index 0000000..28679f5 --- /dev/null +++ b/2018/4thDay/challenge1/.vscode/settings.json @@ -0,0 +1,37 @@ +{ + "files.associations": { + "cctype": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "cstddef": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "array": "cpp", + "*.tcc": "cpp", + "cstdint": "cpp", + "deque": "cpp", + "unordered_map": "cpp", + "vector": "cpp", + "exception": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "limits": "cpp", + "new": "cpp", + "optional": "cpp", + "ostream": "cpp", + "sstream": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "type_traits": "cpp", + "tuple": "cpp", + "typeinfo": "cpp", + "utility": "cpp" + } +} \ No newline at end of file diff --git a/2018/4thDay/challenge1/a.out b/2018/4thDay/challenge1/a.out new file mode 100644 index 0000000000000000000000000000000000000000..67c3fac801bff3ef477bbb939776641a788b5787 GIT binary patch literal 83984 zcmeFa4}4X{@i%<(2aHM~T2xfjE24sbXc7VhMGcUPHxM8uL8+pbkX%SK|4eQWt$$FY zC5G74ilr4>>SHanwxvof`k+QclB%_-kG0XFqE&k%R8wpHp{3^i&g|?td(J&4pqA(J zzVCyd6&{X)@KJ?@4ZNdfqD>&}RrqztqJ+GC1dEt~pxtOJ)u6GgYk(~Sck?vU~ z(q52WmWlit(zwy*YcbmA-XD`c}c=p8HaZUB(a=72bpUPf1XC4)2 z`w~`6A1*ke-_-Y)y&sV9=Y~gKfSr<;nOc#PQx)4{}T_@ukYY_2;+dV&cy%S zu@`C|-ZB19N39()op64i2Z0n5bdd*xu^)a6jM5MPGYId8-yMMePC&c=321kD0H0w2 z_~rn71r+Be=lB5p4`D!l<)07G!^Z*gFAm^yPe8k&fb!b|_&*#_{yzcu#{=3WYxL`H zc|d>vR{)#rwGd`1gVL8<$tWf0PfO6VTt2t)s2=;*Up2nSVk*M_9*O`A;cCCgkQ1{8dxD zvf|7$$wy7JqR}O_^>xvvczI(y8nvQ@WwWD|vBubv>ZW+Cv26DAn)&Oq@y7D%I1u4*32@^Vl{ZyaM8UB!R$g0J7A?z)hD#?#OG?M1 z#Y^Wbj;Fge%f7NwM3QKdNr4yoM+0k%VdY3B-SS%XwQT1y&8lYv%q7AXeruw?_n(Fwq(WO}|ztQc=SVd#3HdYr8&<4s^))b@LkheU#2!mS} zttgLIR57ERtY|b|)mVQ`v?f-!BwnS)Ko3C8KF77*JFcbiyl81GzPP%krVvA{v{2pH z6fUU|5z1?7>LCDzds#)SAzocyCxjRVS4%c$R-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=hR)-!UnSwDv|J&a$nKf;moy^86{qHj2n&rE?f 0); + this.fellAsleepAt = null; + } + + sleep (fellAsleepAt) { + this.fellAsleepAt = fellAsleepAt; + } + + awake (awokeAt) { + for (let i = this.fellAsleepAt; i < awokeAt; i++) { + this.minutesAsleep[i] += 1; + } + } + + get totalSleepMinutes () { + return this.minutesAsleep.reduce((a, b) => a + b, 0); + } + + get sleepiestMinute () { + return this.minutesAsleep + .map((value, index) => ({ index, value })) + .sort((a, b) => b.value - a.value)[0].index; + } +} + +const sleep = (input) => { + const guards = {}; + const schedule = input + .split('\n') + .map((x) => x.trim()) + .sort() + .map((x) => { + const parts = x.match(/\[(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2})\] (.*)/); + + return { + minute: +parts[5], + message: parts[6], + }; + }); + + let currentGuard = null; + + for (let i = 0; i < schedule.length; i++) { + const { message, minute } = schedule[i]; + + if (/Guard/.test(message)) { + const parts = message.match(/Guard #(\d+) begins shift/); + const guardId = +parts[1]; + const guard = guards[guardId] ? guards[guardId] : new Guard(guardId); + + currentGuard = guards[guardId] = guard; + } else if (message === 'falls asleep') { + currentGuard.sleep(minute); + } else if (message === 'wakes up') { + currentGuard.awake(minute); + } + } + const sleepiestGuard = Object + .keys(guards) + .map((guardId) => guards[guardId]) + .sort((a, b) => b.totalSleepMinutes - a.totalSleepMinutes)[0]; + + return sleepiestGuard.id * sleepiestGuard.sleepiestMinute; +} + +const fs = require('fs'); +console.log(sleep(fs.readFileSync("input.txt").toString())); + diff --git a/2018/4thDay/challenge1/input.txt b/2018/4thDay/challenge1/input.txt new file mode 100644 index 0000000..6a4973b --- /dev/null +++ b/2018/4thDay/challenge1/input.txt @@ -0,0 +1,1000 @@ +[1518-09-24 00:59] wakes up +[1518-05-22 00:47] wakes up +[1518-05-08 00:02] Guard #2719 begins shift +[1518-11-12 00:00] Guard #3011 begins shift +[1518-04-12 00:57] wakes up +[1518-05-21 00:32] wakes up +[1518-11-12 00:30] falls asleep +[1518-08-23 00:39] wakes up +[1518-10-18 00:48] wakes up +[1518-09-16 00:28] falls asleep +[1518-04-07 00:54] falls asleep +[1518-10-26 00:38] wakes up +[1518-03-18 00:12] falls asleep +[1518-05-23 00:01] Guard #2027 begins shift +[1518-05-31 00:09] falls asleep +[1518-05-19 00:09] falls asleep +[1518-05-28 00:02] Guard #2719 begins shift +[1518-09-24 00:04] falls asleep +[1518-03-31 00:42] falls asleep +[1518-09-04 00:52] wakes up +[1518-08-27 23:48] Guard #1657 begins shift +[1518-08-18 00:22] falls asleep +[1518-07-28 00:45] wakes up +[1518-11-15 00:31] falls asleep +[1518-09-20 00:46] wakes up +[1518-07-11 00:54] falls asleep +[1518-09-19 00:00] Guard #2027 begins shift +[1518-06-01 00:58] wakes up +[1518-06-03 00:56] wakes up +[1518-05-18 00:52] falls asleep +[1518-10-25 00:05] falls asleep +[1518-04-15 00:33] wakes up +[1518-08-11 23:59] Guard #3023 begins shift +[1518-08-06 00:18] falls asleep +[1518-08-23 00:34] falls asleep +[1518-08-05 00:22] wakes up +[1518-04-22 23:58] Guard #1657 begins shift +[1518-06-30 00:54] wakes up +[1518-11-21 00:14] wakes up +[1518-06-18 23:54] Guard #3361 begins shift +[1518-10-27 00:51] wakes up +[1518-10-01 00:26] falls asleep +[1518-06-30 00:38] wakes up +[1518-05-05 00:33] wakes up +[1518-03-12 00:24] wakes up +[1518-07-26 00:33] wakes up +[1518-03-22 00:16] wakes up +[1518-04-21 00:58] wakes up +[1518-08-08 23:58] Guard #563 begins shift +[1518-05-23 00:25] wakes up +[1518-08-25 00:44] wakes up +[1518-04-29 00:57] wakes up +[1518-09-23 23:53] Guard #2027 begins shift +[1518-03-31 00:00] Guard #743 begins shift +[1518-04-05 00:02] Guard #3011 begins shift +[1518-10-16 00:00] Guard #659 begins shift +[1518-06-24 00:58] wakes up +[1518-05-06 23:59] Guard #2719 begins shift +[1518-03-21 00:55] falls asleep +[1518-08-21 00:29] falls asleep +[1518-07-19 00:14] falls asleep +[1518-09-03 00:01] falls asleep +[1518-10-25 00:54] wakes up +[1518-10-21 23:47] Guard #743 begins shift +[1518-05-21 00:26] falls asleep +[1518-05-11 00:47] wakes up +[1518-05-06 00:23] falls asleep +[1518-11-18 00:47] wakes up +[1518-08-04 00:04] falls asleep +[1518-06-19 00:05] wakes up +[1518-11-05 23:57] Guard #3119 begins shift +[1518-11-11 00:00] Guard #743 begins shift +[1518-09-23 00:56] wakes up +[1518-09-19 00:40] wakes up +[1518-06-16 00:00] Guard #3089 begins shift +[1518-09-15 00:43] wakes up +[1518-03-30 00:54] wakes up +[1518-06-20 00:01] falls asleep +[1518-09-18 00:00] Guard #3119 begins shift +[1518-06-15 00:25] falls asleep +[1518-08-14 00:47] falls asleep +[1518-06-29 00:48] falls asleep +[1518-08-28 00:08] wakes up +[1518-03-17 23:57] Guard #3089 begins shift +[1518-06-06 23:50] Guard #1657 begins shift +[1518-08-13 00:01] Guard #2927 begins shift +[1518-06-09 00:00] Guard #563 begins shift +[1518-08-16 00:49] wakes up +[1518-06-19 00:04] falls asleep +[1518-07-10 00:39] falls asleep +[1518-07-22 23:58] Guard #3023 begins shift +[1518-06-16 23:53] Guard #149 begins shift +[1518-05-25 23:50] Guard #1013 begins shift +[1518-05-12 00:01] Guard #3089 begins shift +[1518-08-01 00:46] wakes up +[1518-06-28 00:46] wakes up +[1518-10-08 00:34] wakes up +[1518-09-16 00:42] wakes up +[1518-09-22 00:04] Guard #1013 begins shift +[1518-09-07 00:45] falls asleep +[1518-05-12 00:49] falls asleep +[1518-09-14 00:29] falls asleep +[1518-03-29 23:54] Guard #3023 begins shift +[1518-05-06 00:03] Guard #3361 begins shift +[1518-09-03 00:30] falls asleep +[1518-07-13 00:51] wakes up +[1518-09-15 00:09] falls asleep +[1518-04-28 00:06] falls asleep +[1518-08-14 00:39] wakes up +[1518-11-04 00:08] falls asleep +[1518-08-19 00:24] wakes up +[1518-11-05 00:57] wakes up +[1518-08-23 00:02] Guard #2719 begins shift +[1518-06-08 00:53] falls asleep +[1518-05-08 00:30] falls asleep +[1518-04-06 00:49] wakes up +[1518-09-15 00:04] Guard #2719 begins shift +[1518-11-08 00:52] wakes up +[1518-05-03 23:57] Guard #2719 begins shift +[1518-08-29 00:26] wakes up +[1518-09-24 00:16] wakes up +[1518-07-21 00:53] wakes up +[1518-10-06 00:52] falls asleep +[1518-07-30 00:31] falls asleep +[1518-07-12 00:50] wakes up +[1518-08-11 00:54] wakes up +[1518-03-22 00:00] Guard #2027 begins shift +[1518-08-22 00:04] falls asleep +[1518-10-08 00:00] Guard #1657 begins shift +[1518-11-06 00:48] falls asleep +[1518-05-31 00:46] wakes up +[1518-10-28 00:40] wakes up +[1518-07-08 00:22] wakes up +[1518-06-05 23:57] Guard #1993 begins shift +[1518-05-03 00:46] wakes up +[1518-07-25 23:56] Guard #149 begins shift +[1518-07-22 00:56] wakes up +[1518-11-06 00:41] wakes up +[1518-06-07 00:50] wakes up +[1518-04-28 00:02] Guard #149 begins shift +[1518-09-27 00:08] falls asleep +[1518-10-05 00:17] falls asleep +[1518-09-23 00:01] Guard #881 begins shift +[1518-05-24 00:59] wakes up +[1518-05-30 00:01] Guard #743 begins shift +[1518-06-18 00:28] wakes up +[1518-06-11 00:08] falls asleep +[1518-08-30 00:25] falls asleep +[1518-04-29 00:08] falls asleep +[1518-05-01 00:50] wakes up +[1518-03-12 00:20] falls asleep +[1518-08-02 00:41] wakes up +[1518-10-14 00:58] wakes up +[1518-10-16 23:53] Guard #2843 begins shift +[1518-11-06 00:58] wakes up +[1518-04-19 00:03] Guard #2719 begins shift +[1518-07-23 23:59] Guard #3083 begins shift +[1518-04-21 00:41] falls asleep +[1518-11-18 00:54] falls asleep +[1518-04-03 00:45] falls asleep +[1518-05-03 00:58] wakes up +[1518-06-27 00:20] wakes up +[1518-08-26 00:17] falls asleep +[1518-05-04 00:44] falls asleep +[1518-05-03 00:16] wakes up +[1518-04-03 00:04] Guard #2843 begins shift +[1518-09-04 00:03] Guard #3023 begins shift +[1518-03-11 00:00] Guard #1163 begins shift +[1518-05-03 00:57] falls asleep +[1518-06-16 00:51] wakes up +[1518-05-04 00:41] wakes up +[1518-09-25 00:00] Guard #1163 begins shift +[1518-04-02 00:56] wakes up +[1518-07-12 00:39] falls asleep +[1518-06-26 00:52] falls asleep +[1518-03-15 00:00] Guard #563 begins shift +[1518-06-07 00:22] falls asleep +[1518-04-19 00:31] falls asleep +[1518-05-11 00:04] Guard #2927 begins shift +[1518-04-03 00:35] wakes up +[1518-09-30 00:01] Guard #1993 begins shift +[1518-11-14 23:57] Guard #2017 begins shift +[1518-05-16 00:41] falls asleep +[1518-09-23 00:51] wakes up +[1518-08-27 00:35] falls asleep +[1518-04-29 00:22] falls asleep +[1518-03-30 00:27] wakes up +[1518-09-07 00:13] wakes up +[1518-11-17 00:00] Guard #1993 begins shift +[1518-11-20 23:46] Guard #3361 begins shift +[1518-03-22 00:25] falls asleep +[1518-05-01 00:38] wakes up +[1518-11-02 23:56] Guard #659 begins shift +[1518-09-22 00:39] falls asleep +[1518-08-13 23:47] Guard #2027 begins shift +[1518-09-30 00:11] wakes up +[1518-06-11 23:58] Guard #2857 begins shift +[1518-08-21 00:53] wakes up +[1518-06-23 00:00] falls asleep +[1518-10-22 00:03] falls asleep +[1518-11-20 00:55] wakes up +[1518-05-17 23:57] Guard #3119 begins shift +[1518-06-14 23:57] Guard #1163 begins shift +[1518-08-19 00:00] Guard #2843 begins shift +[1518-07-11 00:08] falls asleep +[1518-10-01 00:03] Guard #2857 begins shift +[1518-10-23 00:34] wakes up +[1518-04-18 00:13] falls asleep +[1518-05-06 00:39] wakes up +[1518-08-30 00:00] Guard #2843 begins shift +[1518-03-30 00:46] falls asleep +[1518-09-18 00:25] wakes up +[1518-08-09 23:56] Guard #3119 begins shift +[1518-09-15 23:57] Guard #3023 begins shift +[1518-04-19 00:50] wakes up +[1518-08-03 00:22] wakes up +[1518-03-21 00:56] wakes up +[1518-03-24 23:57] Guard #3011 begins shift +[1518-03-22 00:45] wakes up +[1518-04-24 00:58] wakes up +[1518-08-27 00:45] wakes up +[1518-06-22 00:23] falls asleep +[1518-09-16 23:58] Guard #659 begins shift +[1518-03-30 00:01] falls asleep +[1518-04-04 00:46] falls asleep +[1518-10-06 00:54] wakes up +[1518-09-18 00:09] falls asleep +[1518-05-22 00:55] falls asleep +[1518-11-11 00:53] falls asleep +[1518-06-20 00:38] wakes up +[1518-06-14 00:58] wakes up +[1518-08-16 00:04] Guard #149 begins shift +[1518-04-04 00:57] wakes up +[1518-07-26 00:59] wakes up +[1518-09-29 00:03] Guard #563 begins shift +[1518-09-10 00:21] falls asleep +[1518-09-02 23:47] Guard #1993 begins shift +[1518-10-08 00:52] wakes up +[1518-10-18 00:45] falls asleep +[1518-04-22 00:33] wakes up +[1518-08-26 00:47] wakes up +[1518-11-02 00:04] Guard #2857 begins shift +[1518-03-25 00:44] falls asleep +[1518-07-17 00:07] falls asleep +[1518-04-05 00:26] falls asleep +[1518-08-11 00:43] falls asleep +[1518-06-13 23:59] Guard #3023 begins shift +[1518-06-29 00:00] Guard #2017 begins shift +[1518-11-20 00:36] wakes up +[1518-07-13 23:56] Guard #2857 begins shift +[1518-09-07 23:52] Guard #149 begins shift +[1518-04-24 23:58] Guard #3011 begins shift +[1518-03-19 00:47] falls asleep +[1518-07-04 23:56] Guard #653 begins shift +[1518-06-21 00:30] falls asleep +[1518-03-13 00:15] wakes up +[1518-03-13 00:23] falls asleep +[1518-08-10 00:21] falls asleep +[1518-10-01 23:47] Guard #1657 begins shift +[1518-03-26 00:03] Guard #1163 begins shift +[1518-08-18 00:53] falls asleep +[1518-05-02 00:12] falls asleep +[1518-05-26 00:42] falls asleep +[1518-10-31 00:21] wakes up +[1518-05-14 23:59] Guard #1013 begins shift +[1518-05-25 00:48] wakes up +[1518-08-25 00:52] falls asleep +[1518-06-17 00:05] falls asleep +[1518-06-16 00:14] falls asleep +[1518-04-16 00:51] wakes up +[1518-05-18 23:56] Guard #2017 begins shift +[1518-06-22 00:45] wakes up +[1518-05-30 00:59] wakes up +[1518-07-17 00:14] falls asleep +[1518-10-19 00:20] falls asleep +[1518-05-12 23:52] Guard #3361 begins shift +[1518-09-26 00:27] falls asleep +[1518-09-05 00:00] Guard #3023 begins shift +[1518-11-22 23:58] Guard #2719 begins shift +[1518-09-12 00:00] falls asleep +[1518-08-06 00:34] wakes up +[1518-06-20 00:43] falls asleep +[1518-06-08 00:59] wakes up +[1518-08-28 00:03] falls asleep +[1518-09-02 00:08] falls asleep +[1518-08-29 00:56] wakes up +[1518-07-01 00:56] wakes up +[1518-04-13 00:00] Guard #2719 begins shift +[1518-05-29 00:55] wakes up +[1518-04-14 00:54] falls asleep +[1518-04-20 00:26] falls asleep +[1518-06-20 00:50] wakes up +[1518-09-01 00:52] falls asleep +[1518-11-10 00:21] falls asleep +[1518-06-18 00:26] falls asleep +[1518-07-23 00:26] falls asleep +[1518-08-18 00:41] wakes up +[1518-07-29 00:20] wakes up +[1518-03-21 00:31] wakes up +[1518-04-14 00:55] wakes up +[1518-08-01 00:35] falls asleep +[1518-08-13 00:07] falls asleep +[1518-06-04 00:03] falls asleep +[1518-06-01 00:00] Guard #2857 begins shift +[1518-07-20 00:18] falls asleep +[1518-05-09 00:02] Guard #3011 begins shift +[1518-10-27 00:37] falls asleep +[1518-07-30 23:59] Guard #2719 begins shift +[1518-05-13 00:00] falls asleep +[1518-03-24 00:29] wakes up +[1518-10-25 00:49] falls asleep +[1518-03-31 00:36] wakes up +[1518-11-17 00:08] falls asleep +[1518-05-26 00:01] falls asleep +[1518-07-21 23:57] Guard #149 begins shift +[1518-06-18 00:36] falls asleep +[1518-07-09 00:34] falls asleep +[1518-06-03 00:43] falls asleep +[1518-04-15 00:38] falls asleep +[1518-06-24 23:56] Guard #2719 begins shift +[1518-07-25 00:29] falls asleep +[1518-03-21 00:05] falls asleep +[1518-10-20 00:04] Guard #1163 begins shift +[1518-04-27 00:51] wakes up +[1518-07-07 00:02] Guard #2843 begins shift +[1518-07-18 00:58] wakes up +[1518-04-11 00:04] Guard #2719 begins shift +[1518-08-17 00:57] wakes up +[1518-11-11 00:57] wakes up +[1518-06-18 00:48] wakes up +[1518-11-11 00:42] wakes up +[1518-06-21 00:55] falls asleep +[1518-10-12 00:54] wakes up +[1518-08-15 00:47] wakes up +[1518-06-24 00:57] falls asleep +[1518-10-14 00:16] falls asleep +[1518-03-28 00:30] wakes up +[1518-05-26 00:47] wakes up +[1518-06-02 00:04] Guard #743 begins shift +[1518-04-12 00:01] Guard #2927 begins shift +[1518-07-18 00:00] Guard #3083 begins shift +[1518-08-11 00:31] wakes up +[1518-06-27 00:33] falls asleep +[1518-08-10 00:51] wakes up +[1518-04-27 00:26] falls asleep +[1518-07-01 00:37] wakes up +[1518-07-01 00:00] Guard #2017 begins shift +[1518-10-26 00:58] wakes up +[1518-11-17 00:53] wakes up +[1518-06-23 23:56] Guard #3089 begins shift +[1518-07-27 00:38] wakes up +[1518-11-17 00:39] wakes up +[1518-04-14 00:29] wakes up +[1518-05-26 00:53] wakes up +[1518-07-27 00:02] Guard #2857 begins shift +[1518-08-07 00:06] falls asleep +[1518-08-23 00:57] wakes up +[1518-07-22 00:30] falls asleep +[1518-08-01 00:04] Guard #653 begins shift +[1518-04-08 00:33] wakes up +[1518-08-17 00:00] Guard #3023 begins shift +[1518-03-13 00:09] falls asleep +[1518-04-24 00:29] falls asleep +[1518-05-28 00:07] falls asleep +[1518-08-08 00:08] falls asleep +[1518-07-10 00:56] wakes up +[1518-03-12 23:56] Guard #881 begins shift +[1518-03-11 00:09] falls asleep +[1518-09-08 00:04] falls asleep +[1518-08-01 23:59] Guard #3119 begins shift +[1518-06-19 00:08] falls asleep +[1518-05-04 00:51] wakes up +[1518-10-13 00:35] wakes up +[1518-06-11 00:00] Guard #2027 begins shift +[1518-05-01 00:47] falls asleep +[1518-08-15 00:29] falls asleep +[1518-06-28 00:14] falls asleep +[1518-09-26 23:58] Guard #1163 begins shift +[1518-10-10 00:54] wakes up +[1518-08-25 00:53] wakes up +[1518-07-31 00:37] wakes up +[1518-09-18 00:48] falls asleep +[1518-07-09 00:47] wakes up +[1518-11-17 00:23] falls asleep +[1518-08-26 00:03] Guard #2719 begins shift +[1518-06-17 00:40] wakes up +[1518-06-08 00:29] wakes up +[1518-03-24 00:03] Guard #1657 begins shift +[1518-09-26 00:52] wakes up +[1518-08-14 23:59] Guard #2843 begins shift +[1518-08-06 00:01] Guard #149 begins shift +[1518-11-23 00:22] falls asleep +[1518-10-19 00:45] wakes up +[1518-09-27 00:49] wakes up +[1518-06-26 00:20] falls asleep +[1518-09-07 00:57] wakes up +[1518-11-14 00:04] Guard #743 begins shift +[1518-03-16 00:12] wakes up +[1518-09-18 00:54] wakes up +[1518-10-29 23:58] Guard #3119 begins shift +[1518-04-13 23:49] Guard #1013 begins shift +[1518-09-19 00:47] falls asleep +[1518-11-07 23:58] Guard #3119 begins shift +[1518-06-21 00:00] Guard #881 begins shift +[1518-09-01 00:53] wakes up +[1518-03-20 23:50] Guard #881 begins shift +[1518-09-10 00:55] wakes up +[1518-07-29 00:34] falls asleep +[1518-09-05 00:18] falls asleep +[1518-07-03 00:58] wakes up +[1518-04-28 00:52] wakes up +[1518-08-08 00:33] wakes up +[1518-04-22 00:00] falls asleep +[1518-03-19 00:15] wakes up +[1518-08-14 00:52] wakes up +[1518-07-11 00:56] wakes up +[1518-07-14 23:56] Guard #2017 begins shift +[1518-08-04 23:57] Guard #2027 begins shift +[1518-07-03 00:55] falls asleep +[1518-10-30 00:24] falls asleep +[1518-11-07 00:09] falls asleep +[1518-05-12 00:22] falls asleep +[1518-08-17 23:59] Guard #743 begins shift +[1518-08-23 00:50] falls asleep +[1518-10-29 00:04] Guard #1163 begins shift +[1518-07-04 00:54] wakes up +[1518-03-16 00:59] wakes up +[1518-08-25 00:14] falls asleep +[1518-10-30 23:52] Guard #2843 begins shift +[1518-05-17 00:54] wakes up +[1518-06-04 00:38] wakes up +[1518-05-16 00:46] wakes up +[1518-09-08 00:43] wakes up +[1518-09-01 00:21] falls asleep +[1518-06-17 23:59] Guard #1013 begins shift +[1518-09-27 23:59] Guard #3119 begins shift +[1518-05-17 00:03] Guard #1657 begins shift +[1518-04-21 23:46] Guard #2843 begins shift +[1518-09-11 00:35] falls asleep +[1518-10-01 00:31] wakes up +[1518-08-12 00:39] wakes up +[1518-10-04 00:01] Guard #1013 begins shift +[1518-08-02 23:50] Guard #1657 begins shift +[1518-05-04 00:36] falls asleep +[1518-06-05 00:39] falls asleep +[1518-07-04 00:36] wakes up +[1518-05-19 00:53] falls asleep +[1518-10-07 00:59] wakes up +[1518-06-30 00:49] falls asleep +[1518-06-17 00:18] wakes up +[1518-06-25 00:39] wakes up +[1518-09-28 00:31] falls asleep +[1518-08-24 00:24] wakes up +[1518-08-10 00:08] falls asleep +[1518-04-06 00:02] Guard #1163 begins shift +[1518-04-11 00:38] wakes up +[1518-07-02 00:52] wakes up +[1518-07-07 00:57] wakes up +[1518-04-30 00:15] falls asleep +[1518-04-17 00:48] wakes up +[1518-03-16 00:25] falls asleep +[1518-10-06 00:40] wakes up +[1518-10-13 00:00] falls asleep +[1518-05-30 23:56] Guard #2857 begins shift +[1518-06-06 00:54] wakes up +[1518-04-15 00:57] wakes up +[1518-06-21 00:57] wakes up +[1518-10-24 23:51] Guard #149 begins shift +[1518-03-26 00:44] wakes up +[1518-08-31 00:52] wakes up +[1518-03-28 00:51] falls asleep +[1518-10-25 23:47] Guard #3023 begins shift +[1518-07-14 00:52] wakes up +[1518-05-09 00:19] falls asleep +[1518-10-06 00:18] falls asleep +[1518-08-10 00:18] wakes up +[1518-05-19 00:28] wakes up +[1518-08-04 00:36] wakes up +[1518-06-13 00:49] falls asleep +[1518-04-16 00:09] falls asleep +[1518-05-20 00:38] wakes up +[1518-04-24 00:01] Guard #2719 begins shift +[1518-05-10 00:58] wakes up +[1518-11-23 00:41] wakes up +[1518-04-17 00:21] falls asleep +[1518-11-21 00:00] falls asleep +[1518-08-29 00:15] falls asleep +[1518-08-19 23:57] Guard #2843 begins shift +[1518-11-01 00:59] wakes up +[1518-05-03 00:00] Guard #2857 begins shift +[1518-10-02 00:32] wakes up +[1518-08-07 23:57] Guard #3089 begins shift +[1518-10-29 00:51] falls asleep +[1518-03-17 00:08] falls asleep +[1518-03-19 00:32] falls asleep +[1518-07-30 00:41] wakes up +[1518-07-14 00:11] falls asleep +[1518-07-16 00:04] Guard #2927 begins shift +[1518-03-14 00:30] falls asleep +[1518-10-05 00:46] wakes up +[1518-08-06 23:57] Guard #1993 begins shift +[1518-04-23 00:44] falls asleep +[1518-10-18 00:26] wakes up +[1518-04-15 00:52] wakes up +[1518-04-01 00:03] Guard #2719 begins shift +[1518-11-05 00:00] Guard #149 begins shift +[1518-05-07 00:17] falls asleep +[1518-10-10 00:00] Guard #3361 begins shift +[1518-07-28 00:00] Guard #743 begins shift +[1518-03-31 00:34] falls asleep +[1518-05-05 00:11] falls asleep +[1518-07-29 00:16] falls asleep +[1518-08-21 23:50] Guard #2927 begins shift +[1518-03-22 00:49] falls asleep +[1518-06-07 23:56] Guard #1163 begins shift +[1518-10-15 00:00] Guard #2027 begins shift +[1518-08-24 00:34] falls asleep +[1518-07-28 00:41] falls asleep +[1518-11-13 00:49] wakes up +[1518-07-02 00:32] falls asleep +[1518-09-21 00:17] falls asleep +[1518-09-02 00:00] Guard #3011 begins shift +[1518-04-15 00:02] falls asleep +[1518-09-26 00:00] Guard #1657 begins shift +[1518-05-03 00:12] falls asleep +[1518-09-09 00:44] wakes up +[1518-04-04 00:36] wakes up +[1518-05-23 23:59] Guard #3083 begins shift +[1518-04-07 00:58] wakes up +[1518-05-18 00:53] wakes up +[1518-05-15 00:56] wakes up +[1518-08-17 00:25] falls asleep +[1518-05-13 00:39] wakes up +[1518-06-24 00:18] falls asleep +[1518-04-07 00:50] wakes up +[1518-05-17 00:32] wakes up +[1518-06-19 00:32] wakes up +[1518-07-09 00:01] Guard #2719 begins shift +[1518-03-13 00:53] wakes up +[1518-06-02 00:44] wakes up +[1518-10-31 00:01] falls asleep +[1518-10-05 00:00] Guard #1013 begins shift +[1518-06-25 00:36] falls asleep +[1518-05-08 00:37] wakes up +[1518-07-02 00:49] falls asleep +[1518-05-12 00:55] wakes up +[1518-05-21 00:00] Guard #3023 begins shift +[1518-07-04 00:51] falls asleep +[1518-08-25 00:02] Guard #3011 begins shift +[1518-10-29 00:52] wakes up +[1518-04-03 00:50] wakes up +[1518-04-16 00:43] falls asleep +[1518-11-06 00:28] falls asleep +[1518-04-10 00:05] falls asleep +[1518-06-19 00:15] wakes up +[1518-04-14 00:06] wakes up +[1518-06-27 00:34] wakes up +[1518-05-27 00:52] wakes up +[1518-10-05 00:59] wakes up +[1518-09-19 00:58] wakes up +[1518-05-31 00:11] wakes up +[1518-09-14 00:59] wakes up +[1518-10-28 00:35] falls asleep +[1518-08-11 00:04] Guard #1163 begins shift +[1518-08-29 00:04] Guard #881 begins shift +[1518-09-25 00:22] falls asleep +[1518-06-30 00:04] Guard #1657 begins shift +[1518-05-04 00:56] wakes up +[1518-11-07 00:13] wakes up +[1518-06-30 00:19] falls asleep +[1518-08-22 00:09] wakes up +[1518-08-18 00:55] wakes up +[1518-05-28 00:46] wakes up +[1518-09-04 00:10] falls asleep +[1518-08-30 00:43] wakes up +[1518-03-11 00:32] wakes up +[1518-04-27 00:00] Guard #743 begins shift +[1518-10-20 00:26] wakes up +[1518-05-20 00:00] Guard #743 begins shift +[1518-04-03 23:59] Guard #3011 begins shift +[1518-07-29 00:59] wakes up +[1518-07-17 00:10] wakes up +[1518-04-07 00:04] Guard #2843 begins shift +[1518-07-15 00:52] wakes up +[1518-11-22 00:19] falls asleep +[1518-04-23 00:48] wakes up +[1518-07-19 00:52] wakes up +[1518-04-07 23:57] Guard #1163 begins shift +[1518-07-08 00:01] Guard #1993 begins shift +[1518-07-23 00:46] wakes up +[1518-07-21 00:01] Guard #3119 begins shift +[1518-03-16 00:03] Guard #3083 begins shift +[1518-03-28 00:56] wakes up +[1518-09-30 00:09] falls asleep +[1518-09-07 00:02] Guard #2017 begins shift +[1518-07-10 00:01] Guard #1993 begins shift +[1518-10-15 00:53] wakes up +[1518-10-08 00:18] falls asleep +[1518-06-26 00:54] wakes up +[1518-03-12 00:36] falls asleep +[1518-03-16 00:06] falls asleep +[1518-08-06 00:47] wakes up +[1518-10-22 00:29] wakes up +[1518-09-02 00:58] wakes up +[1518-07-18 00:12] falls asleep +[1518-09-19 23:58] Guard #1013 begins shift +[1518-08-31 00:10] falls asleep +[1518-03-24 00:18] falls asleep +[1518-04-18 00:30] wakes up +[1518-11-09 00:30] falls asleep +[1518-05-21 00:38] falls asleep +[1518-10-29 00:23] wakes up +[1518-10-23 00:00] Guard #2027 begins shift +[1518-10-09 00:09] falls asleep +[1518-09-11 00:53] falls asleep +[1518-07-04 00:32] falls asleep +[1518-07-31 00:32] falls asleep +[1518-09-01 00:58] wakes up +[1518-07-24 00:50] wakes up +[1518-07-26 00:49] falls asleep +[1518-11-18 00:15] falls asleep +[1518-04-13 00:31] falls asleep +[1518-09-03 00:22] wakes up +[1518-08-30 23:58] Guard #3361 begins shift +[1518-04-30 00:52] wakes up +[1518-06-15 00:56] falls asleep +[1518-07-02 00:56] falls asleep +[1518-04-19 23:56] Guard #1657 begins shift +[1518-10-09 00:03] Guard #1657 begins shift +[1518-10-07 00:02] Guard #1163 begins shift +[1518-05-24 00:29] falls asleep +[1518-05-23 00:06] falls asleep +[1518-07-10 23:58] Guard #1993 begins shift +[1518-07-03 00:00] Guard #743 begins shift +[1518-06-14 00:54] falls asleep +[1518-09-19 00:39] falls asleep +[1518-07-19 00:01] Guard #2017 begins shift +[1518-11-11 00:18] falls asleep +[1518-04-17 00:02] Guard #1013 begins shift +[1518-05-02 00:56] wakes up +[1518-08-29 00:55] falls asleep +[1518-11-17 00:11] wakes up +[1518-04-02 00:28] falls asleep +[1518-04-28 23:57] Guard #3083 begins shift +[1518-07-28 00:28] wakes up +[1518-09-22 00:47] wakes up +[1518-03-20 00:00] Guard #1657 begins shift +[1518-07-20 00:25] wakes up +[1518-09-06 00:52] wakes up +[1518-10-18 00:38] wakes up +[1518-07-24 00:25] falls asleep +[1518-11-07 00:02] Guard #149 begins shift +[1518-08-15 00:52] falls asleep +[1518-10-20 00:12] falls asleep +[1518-04-09 00:56] wakes up +[1518-09-26 00:18] wakes up +[1518-09-06 00:02] falls asleep +[1518-03-14 00:03] Guard #149 begins shift +[1518-06-06 00:38] falls asleep +[1518-11-13 00:44] falls asleep +[1518-10-23 23:57] Guard #1153 begins shift +[1518-10-28 00:50] falls asleep +[1518-05-14 00:57] wakes up +[1518-09-13 00:36] falls asleep +[1518-09-25 00:42] wakes up +[1518-11-22 00:51] wakes up +[1518-05-09 00:35] wakes up +[1518-10-31 23:59] Guard #2927 begins shift +[1518-11-14 00:26] wakes up +[1518-07-27 00:33] falls asleep +[1518-11-02 00:55] wakes up +[1518-04-08 23:58] Guard #3119 begins shift +[1518-11-16 00:08] falls asleep +[1518-09-30 00:37] falls asleep +[1518-04-10 00:59] wakes up +[1518-10-15 00:10] falls asleep +[1518-08-02 00:58] wakes up +[1518-07-05 00:59] wakes up +[1518-05-05 00:45] falls asleep +[1518-04-06 00:10] falls asleep +[1518-10-18 00:11] falls asleep +[1518-07-12 00:00] Guard #149 begins shift +[1518-06-24 00:40] wakes up +[1518-09-05 00:28] wakes up +[1518-03-18 00:38] wakes up +[1518-10-18 00:36] falls asleep +[1518-11-16 00:19] wakes up +[1518-08-05 00:06] falls asleep +[1518-04-26 00:00] Guard #3083 begins shift +[1518-03-22 00:52] wakes up +[1518-10-21 00:23] falls asleep +[1518-04-02 00:47] falls asleep +[1518-04-20 00:41] wakes up +[1518-11-19 23:57] Guard #1013 begins shift +[1518-09-26 00:58] wakes up +[1518-06-26 00:00] Guard #2927 begins shift +[1518-09-01 00:01] Guard #1657 begins shift +[1518-10-22 00:44] wakes up +[1518-11-20 00:50] falls asleep +[1518-10-25 00:41] wakes up +[1518-11-02 00:12] falls asleep +[1518-06-22 00:28] wakes up +[1518-11-04 00:39] wakes up +[1518-05-27 00:04] Guard #653 begins shift +[1518-07-24 00:46] falls asleep +[1518-11-14 00:08] falls asleep +[1518-03-19 00:40] wakes up +[1518-09-03 00:50] wakes up +[1518-07-16 00:59] wakes up +[1518-11-12 00:45] wakes up +[1518-10-11 00:17] falls asleep +[1518-10-30 00:40] wakes up +[1518-08-03 00:00] falls asleep +[1518-03-18 00:46] wakes up +[1518-08-06 00:44] falls asleep +[1518-10-11 00:50] wakes up +[1518-05-21 00:57] wakes up +[1518-09-01 00:43] wakes up +[1518-09-11 00:00] Guard #3011 begins shift +[1518-09-13 00:55] wakes up +[1518-10-27 00:04] Guard #149 begins shift +[1518-05-02 00:03] Guard #149 begins shift +[1518-09-14 00:00] Guard #3119 begins shift +[1518-07-08 00:14] falls asleep +[1518-06-02 00:28] falls asleep +[1518-03-19 00:57] wakes up +[1518-08-13 00:22] wakes up +[1518-05-01 00:04] Guard #653 begins shift +[1518-06-19 00:23] falls asleep +[1518-11-18 00:02] Guard #3011 begins shift +[1518-11-13 00:17] falls asleep +[1518-07-22 00:50] falls asleep +[1518-04-15 00:55] falls asleep +[1518-07-02 00:58] wakes up +[1518-03-28 00:28] falls asleep +[1518-07-01 00:50] falls asleep +[1518-05-31 00:35] falls asleep +[1518-05-13 00:27] wakes up +[1518-10-17 00:05] falls asleep +[1518-06-15 00:57] wakes up +[1518-11-10 00:45] wakes up +[1518-04-04 00:18] falls asleep +[1518-09-20 23:57] Guard #743 begins shift +[1518-10-29 00:11] falls asleep +[1518-05-01 00:25] falls asleep +[1518-11-22 00:40] wakes up +[1518-11-13 00:02] falls asleep +[1518-09-11 00:50] wakes up +[1518-09-12 23:56] Guard #653 begins shift +[1518-07-11 00:38] wakes up +[1518-03-22 23:59] Guard #659 begins shift +[1518-04-09 00:18] falls asleep +[1518-08-23 23:53] Guard #2927 begins shift +[1518-07-02 00:04] Guard #1993 begins shift +[1518-08-21 00:00] Guard #1993 begins shift +[1518-10-05 00:53] falls asleep +[1518-03-22 00:14] falls asleep +[1518-09-06 00:15] wakes up +[1518-09-24 00:57] falls asleep +[1518-08-14 00:03] falls asleep +[1518-05-25 00:41] falls asleep +[1518-04-23 00:28] wakes up +[1518-04-12 00:45] wakes up +[1518-05-10 00:14] falls asleep +[1518-03-26 23:54] Guard #3023 begins shift +[1518-05-11 00:54] wakes up +[1518-11-05 00:29] falls asleep +[1518-10-03 00:34] wakes up +[1518-04-09 23:50] Guard #653 begins shift +[1518-04-28 00:22] wakes up +[1518-07-07 00:08] falls asleep +[1518-03-28 00:01] Guard #2927 begins shift +[1518-07-05 23:58] Guard #1153 begins shift +[1518-11-23 00:37] falls asleep +[1518-09-05 00:59] wakes up +[1518-04-10 00:56] falls asleep +[1518-11-18 00:44] falls asleep +[1518-10-08 00:39] falls asleep +[1518-09-10 00:02] Guard #2017 begins shift +[1518-03-19 00:02] falls asleep +[1518-04-01 00:07] falls asleep +[1518-10-05 23:57] Guard #3023 begins shift +[1518-11-01 00:46] falls asleep +[1518-07-03 00:34] falls asleep +[1518-10-23 00:18] falls asleep +[1518-07-07 00:46] wakes up +[1518-07-26 00:07] falls asleep +[1518-08-27 00:04] Guard #3011 begins shift +[1518-04-08 00:17] falls asleep +[1518-05-22 00:56] wakes up +[1518-10-22 00:36] falls asleep +[1518-04-14 00:02] falls asleep +[1518-07-25 00:37] wakes up +[1518-08-03 23:50] Guard #2843 begins shift +[1518-03-31 00:56] wakes up +[1518-07-04 00:00] Guard #3023 begins shift +[1518-11-16 00:00] Guard #2027 begins shift +[1518-03-27 00:01] falls asleep +[1518-09-01 00:57] falls asleep +[1518-11-22 00:49] falls asleep +[1518-07-05 00:38] falls asleep +[1518-05-27 00:29] falls asleep +[1518-08-12 00:32] falls asleep +[1518-05-22 00:34] falls asleep +[1518-05-11 00:21] falls asleep +[1518-06-19 23:52] Guard #2927 begins shift +[1518-04-23 00:26] falls asleep +[1518-03-11 23:56] Guard #1993 begins shift +[1518-08-16 00:14] falls asleep +[1518-10-30 00:56] wakes up +[1518-03-18 00:43] falls asleep +[1518-11-03 23:58] Guard #881 begins shift +[1518-03-14 00:39] wakes up +[1518-09-12 00:57] wakes up +[1518-11-17 00:47] falls asleep +[1518-04-16 00:38] wakes up +[1518-09-23 00:54] falls asleep +[1518-08-20 00:39] wakes up +[1518-06-08 00:25] falls asleep +[1518-03-20 00:10] falls asleep +[1518-07-01 00:21] falls asleep +[1518-03-24 00:44] wakes up +[1518-07-17 00:59] wakes up +[1518-06-23 00:38] wakes up +[1518-04-02 00:02] Guard #2857 begins shift +[1518-07-15 00:51] falls asleep +[1518-09-11 23:52] Guard #1163 begins shift +[1518-04-26 00:40] falls asleep +[1518-03-29 00:20] falls asleep +[1518-07-30 00:00] Guard #3361 begins shift +[1518-06-05 00:49] wakes up +[1518-10-26 00:00] falls asleep +[1518-07-03 00:51] wakes up +[1518-10-12 00:46] falls asleep +[1518-10-21 00:57] wakes up +[1518-07-25 00:02] falls asleep +[1518-04-15 23:56] Guard #3119 begins shift +[1518-10-17 00:19] wakes up +[1518-06-05 00:45] falls asleep +[1518-07-28 00:17] falls asleep +[1518-06-22 00:43] falls asleep +[1518-07-25 00:24] wakes up +[1518-09-20 00:40] falls asleep +[1518-07-17 00:00] Guard #743 begins shift +[1518-03-16 23:59] Guard #2017 begins shift +[1518-09-05 00:36] falls asleep +[1518-08-11 00:14] falls asleep +[1518-04-12 00:48] falls asleep +[1518-05-20 00:23] falls asleep +[1518-04-11 00:33] falls asleep +[1518-09-08 23:58] Guard #1163 begins shift +[1518-09-09 00:09] falls asleep +[1518-04-02 00:40] wakes up +[1518-06-11 00:54] wakes up +[1518-09-05 23:50] Guard #2017 begins shift +[1518-11-22 00:04] falls asleep +[1518-04-29 00:19] wakes up +[1518-05-19 00:57] wakes up +[1518-05-26 00:34] wakes up +[1518-05-17 00:10] falls asleep +[1518-04-01 00:54] wakes up +[1518-04-18 00:00] Guard #3083 begins shift +[1518-04-25 00:59] wakes up +[1518-06-22 00:02] Guard #2027 begins shift +[1518-08-20 00:34] falls asleep +[1518-05-25 00:00] Guard #3023 begins shift +[1518-07-20 00:03] Guard #3011 begins shift +[1518-03-27 00:59] wakes up +[1518-06-05 00:42] wakes up +[1518-08-19 00:19] falls asleep +[1518-11-23 00:32] wakes up +[1518-04-12 00:26] falls asleep +[1518-10-10 00:39] falls asleep +[1518-11-15 00:51] wakes up +[1518-09-27 00:38] wakes up +[1518-10-12 23:53] Guard #653 begins shift +[1518-05-03 00:25] falls asleep +[1518-10-09 00:49] wakes up +[1518-11-08 00:30] falls asleep +[1518-05-26 00:50] falls asleep +[1518-11-13 00:41] wakes up +[1518-09-30 00:41] wakes up +[1518-04-14 00:22] falls asleep +[1518-05-04 00:54] falls asleep +[1518-05-05 00:03] Guard #2027 begins shift +[1518-04-05 00:44] wakes up +[1518-07-24 00:42] wakes up +[1518-06-07 00:08] wakes up +[1518-10-02 00:00] falls asleep +[1518-06-12 00:16] falls asleep +[1518-04-10 00:34] wakes up +[1518-07-13 00:02] Guard #2719 begins shift +[1518-04-21 00:03] Guard #881 begins shift +[1518-10-11 00:04] Guard #2927 begins shift +[1518-06-02 23:56] Guard #3011 begins shift +[1518-03-12 00:38] wakes up +[1518-06-26 23:48] Guard #3023 begins shift +[1518-05-16 00:07] falls asleep +[1518-04-28 00:48] falls asleep +[1518-05-22 00:02] Guard #881 begins shift +[1518-03-18 23:48] Guard #3089 begins shift +[1518-08-08 00:57] wakes up +[1518-09-21 00:21] wakes up +[1518-04-29 23:58] Guard #2843 begins shift +[1518-03-17 00:52] wakes up +[1518-06-10 00:00] Guard #563 begins shift +[1518-09-28 00:57] wakes up +[1518-05-16 00:22] wakes up +[1518-04-03 00:13] falls asleep +[1518-10-04 00:44] wakes up +[1518-06-27 00:01] falls asleep +[1518-06-26 00:49] wakes up +[1518-05-29 00:28] falls asleep +[1518-06-29 00:56] wakes up +[1518-11-20 00:21] falls asleep +[1518-10-03 00:07] falls asleep +[1518-05-16 00:00] Guard #1993 begins shift +[1518-09-06 00:34] falls asleep +[1518-05-17 00:38] falls asleep +[1518-07-28 23:56] Guard #2857 begins shift +[1518-06-13 00:54] wakes up +[1518-06-01 00:30] falls asleep +[1518-11-09 00:57] wakes up +[1518-11-22 00:06] wakes up +[1518-10-04 00:09] falls asleep +[1518-10-19 00:00] Guard #3023 begins shift +[1518-11-09 23:58] Guard #881 begins shift +[1518-10-28 00:02] Guard #2719 begins shift +[1518-04-13 00:45] wakes up +[1518-05-15 00:35] falls asleep +[1518-10-12 00:00] Guard #3119 begins shift +[1518-04-07 00:46] falls asleep +[1518-03-29 00:03] Guard #2027 begins shift +[1518-03-24 00:43] falls asleep +[1518-04-26 00:49] wakes up +[1518-09-26 00:15] falls asleep +[1518-08-24 00:40] wakes up +[1518-04-14 23:54] Guard #2857 begins shift +[1518-03-20 00:32] wakes up +[1518-10-13 00:50] falls asleep +[1518-11-12 23:48] Guard #3119 begins shift +[1518-07-07 00:56] falls asleep +[1518-10-21 00:03] Guard #3023 begins shift +[1518-08-15 00:53] wakes up +[1518-05-07 00:55] wakes up +[1518-08-08 00:53] falls asleep +[1518-08-02 00:49] falls asleep +[1518-11-18 00:56] wakes up +[1518-10-30 00:50] falls asleep +[1518-11-18 00:41] wakes up +[1518-05-30 00:16] falls asleep +[1518-06-28 00:00] Guard #3011 begins shift +[1518-09-23 00:17] falls asleep +[1518-10-26 00:54] falls asleep +[1518-10-08 00:31] falls asleep +[1518-06-04 23:59] Guard #149 begins shift +[1518-09-07 00:08] falls asleep +[1518-06-03 23:52] Guard #1993 begins shift +[1518-07-21 00:14] falls asleep +[1518-06-13 00:00] Guard #2927 begins shift +[1518-07-24 23:48] Guard #149 begins shift +[1518-10-08 00:25] wakes up +[1518-10-03 00:03] Guard #743 begins shift +[1518-05-09 23:57] Guard #2027 begins shift +[1518-06-21 00:49] wakes up +[1518-07-13 00:34] falls asleep +[1518-03-26 00:13] falls asleep +[1518-05-12 00:28] wakes up +[1518-09-27 00:42] falls asleep +[1518-05-29 00:04] Guard #2719 begins shift +[1518-05-13 23:56] Guard #3011 begins shift +[1518-10-28 00:56] wakes up +[1518-07-02 00:37] wakes up +[1518-06-17 00:32] falls asleep +[1518-05-13 00:36] falls asleep +[1518-04-25 00:46] falls asleep +[1518-06-07 00:01] falls asleep +[1518-10-13 00:59] wakes up +[1518-11-09 00:02] Guard #3011 begins shift +[1518-09-26 00:57] falls asleep +[1518-09-11 00:54] wakes up +[1518-05-14 00:29] falls asleep +[1518-08-02 00:29] falls asleep +[1518-08-24 00:00] falls asleep +[1518-11-13 00:13] wakes up +[1518-05-05 00:56] wakes up +[1518-06-22 23:54] Guard #2843 begins shift +[1518-08-07 00:48] wakes up +[1518-11-19 00:00] Guard #659 begins shift +[1518-07-22 00:34] wakes up +[1518-03-29 00:54] wakes up +[1518-10-07 00:30] falls asleep +[1518-11-21 23:51] Guard #1013 begins shift +[1518-10-18 00:03] Guard #2027 begins shift +[1518-03-25 00:56] wakes up +[1518-07-16 00:38] falls asleep +[1518-06-12 00:59] wakes up +[1518-10-14 00:00] Guard #2027 begins shift +[1518-05-11 00:52] falls asleep +[1518-06-15 00:49] wakes up \ No newline at end of file diff --git a/2018/4thDay/challenge1/main.cpp b/2018/4thDay/challenge1/main.cpp new file mode 100644 index 0000000..08e37b4 --- /dev/null +++ b/2018/4thDay/challenge1/main.cpp @@ -0,0 +1,180 @@ +#include +#include +#include +#include +#include +#include +#include + +enum class State {begin, sleep, awaken}; +struct Action +{ + State state; + int64_t guard_id; +}; + +struct Event +{ + int64_t month, day, hour, minute; + Action action; +}; + + +std::istream &operator>>(std::istream &is, Action &action) +{ + std::string element; + is >> element; + if(element=="Guard") + { + action.state=State::begin; + char c; + is >> c >> action.guard_id; + } + else if(element=="falls") + { + action.state=State::sleep; + } + else if(element=="wakes") + { + action.state=State::awaken; + } + else + { + throw std::runtime_error("Invalid input"); + } + std::getline(is,element); + return is; +} + +std::istream &operator>>(std::istream &is, Event &event) +{ + char c; + int64_t year; + is >> c; + if(is.good()) + { + is >> year >> c >> event.month >> c >> event.day + >> event.hour >> c >> event.minute >> c + >> event.action; + + if(event.hour==23) + { + event.minute=0; + } + } + return is; +} + + + +std::ostream &operator<<(std::ostream &os, const Action &action) +{ + switch(action.state) + { + case State::begin: + os << "Guard #" << action.guard_id << " begins shift"; + break; + case State::sleep: + os << "falls asleep"; + break; + case State::awaken: + os << "wakes up"; + break; + default: + os << "What?"; + break; + } + return os; +} + +std::ostream &operator<<(std::ostream &os, const Event &event) +{ + os << "[1518-" + << std::setw(2) << std::setfill('0') << event.month << "-" + << std::setw(2) << std::setfill('0') << event.day << " " + << std::setw(2) << std::setfill('0') << event.hour << ":" + << std::setw(2) << std::setfill('0') << event.minute << "] " + << event.action; + return os; +} + +std::pair max_incident(const std::vector> &incidents) +{ + std::vector sleep_incidents(60,0); + for(auto ×: incidents) + { + for(size_t time=times.first; time events(std::istream_iterator(infile), {}); + + std::map>> guards; + + int64_t guard_id; + int64_t start(-1); + for(auto &event: events) + { + switch(event.action.state) + { + case State::begin: + guard_id=event.action.guard_id; + break; + case State::sleep: + start=event.minute; + break; + case State::awaken: + guards[guard_id].emplace_back(start,event.minute); + break; + } + } + + int64_t max_time_guard, max_time(0); + for(auto &guard: guards) + { + int64_t total_time(0); + for(auto &time: guard.second) + { + total_time+=time.second-time.first; + } + if(total_time>max_time) + { + max_time_guard=guard.first; + max_time=total_time; + } + } + + auto [max_incidents,max_minute]=max_incident(guards[max_time_guard]); + std::cout << "Part 1: " << (max_minute*max_time_guard) << "\n"; + + std::vector num_incidents(guards.size()); + int64_t max_guard_incidents(0), max_guard_minute(0), max_guard_id(-1); + for(auto &guard: guards) + { + auto [incidents,minute]=max_incident(guard.second); + if(incidents>max_guard_incidents) + { + max_guard_incidents=incidents; + max_guard_minute=minute; + max_guard_id=guard.first; + } + } + std::cout << "Part 2: " << (max_guard_id * max_guard_minute) << "\n"; +} \ No newline at end of file diff --git a/2018/4thDay/challenge2/challenge.txt b/2018/4thDay/challenge2/challenge.txt new file mode 100644 index 0000000..4f67796 --- /dev/null +++ b/2018/4thDay/challenge2/challenge.txt @@ -0,0 +1,7 @@ +--- Part Two --- +Strategy 2: Of all guards, which guard is most frequently asleep on the same minute? + +In the example above, Guard #99 spent minute 45 asleep more than any other guard or minute - three times in total. (In all other cases, any guard spent any minute asleep at most twice.) + +What is the ID of the guard you chose multiplied by the minute you chose? (In the above example, the answer would be 99 * 45 = 4455.) + diff --git a/2018/4thDay/challenge2/index.js b/2018/4thDay/challenge2/index.js new file mode 100644 index 0000000..3909930 --- /dev/null +++ b/2018/4thDay/challenge2/index.js @@ -0,0 +1,68 @@ +class Guard { + constructor (id) { + this.id = id; + this.minutesAsleep = Array.from({ length: 60 }).map(() => 0); + this.fellAsleepAt = null; + } + + sleep (fellAsleepAt) { + this.fellAsleepAt = fellAsleepAt; + } + + awake (awokeAt) { + for (let i = this.fellAsleepAt; i < awokeAt; i++) { + this.minutesAsleep[i] += 1; + } + } + + get sleepiestMinute () { + return this.minutesAsleep + .map((value, index) => ({ index, value })) + .sort((a, b) => b.value - a.value)[0].index; + } + } + +const sleep = (input) => { + const guards = {}; + const schedule = input + .split('\n') + .map((x) => x.trim()) + .sort() + .map((x) => { + const parts = x.match(/\[(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2})\] (.*)/); + + return { + minute: +parts[5], + message: parts[6], + }; + }); + + let currentGuard = null; + + for (let i = 0; i < schedule.length; i++) { + const { message, minute } = schedule[i]; + + if (/Guard/.test(message)) { + const parts = message.match(/Guard #(\d+) begins shift/); + const guardId = +parts[1]; + const guard = guards[guardId] ? guards[guardId] : new Guard(guardId); + + currentGuard = guards[guardId] = guard; + } else if (message === 'falls asleep') { + currentGuard.sleep(minute); + } else if (message === 'wakes up') { + currentGuard.awake(minute); + } + } + + const sleepiestGuard = Object + .keys(guards) + .map((guardId) => guards[guardId]) + .sort((a, b) => b.minutesAsleep[b.sleepiestMinute] - + a.minutesAsleep[a.sleepiestMinute])[0]; + + return sleepiestGuard.id * sleepiestGuard.sleepiestMinute; +}; + +const fs = require('fs'); +console.log(sleep(fs.readFileSync("input.txt").toString())); diff --git a/2018/4thDay/challenge2/input.txt b/2018/4thDay/challenge2/input.txt new file mode 100644 index 0000000..6a4973b --- /dev/null +++ b/2018/4thDay/challenge2/input.txt @@ -0,0 +1,1000 @@ +[1518-09-24 00:59] wakes up +[1518-05-22 00:47] wakes up +[1518-05-08 00:02] Guard #2719 begins shift +[1518-11-12 00:00] Guard #3011 begins shift +[1518-04-12 00:57] wakes up +[1518-05-21 00:32] wakes up +[1518-11-12 00:30] falls asleep +[1518-08-23 00:39] wakes up +[1518-10-18 00:48] wakes up +[1518-09-16 00:28] falls asleep +[1518-04-07 00:54] falls asleep +[1518-10-26 00:38] wakes up +[1518-03-18 00:12] falls asleep +[1518-05-23 00:01] Guard #2027 begins shift +[1518-05-31 00:09] falls asleep +[1518-05-19 00:09] falls asleep +[1518-05-28 00:02] Guard #2719 begins shift +[1518-09-24 00:04] falls asleep +[1518-03-31 00:42] falls asleep +[1518-09-04 00:52] wakes up +[1518-08-27 23:48] Guard #1657 begins shift +[1518-08-18 00:22] falls asleep +[1518-07-28 00:45] wakes up +[1518-11-15 00:31] falls asleep +[1518-09-20 00:46] wakes up +[1518-07-11 00:54] falls asleep +[1518-09-19 00:00] Guard #2027 begins shift +[1518-06-01 00:58] wakes up +[1518-06-03 00:56] wakes up +[1518-05-18 00:52] falls asleep +[1518-10-25 00:05] falls asleep +[1518-04-15 00:33] wakes up +[1518-08-11 23:59] Guard #3023 begins shift +[1518-08-06 00:18] falls asleep +[1518-08-23 00:34] falls asleep +[1518-08-05 00:22] wakes up +[1518-04-22 23:58] Guard #1657 begins shift +[1518-06-30 00:54] wakes up +[1518-11-21 00:14] wakes up +[1518-06-18 23:54] Guard #3361 begins shift +[1518-10-27 00:51] wakes up +[1518-10-01 00:26] falls asleep +[1518-06-30 00:38] wakes up +[1518-05-05 00:33] wakes up +[1518-03-12 00:24] wakes up +[1518-07-26 00:33] wakes up +[1518-03-22 00:16] wakes up +[1518-04-21 00:58] wakes up +[1518-08-08 23:58] Guard #563 begins shift +[1518-05-23 00:25] wakes up +[1518-08-25 00:44] wakes up +[1518-04-29 00:57] wakes up +[1518-09-23 23:53] Guard #2027 begins shift +[1518-03-31 00:00] Guard #743 begins shift +[1518-04-05 00:02] Guard #3011 begins shift +[1518-10-16 00:00] Guard #659 begins shift +[1518-06-24 00:58] wakes up +[1518-05-06 23:59] Guard #2719 begins shift +[1518-03-21 00:55] falls asleep +[1518-08-21 00:29] falls asleep +[1518-07-19 00:14] falls asleep +[1518-09-03 00:01] falls asleep +[1518-10-25 00:54] wakes up +[1518-10-21 23:47] Guard #743 begins shift +[1518-05-21 00:26] falls asleep +[1518-05-11 00:47] wakes up +[1518-05-06 00:23] falls asleep +[1518-11-18 00:47] wakes up +[1518-08-04 00:04] falls asleep +[1518-06-19 00:05] wakes up +[1518-11-05 23:57] Guard #3119 begins shift +[1518-11-11 00:00] Guard #743 begins shift +[1518-09-23 00:56] wakes up +[1518-09-19 00:40] wakes up +[1518-06-16 00:00] Guard #3089 begins shift +[1518-09-15 00:43] wakes up +[1518-03-30 00:54] wakes up +[1518-06-20 00:01] falls asleep +[1518-09-18 00:00] Guard #3119 begins shift +[1518-06-15 00:25] falls asleep +[1518-08-14 00:47] falls asleep +[1518-06-29 00:48] falls asleep +[1518-08-28 00:08] wakes up +[1518-03-17 23:57] Guard #3089 begins shift +[1518-06-06 23:50] Guard #1657 begins shift +[1518-08-13 00:01] Guard #2927 begins shift +[1518-06-09 00:00] Guard #563 begins shift +[1518-08-16 00:49] wakes up +[1518-06-19 00:04] falls asleep +[1518-07-10 00:39] falls asleep +[1518-07-22 23:58] Guard #3023 begins shift +[1518-06-16 23:53] Guard #149 begins shift +[1518-05-25 23:50] Guard #1013 begins shift +[1518-05-12 00:01] Guard #3089 begins shift +[1518-08-01 00:46] wakes up +[1518-06-28 00:46] wakes up +[1518-10-08 00:34] wakes up +[1518-09-16 00:42] wakes up +[1518-09-22 00:04] Guard #1013 begins shift +[1518-09-07 00:45] falls asleep +[1518-05-12 00:49] falls asleep +[1518-09-14 00:29] falls asleep +[1518-03-29 23:54] Guard #3023 begins shift +[1518-05-06 00:03] Guard #3361 begins shift +[1518-09-03 00:30] falls asleep +[1518-07-13 00:51] wakes up +[1518-09-15 00:09] falls asleep +[1518-04-28 00:06] falls asleep +[1518-08-14 00:39] wakes up +[1518-11-04 00:08] falls asleep +[1518-08-19 00:24] wakes up +[1518-11-05 00:57] wakes up +[1518-08-23 00:02] Guard #2719 begins shift +[1518-06-08 00:53] falls asleep +[1518-05-08 00:30] falls asleep +[1518-04-06 00:49] wakes up +[1518-09-15 00:04] Guard #2719 begins shift +[1518-11-08 00:52] wakes up +[1518-05-03 23:57] Guard #2719 begins shift +[1518-08-29 00:26] wakes up +[1518-09-24 00:16] wakes up +[1518-07-21 00:53] wakes up +[1518-10-06 00:52] falls asleep +[1518-07-30 00:31] falls asleep +[1518-07-12 00:50] wakes up +[1518-08-11 00:54] wakes up +[1518-03-22 00:00] Guard #2027 begins shift +[1518-08-22 00:04] falls asleep +[1518-10-08 00:00] Guard #1657 begins shift +[1518-11-06 00:48] falls asleep +[1518-05-31 00:46] wakes up +[1518-10-28 00:40] wakes up +[1518-07-08 00:22] wakes up +[1518-06-05 23:57] Guard #1993 begins shift +[1518-05-03 00:46] wakes up +[1518-07-25 23:56] Guard #149 begins shift +[1518-07-22 00:56] wakes up +[1518-11-06 00:41] wakes up +[1518-06-07 00:50] wakes up +[1518-04-28 00:02] Guard #149 begins shift +[1518-09-27 00:08] falls asleep +[1518-10-05 00:17] falls asleep +[1518-09-23 00:01] Guard #881 begins shift +[1518-05-24 00:59] wakes up +[1518-05-30 00:01] Guard #743 begins shift +[1518-06-18 00:28] wakes up +[1518-06-11 00:08] falls asleep +[1518-08-30 00:25] falls asleep +[1518-04-29 00:08] falls asleep +[1518-05-01 00:50] wakes up +[1518-03-12 00:20] falls asleep +[1518-08-02 00:41] wakes up +[1518-10-14 00:58] wakes up +[1518-10-16 23:53] Guard #2843 begins shift +[1518-11-06 00:58] wakes up +[1518-04-19 00:03] Guard #2719 begins shift +[1518-07-23 23:59] Guard #3083 begins shift +[1518-04-21 00:41] falls asleep +[1518-11-18 00:54] falls asleep +[1518-04-03 00:45] falls asleep +[1518-05-03 00:58] wakes up +[1518-06-27 00:20] wakes up +[1518-08-26 00:17] falls asleep +[1518-05-04 00:44] falls asleep +[1518-05-03 00:16] wakes up +[1518-04-03 00:04] Guard #2843 begins shift +[1518-09-04 00:03] Guard #3023 begins shift +[1518-03-11 00:00] Guard #1163 begins shift +[1518-05-03 00:57] falls asleep +[1518-06-16 00:51] wakes up +[1518-05-04 00:41] wakes up +[1518-09-25 00:00] Guard #1163 begins shift +[1518-04-02 00:56] wakes up +[1518-07-12 00:39] falls asleep +[1518-06-26 00:52] falls asleep +[1518-03-15 00:00] Guard #563 begins shift +[1518-06-07 00:22] falls asleep +[1518-04-19 00:31] falls asleep +[1518-05-11 00:04] Guard #2927 begins shift +[1518-04-03 00:35] wakes up +[1518-09-30 00:01] Guard #1993 begins shift +[1518-11-14 23:57] Guard #2017 begins shift +[1518-05-16 00:41] falls asleep +[1518-09-23 00:51] wakes up +[1518-08-27 00:35] falls asleep +[1518-04-29 00:22] falls asleep +[1518-03-30 00:27] wakes up +[1518-09-07 00:13] wakes up +[1518-11-17 00:00] Guard #1993 begins shift +[1518-11-20 23:46] Guard #3361 begins shift +[1518-03-22 00:25] falls asleep +[1518-05-01 00:38] wakes up +[1518-11-02 23:56] Guard #659 begins shift +[1518-09-22 00:39] falls asleep +[1518-08-13 23:47] Guard #2027 begins shift +[1518-09-30 00:11] wakes up +[1518-06-11 23:58] Guard #2857 begins shift +[1518-08-21 00:53] wakes up +[1518-06-23 00:00] falls asleep +[1518-10-22 00:03] falls asleep +[1518-11-20 00:55] wakes up +[1518-05-17 23:57] Guard #3119 begins shift +[1518-06-14 23:57] Guard #1163 begins shift +[1518-08-19 00:00] Guard #2843 begins shift +[1518-07-11 00:08] falls asleep +[1518-10-01 00:03] Guard #2857 begins shift +[1518-10-23 00:34] wakes up +[1518-04-18 00:13] falls asleep +[1518-05-06 00:39] wakes up +[1518-08-30 00:00] Guard #2843 begins shift +[1518-03-30 00:46] falls asleep +[1518-09-18 00:25] wakes up +[1518-08-09 23:56] Guard #3119 begins shift +[1518-09-15 23:57] Guard #3023 begins shift +[1518-04-19 00:50] wakes up +[1518-08-03 00:22] wakes up +[1518-03-21 00:56] wakes up +[1518-03-24 23:57] Guard #3011 begins shift +[1518-03-22 00:45] wakes up +[1518-04-24 00:58] wakes up +[1518-08-27 00:45] wakes up +[1518-06-22 00:23] falls asleep +[1518-09-16 23:58] Guard #659 begins shift +[1518-03-30 00:01] falls asleep +[1518-04-04 00:46] falls asleep +[1518-10-06 00:54] wakes up +[1518-09-18 00:09] falls asleep +[1518-05-22 00:55] falls asleep +[1518-11-11 00:53] falls asleep +[1518-06-20 00:38] wakes up +[1518-06-14 00:58] wakes up +[1518-08-16 00:04] Guard #149 begins shift +[1518-04-04 00:57] wakes up +[1518-07-26 00:59] wakes up +[1518-09-29 00:03] Guard #563 begins shift +[1518-09-10 00:21] falls asleep +[1518-09-02 23:47] Guard #1993 begins shift +[1518-10-08 00:52] wakes up +[1518-10-18 00:45] falls asleep +[1518-04-22 00:33] wakes up +[1518-08-26 00:47] wakes up +[1518-11-02 00:04] Guard #2857 begins shift +[1518-03-25 00:44] falls asleep +[1518-07-17 00:07] falls asleep +[1518-04-05 00:26] falls asleep +[1518-08-11 00:43] falls asleep +[1518-06-13 23:59] Guard #3023 begins shift +[1518-06-29 00:00] Guard #2017 begins shift +[1518-11-20 00:36] wakes up +[1518-07-13 23:56] Guard #2857 begins shift +[1518-09-07 23:52] Guard #149 begins shift +[1518-04-24 23:58] Guard #3011 begins shift +[1518-03-19 00:47] falls asleep +[1518-07-04 23:56] Guard #653 begins shift +[1518-06-21 00:30] falls asleep +[1518-03-13 00:15] wakes up +[1518-03-13 00:23] falls asleep +[1518-08-10 00:21] falls asleep +[1518-10-01 23:47] Guard #1657 begins shift +[1518-03-26 00:03] Guard #1163 begins shift +[1518-08-18 00:53] falls asleep +[1518-05-02 00:12] falls asleep +[1518-05-26 00:42] falls asleep +[1518-10-31 00:21] wakes up +[1518-05-14 23:59] Guard #1013 begins shift +[1518-05-25 00:48] wakes up +[1518-08-25 00:52] falls asleep +[1518-06-17 00:05] falls asleep +[1518-06-16 00:14] falls asleep +[1518-04-16 00:51] wakes up +[1518-05-18 23:56] Guard #2017 begins shift +[1518-06-22 00:45] wakes up +[1518-05-30 00:59] wakes up +[1518-07-17 00:14] falls asleep +[1518-10-19 00:20] falls asleep +[1518-05-12 23:52] Guard #3361 begins shift +[1518-09-26 00:27] falls asleep +[1518-09-05 00:00] Guard #3023 begins shift +[1518-11-22 23:58] Guard #2719 begins shift +[1518-09-12 00:00] falls asleep +[1518-08-06 00:34] wakes up +[1518-06-20 00:43] falls asleep +[1518-06-08 00:59] wakes up +[1518-08-28 00:03] falls asleep +[1518-09-02 00:08] falls asleep +[1518-08-29 00:56] wakes up +[1518-07-01 00:56] wakes up +[1518-04-13 00:00] Guard #2719 begins shift +[1518-05-29 00:55] wakes up +[1518-04-14 00:54] falls asleep +[1518-04-20 00:26] falls asleep +[1518-06-20 00:50] wakes up +[1518-09-01 00:52] falls asleep +[1518-11-10 00:21] falls asleep +[1518-06-18 00:26] falls asleep +[1518-07-23 00:26] falls asleep +[1518-08-18 00:41] wakes up +[1518-07-29 00:20] wakes up +[1518-03-21 00:31] wakes up +[1518-04-14 00:55] wakes up +[1518-08-01 00:35] falls asleep +[1518-08-13 00:07] falls asleep +[1518-06-04 00:03] falls asleep +[1518-06-01 00:00] Guard #2857 begins shift +[1518-07-20 00:18] falls asleep +[1518-05-09 00:02] Guard #3011 begins shift +[1518-10-27 00:37] falls asleep +[1518-07-30 23:59] Guard #2719 begins shift +[1518-05-13 00:00] falls asleep +[1518-03-24 00:29] wakes up +[1518-10-25 00:49] falls asleep +[1518-03-31 00:36] wakes up +[1518-11-17 00:08] falls asleep +[1518-05-26 00:01] falls asleep +[1518-07-21 23:57] Guard #149 begins shift +[1518-06-18 00:36] falls asleep +[1518-07-09 00:34] falls asleep +[1518-06-03 00:43] falls asleep +[1518-04-15 00:38] falls asleep +[1518-06-24 23:56] Guard #2719 begins shift +[1518-07-25 00:29] falls asleep +[1518-03-21 00:05] falls asleep +[1518-10-20 00:04] Guard #1163 begins shift +[1518-04-27 00:51] wakes up +[1518-07-07 00:02] Guard #2843 begins shift +[1518-07-18 00:58] wakes up +[1518-04-11 00:04] Guard #2719 begins shift +[1518-08-17 00:57] wakes up +[1518-11-11 00:57] wakes up +[1518-06-18 00:48] wakes up +[1518-11-11 00:42] wakes up +[1518-06-21 00:55] falls asleep +[1518-10-12 00:54] wakes up +[1518-08-15 00:47] wakes up +[1518-06-24 00:57] falls asleep +[1518-10-14 00:16] falls asleep +[1518-03-28 00:30] wakes up +[1518-05-26 00:47] wakes up +[1518-06-02 00:04] Guard #743 begins shift +[1518-04-12 00:01] Guard #2927 begins shift +[1518-07-18 00:00] Guard #3083 begins shift +[1518-08-11 00:31] wakes up +[1518-06-27 00:33] falls asleep +[1518-08-10 00:51] wakes up +[1518-04-27 00:26] falls asleep +[1518-07-01 00:37] wakes up +[1518-07-01 00:00] Guard #2017 begins shift +[1518-10-26 00:58] wakes up +[1518-11-17 00:53] wakes up +[1518-06-23 23:56] Guard #3089 begins shift +[1518-07-27 00:38] wakes up +[1518-11-17 00:39] wakes up +[1518-04-14 00:29] wakes up +[1518-05-26 00:53] wakes up +[1518-07-27 00:02] Guard #2857 begins shift +[1518-08-07 00:06] falls asleep +[1518-08-23 00:57] wakes up +[1518-07-22 00:30] falls asleep +[1518-08-01 00:04] Guard #653 begins shift +[1518-04-08 00:33] wakes up +[1518-08-17 00:00] Guard #3023 begins shift +[1518-03-13 00:09] falls asleep +[1518-04-24 00:29] falls asleep +[1518-05-28 00:07] falls asleep +[1518-08-08 00:08] falls asleep +[1518-07-10 00:56] wakes up +[1518-03-12 23:56] Guard #881 begins shift +[1518-03-11 00:09] falls asleep +[1518-09-08 00:04] falls asleep +[1518-08-01 23:59] Guard #3119 begins shift +[1518-06-19 00:08] falls asleep +[1518-05-04 00:51] wakes up +[1518-10-13 00:35] wakes up +[1518-06-11 00:00] Guard #2027 begins shift +[1518-05-01 00:47] falls asleep +[1518-08-15 00:29] falls asleep +[1518-06-28 00:14] falls asleep +[1518-09-26 23:58] Guard #1163 begins shift +[1518-10-10 00:54] wakes up +[1518-08-25 00:53] wakes up +[1518-07-31 00:37] wakes up +[1518-09-18 00:48] falls asleep +[1518-07-09 00:47] wakes up +[1518-11-17 00:23] falls asleep +[1518-08-26 00:03] Guard #2719 begins shift +[1518-06-17 00:40] wakes up +[1518-06-08 00:29] wakes up +[1518-03-24 00:03] Guard #1657 begins shift +[1518-09-26 00:52] wakes up +[1518-08-14 23:59] Guard #2843 begins shift +[1518-08-06 00:01] Guard #149 begins shift +[1518-11-23 00:22] falls asleep +[1518-10-19 00:45] wakes up +[1518-09-27 00:49] wakes up +[1518-06-26 00:20] falls asleep +[1518-09-07 00:57] wakes up +[1518-11-14 00:04] Guard #743 begins shift +[1518-03-16 00:12] wakes up +[1518-09-18 00:54] wakes up +[1518-10-29 23:58] Guard #3119 begins shift +[1518-04-13 23:49] Guard #1013 begins shift +[1518-09-19 00:47] falls asleep +[1518-11-07 23:58] Guard #3119 begins shift +[1518-06-21 00:00] Guard #881 begins shift +[1518-09-01 00:53] wakes up +[1518-03-20 23:50] Guard #881 begins shift +[1518-09-10 00:55] wakes up +[1518-07-29 00:34] falls asleep +[1518-09-05 00:18] falls asleep +[1518-07-03 00:58] wakes up +[1518-04-28 00:52] wakes up +[1518-08-08 00:33] wakes up +[1518-04-22 00:00] falls asleep +[1518-03-19 00:15] wakes up +[1518-08-14 00:52] wakes up +[1518-07-11 00:56] wakes up +[1518-07-14 23:56] Guard #2017 begins shift +[1518-08-04 23:57] Guard #2027 begins shift +[1518-07-03 00:55] falls asleep +[1518-10-30 00:24] falls asleep +[1518-11-07 00:09] falls asleep +[1518-05-12 00:22] falls asleep +[1518-08-17 23:59] Guard #743 begins shift +[1518-08-23 00:50] falls asleep +[1518-10-29 00:04] Guard #1163 begins shift +[1518-07-04 00:54] wakes up +[1518-03-16 00:59] wakes up +[1518-08-25 00:14] falls asleep +[1518-10-30 23:52] Guard #2843 begins shift +[1518-05-17 00:54] wakes up +[1518-06-04 00:38] wakes up +[1518-05-16 00:46] wakes up +[1518-09-08 00:43] wakes up +[1518-09-01 00:21] falls asleep +[1518-06-17 23:59] Guard #1013 begins shift +[1518-09-27 23:59] Guard #3119 begins shift +[1518-05-17 00:03] Guard #1657 begins shift +[1518-04-21 23:46] Guard #2843 begins shift +[1518-09-11 00:35] falls asleep +[1518-10-01 00:31] wakes up +[1518-08-12 00:39] wakes up +[1518-10-04 00:01] Guard #1013 begins shift +[1518-08-02 23:50] Guard #1657 begins shift +[1518-05-04 00:36] falls asleep +[1518-06-05 00:39] falls asleep +[1518-07-04 00:36] wakes up +[1518-05-19 00:53] falls asleep +[1518-10-07 00:59] wakes up +[1518-06-30 00:49] falls asleep +[1518-06-17 00:18] wakes up +[1518-06-25 00:39] wakes up +[1518-09-28 00:31] falls asleep +[1518-08-24 00:24] wakes up +[1518-08-10 00:08] falls asleep +[1518-04-06 00:02] Guard #1163 begins shift +[1518-04-11 00:38] wakes up +[1518-07-02 00:52] wakes up +[1518-07-07 00:57] wakes up +[1518-04-30 00:15] falls asleep +[1518-04-17 00:48] wakes up +[1518-03-16 00:25] falls asleep +[1518-10-06 00:40] wakes up +[1518-10-13 00:00] falls asleep +[1518-05-30 23:56] Guard #2857 begins shift +[1518-06-06 00:54] wakes up +[1518-04-15 00:57] wakes up +[1518-06-21 00:57] wakes up +[1518-10-24 23:51] Guard #149 begins shift +[1518-03-26 00:44] wakes up +[1518-08-31 00:52] wakes up +[1518-03-28 00:51] falls asleep +[1518-10-25 23:47] Guard #3023 begins shift +[1518-07-14 00:52] wakes up +[1518-05-09 00:19] falls asleep +[1518-10-06 00:18] falls asleep +[1518-08-10 00:18] wakes up +[1518-05-19 00:28] wakes up +[1518-08-04 00:36] wakes up +[1518-06-13 00:49] falls asleep +[1518-04-16 00:09] falls asleep +[1518-05-20 00:38] wakes up +[1518-04-24 00:01] Guard #2719 begins shift +[1518-05-10 00:58] wakes up +[1518-11-23 00:41] wakes up +[1518-04-17 00:21] falls asleep +[1518-11-21 00:00] falls asleep +[1518-08-29 00:15] falls asleep +[1518-08-19 23:57] Guard #2843 begins shift +[1518-11-01 00:59] wakes up +[1518-05-03 00:00] Guard #2857 begins shift +[1518-10-02 00:32] wakes up +[1518-08-07 23:57] Guard #3089 begins shift +[1518-10-29 00:51] falls asleep +[1518-03-17 00:08] falls asleep +[1518-03-19 00:32] falls asleep +[1518-07-30 00:41] wakes up +[1518-07-14 00:11] falls asleep +[1518-07-16 00:04] Guard #2927 begins shift +[1518-03-14 00:30] falls asleep +[1518-10-05 00:46] wakes up +[1518-08-06 23:57] Guard #1993 begins shift +[1518-04-23 00:44] falls asleep +[1518-10-18 00:26] wakes up +[1518-04-15 00:52] wakes up +[1518-04-01 00:03] Guard #2719 begins shift +[1518-11-05 00:00] Guard #149 begins shift +[1518-05-07 00:17] falls asleep +[1518-10-10 00:00] Guard #3361 begins shift +[1518-07-28 00:00] Guard #743 begins shift +[1518-03-31 00:34] falls asleep +[1518-05-05 00:11] falls asleep +[1518-07-29 00:16] falls asleep +[1518-08-21 23:50] Guard #2927 begins shift +[1518-03-22 00:49] falls asleep +[1518-06-07 23:56] Guard #1163 begins shift +[1518-10-15 00:00] Guard #2027 begins shift +[1518-08-24 00:34] falls asleep +[1518-07-28 00:41] falls asleep +[1518-11-13 00:49] wakes up +[1518-07-02 00:32] falls asleep +[1518-09-21 00:17] falls asleep +[1518-09-02 00:00] Guard #3011 begins shift +[1518-04-15 00:02] falls asleep +[1518-09-26 00:00] Guard #1657 begins shift +[1518-05-03 00:12] falls asleep +[1518-09-09 00:44] wakes up +[1518-04-04 00:36] wakes up +[1518-05-23 23:59] Guard #3083 begins shift +[1518-04-07 00:58] wakes up +[1518-05-18 00:53] wakes up +[1518-05-15 00:56] wakes up +[1518-08-17 00:25] falls asleep +[1518-05-13 00:39] wakes up +[1518-06-24 00:18] falls asleep +[1518-04-07 00:50] wakes up +[1518-05-17 00:32] wakes up +[1518-06-19 00:32] wakes up +[1518-07-09 00:01] Guard #2719 begins shift +[1518-03-13 00:53] wakes up +[1518-06-02 00:44] wakes up +[1518-10-31 00:01] falls asleep +[1518-10-05 00:00] Guard #1013 begins shift +[1518-06-25 00:36] falls asleep +[1518-05-08 00:37] wakes up +[1518-07-02 00:49] falls asleep +[1518-05-12 00:55] wakes up +[1518-05-21 00:00] Guard #3023 begins shift +[1518-07-04 00:51] falls asleep +[1518-08-25 00:02] Guard #3011 begins shift +[1518-10-29 00:52] wakes up +[1518-04-03 00:50] wakes up +[1518-04-16 00:43] falls asleep +[1518-11-06 00:28] falls asleep +[1518-04-10 00:05] falls asleep +[1518-06-19 00:15] wakes up +[1518-04-14 00:06] wakes up +[1518-06-27 00:34] wakes up +[1518-05-27 00:52] wakes up +[1518-10-05 00:59] wakes up +[1518-09-19 00:58] wakes up +[1518-05-31 00:11] wakes up +[1518-09-14 00:59] wakes up +[1518-10-28 00:35] falls asleep +[1518-08-11 00:04] Guard #1163 begins shift +[1518-08-29 00:04] Guard #881 begins shift +[1518-09-25 00:22] falls asleep +[1518-06-30 00:04] Guard #1657 begins shift +[1518-05-04 00:56] wakes up +[1518-11-07 00:13] wakes up +[1518-06-30 00:19] falls asleep +[1518-08-22 00:09] wakes up +[1518-08-18 00:55] wakes up +[1518-05-28 00:46] wakes up +[1518-09-04 00:10] falls asleep +[1518-08-30 00:43] wakes up +[1518-03-11 00:32] wakes up +[1518-04-27 00:00] Guard #743 begins shift +[1518-10-20 00:26] wakes up +[1518-05-20 00:00] Guard #743 begins shift +[1518-04-03 23:59] Guard #3011 begins shift +[1518-07-29 00:59] wakes up +[1518-07-17 00:10] wakes up +[1518-04-07 00:04] Guard #2843 begins shift +[1518-07-15 00:52] wakes up +[1518-11-22 00:19] falls asleep +[1518-04-23 00:48] wakes up +[1518-07-19 00:52] wakes up +[1518-04-07 23:57] Guard #1163 begins shift +[1518-07-08 00:01] Guard #1993 begins shift +[1518-07-23 00:46] wakes up +[1518-07-21 00:01] Guard #3119 begins shift +[1518-03-16 00:03] Guard #3083 begins shift +[1518-03-28 00:56] wakes up +[1518-09-30 00:09] falls asleep +[1518-09-07 00:02] Guard #2017 begins shift +[1518-07-10 00:01] Guard #1993 begins shift +[1518-10-15 00:53] wakes up +[1518-10-08 00:18] falls asleep +[1518-06-26 00:54] wakes up +[1518-03-12 00:36] falls asleep +[1518-03-16 00:06] falls asleep +[1518-08-06 00:47] wakes up +[1518-10-22 00:29] wakes up +[1518-09-02 00:58] wakes up +[1518-07-18 00:12] falls asleep +[1518-09-19 23:58] Guard #1013 begins shift +[1518-08-31 00:10] falls asleep +[1518-03-24 00:18] falls asleep +[1518-04-18 00:30] wakes up +[1518-11-09 00:30] falls asleep +[1518-05-21 00:38] falls asleep +[1518-10-29 00:23] wakes up +[1518-10-23 00:00] Guard #2027 begins shift +[1518-10-09 00:09] falls asleep +[1518-09-11 00:53] falls asleep +[1518-07-04 00:32] falls asleep +[1518-07-31 00:32] falls asleep +[1518-09-01 00:58] wakes up +[1518-07-24 00:50] wakes up +[1518-07-26 00:49] falls asleep +[1518-11-18 00:15] falls asleep +[1518-04-13 00:31] falls asleep +[1518-09-03 00:22] wakes up +[1518-08-30 23:58] Guard #3361 begins shift +[1518-04-30 00:52] wakes up +[1518-06-15 00:56] falls asleep +[1518-07-02 00:56] falls asleep +[1518-04-19 23:56] Guard #1657 begins shift +[1518-10-09 00:03] Guard #1657 begins shift +[1518-10-07 00:02] Guard #1163 begins shift +[1518-05-24 00:29] falls asleep +[1518-05-23 00:06] falls asleep +[1518-07-10 23:58] Guard #1993 begins shift +[1518-07-03 00:00] Guard #743 begins shift +[1518-06-14 00:54] falls asleep +[1518-09-19 00:39] falls asleep +[1518-07-19 00:01] Guard #2017 begins shift +[1518-11-11 00:18] falls asleep +[1518-04-17 00:02] Guard #1013 begins shift +[1518-05-02 00:56] wakes up +[1518-08-29 00:55] falls asleep +[1518-11-17 00:11] wakes up +[1518-04-02 00:28] falls asleep +[1518-04-28 23:57] Guard #3083 begins shift +[1518-07-28 00:28] wakes up +[1518-09-22 00:47] wakes up +[1518-03-20 00:00] Guard #1657 begins shift +[1518-07-20 00:25] wakes up +[1518-09-06 00:52] wakes up +[1518-10-18 00:38] wakes up +[1518-07-24 00:25] falls asleep +[1518-11-07 00:02] Guard #149 begins shift +[1518-08-15 00:52] falls asleep +[1518-10-20 00:12] falls asleep +[1518-04-09 00:56] wakes up +[1518-09-26 00:18] wakes up +[1518-09-06 00:02] falls asleep +[1518-03-14 00:03] Guard #149 begins shift +[1518-06-06 00:38] falls asleep +[1518-11-13 00:44] falls asleep +[1518-10-23 23:57] Guard #1153 begins shift +[1518-10-28 00:50] falls asleep +[1518-05-14 00:57] wakes up +[1518-09-13 00:36] falls asleep +[1518-09-25 00:42] wakes up +[1518-11-22 00:51] wakes up +[1518-05-09 00:35] wakes up +[1518-10-31 23:59] Guard #2927 begins shift +[1518-11-14 00:26] wakes up +[1518-07-27 00:33] falls asleep +[1518-11-02 00:55] wakes up +[1518-04-08 23:58] Guard #3119 begins shift +[1518-11-16 00:08] falls asleep +[1518-09-30 00:37] falls asleep +[1518-04-10 00:59] wakes up +[1518-10-15 00:10] falls asleep +[1518-08-02 00:58] wakes up +[1518-07-05 00:59] wakes up +[1518-05-05 00:45] falls asleep +[1518-04-06 00:10] falls asleep +[1518-10-18 00:11] falls asleep +[1518-07-12 00:00] Guard #149 begins shift +[1518-06-24 00:40] wakes up +[1518-09-05 00:28] wakes up +[1518-03-18 00:38] wakes up +[1518-10-18 00:36] falls asleep +[1518-11-16 00:19] wakes up +[1518-08-05 00:06] falls asleep +[1518-04-26 00:00] Guard #3083 begins shift +[1518-03-22 00:52] wakes up +[1518-10-21 00:23] falls asleep +[1518-04-02 00:47] falls asleep +[1518-04-20 00:41] wakes up +[1518-11-19 23:57] Guard #1013 begins shift +[1518-09-26 00:58] wakes up +[1518-06-26 00:00] Guard #2927 begins shift +[1518-09-01 00:01] Guard #1657 begins shift +[1518-10-22 00:44] wakes up +[1518-11-20 00:50] falls asleep +[1518-10-25 00:41] wakes up +[1518-11-02 00:12] falls asleep +[1518-06-22 00:28] wakes up +[1518-11-04 00:39] wakes up +[1518-05-27 00:04] Guard #653 begins shift +[1518-07-24 00:46] falls asleep +[1518-11-14 00:08] falls asleep +[1518-03-19 00:40] wakes up +[1518-09-03 00:50] wakes up +[1518-07-16 00:59] wakes up +[1518-11-12 00:45] wakes up +[1518-10-11 00:17] falls asleep +[1518-10-30 00:40] wakes up +[1518-08-03 00:00] falls asleep +[1518-03-18 00:46] wakes up +[1518-08-06 00:44] falls asleep +[1518-10-11 00:50] wakes up +[1518-05-21 00:57] wakes up +[1518-09-01 00:43] wakes up +[1518-09-11 00:00] Guard #3011 begins shift +[1518-09-13 00:55] wakes up +[1518-10-27 00:04] Guard #149 begins shift +[1518-05-02 00:03] Guard #149 begins shift +[1518-09-14 00:00] Guard #3119 begins shift +[1518-07-08 00:14] falls asleep +[1518-06-02 00:28] falls asleep +[1518-03-19 00:57] wakes up +[1518-08-13 00:22] wakes up +[1518-05-01 00:04] Guard #653 begins shift +[1518-06-19 00:23] falls asleep +[1518-11-18 00:02] Guard #3011 begins shift +[1518-11-13 00:17] falls asleep +[1518-07-22 00:50] falls asleep +[1518-04-15 00:55] falls asleep +[1518-07-02 00:58] wakes up +[1518-03-28 00:28] falls asleep +[1518-07-01 00:50] falls asleep +[1518-05-31 00:35] falls asleep +[1518-05-13 00:27] wakes up +[1518-10-17 00:05] falls asleep +[1518-06-15 00:57] wakes up +[1518-11-10 00:45] wakes up +[1518-04-04 00:18] falls asleep +[1518-09-20 23:57] Guard #743 begins shift +[1518-10-29 00:11] falls asleep +[1518-05-01 00:25] falls asleep +[1518-11-22 00:40] wakes up +[1518-11-13 00:02] falls asleep +[1518-09-11 00:50] wakes up +[1518-09-12 23:56] Guard #653 begins shift +[1518-07-11 00:38] wakes up +[1518-03-22 23:59] Guard #659 begins shift +[1518-04-09 00:18] falls asleep +[1518-08-23 23:53] Guard #2927 begins shift +[1518-07-02 00:04] Guard #1993 begins shift +[1518-08-21 00:00] Guard #1993 begins shift +[1518-10-05 00:53] falls asleep +[1518-03-22 00:14] falls asleep +[1518-09-06 00:15] wakes up +[1518-09-24 00:57] falls asleep +[1518-08-14 00:03] falls asleep +[1518-05-25 00:41] falls asleep +[1518-04-23 00:28] wakes up +[1518-04-12 00:45] wakes up +[1518-05-10 00:14] falls asleep +[1518-03-26 23:54] Guard #3023 begins shift +[1518-05-11 00:54] wakes up +[1518-11-05 00:29] falls asleep +[1518-10-03 00:34] wakes up +[1518-04-09 23:50] Guard #653 begins shift +[1518-04-28 00:22] wakes up +[1518-07-07 00:08] falls asleep +[1518-03-28 00:01] Guard #2927 begins shift +[1518-07-05 23:58] Guard #1153 begins shift +[1518-11-23 00:37] falls asleep +[1518-09-05 00:59] wakes up +[1518-04-10 00:56] falls asleep +[1518-11-18 00:44] falls asleep +[1518-10-08 00:39] falls asleep +[1518-09-10 00:02] Guard #2017 begins shift +[1518-03-19 00:02] falls asleep +[1518-04-01 00:07] falls asleep +[1518-10-05 23:57] Guard #3023 begins shift +[1518-11-01 00:46] falls asleep +[1518-07-03 00:34] falls asleep +[1518-10-23 00:18] falls asleep +[1518-07-07 00:46] wakes up +[1518-07-26 00:07] falls asleep +[1518-08-27 00:04] Guard #3011 begins shift +[1518-04-08 00:17] falls asleep +[1518-05-22 00:56] wakes up +[1518-10-22 00:36] falls asleep +[1518-04-14 00:02] falls asleep +[1518-07-25 00:37] wakes up +[1518-08-03 23:50] Guard #2843 begins shift +[1518-03-31 00:56] wakes up +[1518-07-04 00:00] Guard #3023 begins shift +[1518-11-16 00:00] Guard #2027 begins shift +[1518-03-27 00:01] falls asleep +[1518-09-01 00:57] falls asleep +[1518-11-22 00:49] falls asleep +[1518-07-05 00:38] falls asleep +[1518-05-27 00:29] falls asleep +[1518-08-12 00:32] falls asleep +[1518-05-22 00:34] falls asleep +[1518-05-11 00:21] falls asleep +[1518-06-19 23:52] Guard #2927 begins shift +[1518-04-23 00:26] falls asleep +[1518-03-11 23:56] Guard #1993 begins shift +[1518-08-16 00:14] falls asleep +[1518-10-30 00:56] wakes up +[1518-03-18 00:43] falls asleep +[1518-11-03 23:58] Guard #881 begins shift +[1518-03-14 00:39] wakes up +[1518-09-12 00:57] wakes up +[1518-11-17 00:47] falls asleep +[1518-04-16 00:38] wakes up +[1518-09-23 00:54] falls asleep +[1518-08-20 00:39] wakes up +[1518-06-08 00:25] falls asleep +[1518-03-20 00:10] falls asleep +[1518-07-01 00:21] falls asleep +[1518-03-24 00:44] wakes up +[1518-07-17 00:59] wakes up +[1518-06-23 00:38] wakes up +[1518-04-02 00:02] Guard #2857 begins shift +[1518-07-15 00:51] falls asleep +[1518-09-11 23:52] Guard #1163 begins shift +[1518-04-26 00:40] falls asleep +[1518-03-29 00:20] falls asleep +[1518-07-30 00:00] Guard #3361 begins shift +[1518-06-05 00:49] wakes up +[1518-10-26 00:00] falls asleep +[1518-07-03 00:51] wakes up +[1518-10-12 00:46] falls asleep +[1518-10-21 00:57] wakes up +[1518-07-25 00:02] falls asleep +[1518-04-15 23:56] Guard #3119 begins shift +[1518-10-17 00:19] wakes up +[1518-06-05 00:45] falls asleep +[1518-07-28 00:17] falls asleep +[1518-06-22 00:43] falls asleep +[1518-07-25 00:24] wakes up +[1518-09-20 00:40] falls asleep +[1518-07-17 00:00] Guard #743 begins shift +[1518-03-16 23:59] Guard #2017 begins shift +[1518-09-05 00:36] falls asleep +[1518-08-11 00:14] falls asleep +[1518-04-12 00:48] falls asleep +[1518-05-20 00:23] falls asleep +[1518-04-11 00:33] falls asleep +[1518-09-08 23:58] Guard #1163 begins shift +[1518-09-09 00:09] falls asleep +[1518-04-02 00:40] wakes up +[1518-06-11 00:54] wakes up +[1518-09-05 23:50] Guard #2017 begins shift +[1518-11-22 00:04] falls asleep +[1518-04-29 00:19] wakes up +[1518-05-19 00:57] wakes up +[1518-05-26 00:34] wakes up +[1518-05-17 00:10] falls asleep +[1518-04-01 00:54] wakes up +[1518-04-18 00:00] Guard #3083 begins shift +[1518-04-25 00:59] wakes up +[1518-06-22 00:02] Guard #2027 begins shift +[1518-08-20 00:34] falls asleep +[1518-05-25 00:00] Guard #3023 begins shift +[1518-07-20 00:03] Guard #3011 begins shift +[1518-03-27 00:59] wakes up +[1518-06-05 00:42] wakes up +[1518-08-19 00:19] falls asleep +[1518-11-23 00:32] wakes up +[1518-04-12 00:26] falls asleep +[1518-10-10 00:39] falls asleep +[1518-11-15 00:51] wakes up +[1518-09-27 00:38] wakes up +[1518-10-12 23:53] Guard #653 begins shift +[1518-05-03 00:25] falls asleep +[1518-10-09 00:49] wakes up +[1518-11-08 00:30] falls asleep +[1518-05-26 00:50] falls asleep +[1518-11-13 00:41] wakes up +[1518-09-30 00:41] wakes up +[1518-04-14 00:22] falls asleep +[1518-05-04 00:54] falls asleep +[1518-05-05 00:03] Guard #2027 begins shift +[1518-04-05 00:44] wakes up +[1518-07-24 00:42] wakes up +[1518-06-07 00:08] wakes up +[1518-10-02 00:00] falls asleep +[1518-06-12 00:16] falls asleep +[1518-04-10 00:34] wakes up +[1518-07-13 00:02] Guard #2719 begins shift +[1518-04-21 00:03] Guard #881 begins shift +[1518-10-11 00:04] Guard #2927 begins shift +[1518-06-02 23:56] Guard #3011 begins shift +[1518-03-12 00:38] wakes up +[1518-06-26 23:48] Guard #3023 begins shift +[1518-05-16 00:07] falls asleep +[1518-04-28 00:48] falls asleep +[1518-05-22 00:02] Guard #881 begins shift +[1518-03-18 23:48] Guard #3089 begins shift +[1518-08-08 00:57] wakes up +[1518-09-21 00:21] wakes up +[1518-04-29 23:58] Guard #2843 begins shift +[1518-03-17 00:52] wakes up +[1518-06-10 00:00] Guard #563 begins shift +[1518-09-28 00:57] wakes up +[1518-05-16 00:22] wakes up +[1518-04-03 00:13] falls asleep +[1518-10-04 00:44] wakes up +[1518-06-27 00:01] falls asleep +[1518-06-26 00:49] wakes up +[1518-05-29 00:28] falls asleep +[1518-06-29 00:56] wakes up +[1518-11-20 00:21] falls asleep +[1518-10-03 00:07] falls asleep +[1518-05-16 00:00] Guard #1993 begins shift +[1518-09-06 00:34] falls asleep +[1518-05-17 00:38] falls asleep +[1518-07-28 23:56] Guard #2857 begins shift +[1518-06-13 00:54] wakes up +[1518-06-01 00:30] falls asleep +[1518-11-09 00:57] wakes up +[1518-11-22 00:06] wakes up +[1518-10-04 00:09] falls asleep +[1518-10-19 00:00] Guard #3023 begins shift +[1518-11-09 23:58] Guard #881 begins shift +[1518-10-28 00:02] Guard #2719 begins shift +[1518-04-13 00:45] wakes up +[1518-05-15 00:35] falls asleep +[1518-10-12 00:00] Guard #3119 begins shift +[1518-04-07 00:46] falls asleep +[1518-03-29 00:03] Guard #2027 begins shift +[1518-03-24 00:43] falls asleep +[1518-04-26 00:49] wakes up +[1518-09-26 00:15] falls asleep +[1518-08-24 00:40] wakes up +[1518-04-14 23:54] Guard #2857 begins shift +[1518-03-20 00:32] wakes up +[1518-10-13 00:50] falls asleep +[1518-11-12 23:48] Guard #3119 begins shift +[1518-07-07 00:56] falls asleep +[1518-10-21 00:03] Guard #3023 begins shift +[1518-08-15 00:53] wakes up +[1518-05-07 00:55] wakes up +[1518-08-08 00:53] falls asleep +[1518-08-02 00:49] falls asleep +[1518-11-18 00:56] wakes up +[1518-10-30 00:50] falls asleep +[1518-11-18 00:41] wakes up +[1518-05-30 00:16] falls asleep +[1518-06-28 00:00] Guard #3011 begins shift +[1518-09-23 00:17] falls asleep +[1518-10-26 00:54] falls asleep +[1518-10-08 00:31] falls asleep +[1518-06-04 23:59] Guard #149 begins shift +[1518-09-07 00:08] falls asleep +[1518-06-03 23:52] Guard #1993 begins shift +[1518-07-21 00:14] falls asleep +[1518-06-13 00:00] Guard #2927 begins shift +[1518-07-24 23:48] Guard #149 begins shift +[1518-10-08 00:25] wakes up +[1518-10-03 00:03] Guard #743 begins shift +[1518-05-09 23:57] Guard #2027 begins shift +[1518-06-21 00:49] wakes up +[1518-07-13 00:34] falls asleep +[1518-03-26 00:13] falls asleep +[1518-05-12 00:28] wakes up +[1518-09-27 00:42] falls asleep +[1518-05-29 00:04] Guard #2719 begins shift +[1518-05-13 23:56] Guard #3011 begins shift +[1518-10-28 00:56] wakes up +[1518-07-02 00:37] wakes up +[1518-06-17 00:32] falls asleep +[1518-05-13 00:36] falls asleep +[1518-04-25 00:46] falls asleep +[1518-06-07 00:01] falls asleep +[1518-10-13 00:59] wakes up +[1518-11-09 00:02] Guard #3011 begins shift +[1518-09-26 00:57] falls asleep +[1518-09-11 00:54] wakes up +[1518-05-14 00:29] falls asleep +[1518-08-02 00:29] falls asleep +[1518-08-24 00:00] falls asleep +[1518-11-13 00:13] wakes up +[1518-05-05 00:56] wakes up +[1518-06-22 23:54] Guard #2843 begins shift +[1518-08-07 00:48] wakes up +[1518-11-19 00:00] Guard #659 begins shift +[1518-07-22 00:34] wakes up +[1518-03-29 00:54] wakes up +[1518-10-07 00:30] falls asleep +[1518-11-21 23:51] Guard #1013 begins shift +[1518-10-18 00:03] Guard #2027 begins shift +[1518-03-25 00:56] wakes up +[1518-07-16 00:38] falls asleep +[1518-06-12 00:59] wakes up +[1518-10-14 00:00] Guard #2027 begins shift +[1518-05-11 00:52] falls asleep +[1518-06-15 00:49] wakes up \ No newline at end of file diff --git a/2018/5thDay/.vscode/settings.json b/2018/5thDay/.vscode/settings.json new file mode 100644 index 0000000..e2c18d1 --- /dev/null +++ b/2018/5thDay/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "ostream": "cpp" + } +} \ No newline at end of file diff --git a/2018/5thDay/challenge1/a.out b/2018/5thDay/challenge1/a.out new file mode 100644 index 0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u{KqD)ZRbYX6qM zx8U|!pZkB0(qE|z^8PMU{@#T2Nhe$X0bmpp@=q3TCcQwhOtQ~^5*50>*K0{KmA}nn zWl-!4$-?vzaJoM4D>G$(m7488D%Y8N{K7FI78by*E;lcmcCP-Ue?KO|K%)w-XCXrm^!BwjvGU-;($chf8IxDdMgVm znq^MB1)TPt)ikyDfjJLwcD%WLrtd+wOw;Fm`Q6I_qOhFBjq{BE9u+*dNQU?CInOfZ zQ|9r_dhFLu=un^7f8OUmw1TYR_pBDNKUtsYDb(ot_V)qxmP*Rjv<_I0sRzosKJR;_ zls?aMHp6<%PlGaH?7zK#)nG}?CgWQ1YR7a~j(QT|VQW__eW&XWn + collapsePloymer(polymer, letter) + ); + const shortestCollapse = collapsedPolymers.reduce((longest, curr) => + longest.length < curr.length ? longest : curr + ); + return shortestCollapse.length; +} + +module.exports = { + part1: part1, + part2: part2 +}; \ No newline at end of file diff --git a/2018/5thDay/challenge1/main.cpp b/2018/5thDay/challenge1/main.cpp new file mode 100644 index 0000000..10ea7bd --- /dev/null +++ b/2018/5thDay/challenge1/main.cpp @@ -0,0 +1,43 @@ +#include +#include +#include + +int main(int argc, char** argv) { + if (argc != 2) return 0; + + std::fstream input; + input.open(*(argv + 1)); + + std::string polymerString; + std::getline(input, polymerString); + + while (!false) { + int numOfMods = 0; + std::string eh = ""; + for (unsigned int i = 0; i < polymerString.length() - 1; i++) { + if (islower((char)polymerString[i])) { + if (toupper((char)polymerString[i]) == (char)polymerString[i+1]) { + eh += polymerString.substr(0, i); + eh += polymerString.substr(i + 2, polymerString.length()); + numOfMods++; + break; + } + } + if (isupper((char)polymerString[i])) { + if (tolower((char)polymerString[i]) == (char)polymerString[i+1]) { + eh += polymerString.substr(0, i); + eh += polymerString.substr(i + 2, polymerString.length()); + numOfMods++; + break; + } + } + } + if (eh != "") { + polymerString = eh; + } + std::cout << "Current length: " <eTTx~jUmx@UHEOL)QD+?*UsUwPK07Tv8oMq#Riu;n-M0iepN zw2s7oPqj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l9fEv?X9FxJ^ zbJ!~GSlyC}H2|iP3a-?j@MX|=vfV0fZA-(bwc*GT$)^LYHz?e*`VYZ%gu z0`ooh_*n*5d;NRq8p_wh?N;9Qb3pk3znQQ5*MCPqL;bz%aU!9>mZUx`0yq-?bbI~# z>l$to0)5|{#;)5J;WJ%V;a?v9>Gt|}+BMXFr+|3r^4jk@;OK7x==S>e+%?44!}-$s zYd#Hc0G0m6fWFti`>x?S)tvv10_mys7qoQ~K9Egy`{BbCMZ=INtozsP_4wCI`&p`) z{X6pd_vD9+_SDAP{tn=XMSq_kKYF4rfhWkV244U7f?&1}NjnW|q<`JsBi_2p(_a66 zy@py}-Co~o_^+P!`ghtiEXD6nn3wKf8UqK)f z>Gt~X1Pti@#jx6px}DZ*Guo2}r<8zZUb?-82S7C2+kbapoocnsY>dyk zordGk*le$VA8MPl*YjM9(e3p8k!Vaft-t>LuwA-62{*2g@tHo-?~Dni%@s6~Fe~dlc7+ LT2X1_xwZZ;$FEs6 literal 0 HcmV?d00001 diff --git a/2018/6thDay/challenge.txt b/2018/6thDay/challenge.txt new file mode 100644 index 0000000..7ec1abd --- /dev/null +++ b/2018/6thDay/challenge.txt @@ -0,0 +1,81 @@ +--- Day 6: Chronal Coordinates --- +The device on your wrist beeps several times, and once again you feel like you're falling. + +"Situation critical," the device announces. "Destination indeterminate. Chronal interference detected. Please specify new target coordinates." + +The device then produces a list of coordinates (your puzzle input). Are they places it thinks are safe or dangerous? It recommends you check manual page 729. The Elves did not give you a manual. + +If they're dangerous, maybe you can minimize the danger by finding the coordinate that gives the largest distance from the other points. + +Using only the Manhattan distance, determine the area around each coordinate by counting the number of integer X,Y locations that are closest to that coordinate (and aren't tied in distance to any other coordinate). + +Your goal is to find the size of the largest area that isn't infinite. For example, consider the following list of coordinates: + +1, 1 +1, 6 +8, 3 +3, 4 +5, 5 +8, 9 +If we name these coordinates A through F, we can draw them on a grid, putting 0,0 at the top left: + +.......... +.A........ +.......... +........C. +...D...... +.....E.... +.B........ +.......... +.......... +........F. +This view is partial - the actual grid extends infinitely in all directions. Using the Manhattan distance, each location's closest coordinate can be determined, shown here in lowercase: + +aaaaa.cccc +aAaaa.cccc +aaaddecccc +aadddeccCc +..dDdeeccc +bb.deEeecc +bBb.eeee.. +bbb.eeefff +bbb.eeffff +bbb.ffffFf +Locations shown as . are equally far from two or more coordinates, and so they don't count as being closest to any. + +In this example, the areas of coordinates A, B, C, and F are infinite - while not shown here, their areas extend forever outside the visible grid. However, the areas of coordinates D and E are finite: D is closest to 9 locations, and E is closest to 17 (both including the coordinate's location itself). Therefore, in this example, the size of the largest area is 17. + +What is the size of the largest area that isn't infinite? + +--- Part Two --- +On the other hand, if the coordinates are safe, maybe the best you can do is try to find a region near as many coordinates as possible. + +For example, suppose you want the sum of the Manhattan distance to all of the coordinates to be less than 32. For each location, add up the distances to all of the given coordinates; if the total of those distances is less than 32, that location is within the desired region. Using the same coordinates as above, the resulting region looks like this: + +.......... +.A........ +.......... +...###..C. +..#D###... +..###E#... +.B.###.... +.......... +.......... +........F. +In particular, consider the highlighted location 4,3 located at the top middle of the region. Its calculation is as follows, where abs() is the absolute value function: + +Distance to coordinate A: abs(4-1) + abs(3-1) = 5 +Distance to coordinate B: abs(4-1) + abs(3-6) = 6 +Distance to coordinate C: abs(4-8) + abs(3-3) = 4 +Distance to coordinate D: abs(4-3) + abs(3-4) = 2 +Distance to coordinate E: abs(4-5) + abs(3-5) = 3 +Distance to coordinate F: abs(4-8) + abs(3-9) = 10 +Total distance: 5 + 6 + 4 + 2 + 3 + 10 = 30 +Because the total distance to all coordinates (30) is less than 32, the location is within the region. + +This region, which also includes coordinates D and E, has a total size of 16. + +Your actual region will need to be much larger than this example, though, instead including all locations with a total distance of less than 10000. + +What is the size of the region containing all locations which have a total distance to all given coordinates of less than 10000? + diff --git a/2018/6thDay/input.txt b/2018/6thDay/input.txt new file mode 100644 index 0000000..77b84b5 --- /dev/null +++ b/2018/6thDay/input.txt @@ -0,0 +1,50 @@ +194, 200 +299, 244 +269, 329 +292, 55 +211, 63 +123, 311 +212, 90 +292, 169 +359, 177 +354, 95 +101, 47 +95, 79 +95, 287 +294, 126 +81, 267 +330, 78 +202, 165 +225, 178 +266, 272 +351, 326 +180, 62 +102, 178 +151, 101 +343, 145 +205, 312 +74, 193 +221, 56 +89, 89 +242, 172 +59, 138 +83, 179 +223, 88 +297, 234 +147, 351 +226, 320 +358, 338 +321, 172 +54, 122 +263, 165 +126, 341 +64, 132 +264, 306 +72, 202 +98, 49 +238, 67 +310, 303 +277, 281 +222, 318 +357, 169 +123, 225 \ No newline at end of file diff --git a/2018/6thDay/main.cpp b/2018/6thDay/main.cpp new file mode 100644 index 0000000..374d7ec --- /dev/null +++ b/2018/6thDay/main.cpp @@ -0,0 +1,131 @@ +#include +#include +#include +#include +#include +#include + +struct Point +{ + int64_t x, y; + Point(const int64_t &X, const int64_t &Y) : x(X), y(Y) {} + Point() = default; +}; + +int64_t distance(const Point &a, const Point &b) +{ + return std::abs(a.x - b.x) + std::abs(a.y - b.y); +} + +std::istream &operator>>(std::istream &is, Point &p) +{ + char c; + is >> p.x >> c >> p.y; + return is; +} + +std::ostream &operator<<(std::ostream &os, Point &p) +{ + char c; + os << p.x << ", " << p.y; + return os; +} + +size_t min_index(const size_t &invalid, const Point &point, + const std::vector &points) +{ + size_t result; + int64_t min_dist(std::numeric_limits::max()); + for(size_t p = 0; p < points.size(); ++p) + { + int64_t d(distance(point, points[p])); + if(min_dist > d) + { + min_dist = d; + result = p; + } + else if(min_dist == d) + { + result = invalid; + } + } + return result; +} + +int main(int argc, char *argv[]) +{ + std::ifstream infile(argv[1]); + std::vector points(std::istream_iterator(infile), {}); + + int64_t min_x(std::numeric_limits::max()), min_y(min_x), + max_x(std::numeric_limits::min()), max_y(max_x); + for(auto &p : points) + { + min_x = std::min(min_x, p.x); + min_y = std::min(min_y, p.y); + max_x = std::max(max_x, p.x); + max_y = std::max(max_y, p.y); + } + + int64_t width(max_x - min_x + 1), height(max_y - min_y + 1); + const size_t invalid(points.size()); + std::vector num_claimed(points.size() + 1, 0); + std::set invalid_points; + + for(int64_t x = min_x; x <= max_x; ++x) + { + invalid_points.insert(min_index(invalid, Point(x, min_y), points)); + invalid_points.insert(min_index(invalid, Point(x, max_y), points)); + } + for(int64_t y = min_y; y <= max_y; ++y) + { + invalid_points.insert(min_index(invalid, Point(min_x, y), points)); + invalid_points.insert(min_index(invalid, Point(max_x, y), points)); + } + + for(int64_t x = 0; x < width; ++x) + for(int64_t y = 0; y < height; ++y) + { + int64_t min_dist(std::numeric_limits::max()); + size_t min_index; + for(size_t p = 0; p < points.size(); ++p) + { + int64_t d(distance(Point(x + min_x, y + min_y), points[p])); + if(min_dist > d) + { + min_dist = d; + min_index = p; + } + else if(min_dist == d) + { + min_index = invalid; + } + } + if(invalid_points.find(min_index) == invalid_points.end()) + ++num_claimed[min_index]; + } + std::cout << "Part 1: " + << *std::max_element(num_claimed.begin(), num_claimed.end()) + << "\n"; + + int64_t area(0); + constexpr int64_t cutoff(10000); + const int64_t padding(cutoff / points.size() + 1); + + const int64_t x_lower(min_x - padding), x_upper(max_x + 1 + padding), + y_lower(min_y - padding), y_upper(max_y + 1 + padding); + for(int64_t x = x_lower; x < x_upper; ++x) + for(int64_t y = y_lower; y < y_upper; ++y) + { + int64_t total_dist(0); + for(auto &point : points) + { + total_dist += distance(Point(x, y), point); + if(total_dist > cutoff) + break; + } + if(total_dist < cutoff) + ++area; + } + std::cout << "Part 2: " << area << "\n"; +} \ No newline at end of file