summary refs log tree commit diff homepage
path: root/src
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2016-12-18 00:49:58 -0500
committerJune McEnroe <programble@gmail.com>2016-12-18 00:49:58 -0500
commit6bc678b8972a2e02a7415d419451d64fe82a027e (patch)
tree5c37ecd663c9b8154af7e1e5357e9371d8fdd219 /src
parentDay 18 (diff)
downloadaoc-6bc678b8972a2e02a7415d419451d64fe82a027e.tar.gz
aoc-6bc678b8972a2e02a7415d419451d64fe82a027e.zip
Day 18 part 2
Diffstat (limited to 'src')
-rw-r--r--src/bin/day18.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/day18.rs b/src/bin/day18.rs
index 658949e..19f8c91 100644
--- a/src/bin/day18.rs
+++ b/src/bin/day18.rs
@@ -78,6 +78,7 @@ fn main() {
     io::stdin().read_to_string(&mut input).unwrap();
 
     println!("Part 1: {}", solve(40, &input));
+    println!("Part 2: {}", solve(400000, &input));
 }
 
 #[test]
class='logsubject'>Register readers by client usernamesJune McEnroe 2019-10-24Unset non-blocking on clientsJune McEnroe I figure I'll actually use POLLOUT on clients so should never have issues. 2019-10-24Intercept client QUITJune McEnroe 2019-10-24Only set NeedCapEnd if unregisteredJune McEnroe 2019-10-24Set client-side origin to irc.invalidJune McEnroe 2019-10-24Factor out client-side origin nameJune McEnroe 2019-10-24Intercept all CAP commands from clientsJune McEnroe 2019-10-24Ignore further CAP ENDJune McEnroe 2019-10-24Implement client CAP for server-timeJune McEnroe 2019-10-24Implement ringWriteJune McEnroe 2019-10-24Make clientFormat publicJune McEnroe 2019-10-24Make serverFormat publicJune McEnroe 2019-10-24Rename some thingsJune McEnroe 2019-10-23Add ISUPPORT draft to STANDARDSJune McEnroe 2019-10-23Track own originJune McEnroe 2019-10-23Track channels and sync ISUPPORTJune McEnroe 2019-10-23Track nick changesJune McEnroe 2019-10-23Rename Command to MessageJune McEnroe 2019-10-23Synchronize state after client registrationJune McEnroe 2019-10-23Send to server if client has no needsJune McEnroe 2019-10-23Implement some amount of client connectionJune McEnroe 2019-10-23Set clients non-blockingJune McEnroe 2019-10-23Clean up state.c and factor out parsingJune McEnroe 2019-10-23Respond to pingsJune McEnroe 2019-10-23Add verbose flagJune McEnroe 2019-10-23Set NOSIGPIPE on server connectionJune McEnroe 2019-10-23Set an initial loop capJune McEnroe 2019-10-23Fix rest parsingJune McEnroe 2019-10-23Add dynamic poll listJune McEnroe 2019-10-23Don't assume commands have targets and handle ERRORJune McEnroe 2019-10-23Clean up state somewhatJune McEnroe 2019-10-23Actually send the buffer...June McEnroe 2019-10-23Add stateJune McEnroe