init, 2015 & 2016
This commit is contained in:
1
2015/.gitignore
vendored
Normal file
1
2015/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.idea
|
||||
44
2015/CMakeLists.txt
Normal file
44
2015/CMakeLists.txt
Normal file
@@ -0,0 +1,44 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
|
||||
project(advent C)
|
||||
|
||||
add_subdirectory(lib/libflint)
|
||||
|
||||
file(GLOB SRC src/*.c)
|
||||
|
||||
file(COPY input DESTINATION ${CMAKE_BINARY_DIR})
|
||||
|
||||
add_executable(advent ${SRC})
|
||||
|
||||
set(INCLUDES
|
||||
include
|
||||
lib/libflint/include
|
||||
)
|
||||
|
||||
if ((${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD"))
|
||||
find_package(PCRE2 REQUIRED)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
target_include_directories(advent PRIVATE ${INCLUDES} ${PCRE2_INCLUDE_DIR})
|
||||
target_link_libraries(advent PRIVATE flint ${PCRE2_LIBRARIES})
|
||||
elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux"))
|
||||
find_package(OpenSSL REQUIRED)
|
||||
target_include_directories(advent PRIVATE ${INCLUDES} ${OpenSSL_INCLUDE_DIR})
|
||||
target_link_libraries(advent PRIVATE bsd flint pcre2-8 ${OPENSSL_LIBRARIES})
|
||||
elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "Darwin"))
|
||||
# OpenSSL
|
||||
set(OPENSSL_ROOT_DIR /opt/homebrew/opt/openssl@3)
|
||||
set(OpenSSL_INCLUDE_DIR /opt/homebrew/opt/openssl@3/include)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
|
||||
# PCRE2
|
||||
set(PCRE2_INCLUDE_DIR /opt/homebrew/opt/pcre2/include)
|
||||
set(PCRE2_LIBRARIES /opt/homebrew/opt/pcre2/lib/libpcre2-8.dylib)
|
||||
|
||||
target_include_directories(advent PRIVATE ${INCLUDES} ${OpenSSL_INCLUDE_DIR} ${PCRE2_INCLUDE_DIR})
|
||||
target_link_libraries(advent PRIVATE flint ${OPENSSL_LIBRARIES} ${PCRE2_LIBRARIES})
|
||||
else()
|
||||
message(FATAL_ERROR "OS ${CMAKE_SYSTEM_NAME} is not supported" )
|
||||
endif()
|
||||
5
2015/LICENSE
Normal file
5
2015/LICENSE
Normal file
@@ -0,0 +1,5 @@
|
||||
Copyright 2020 Evan Burkey <dev@fputs.com>
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
34
2015/README.md
Normal file
34
2015/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# aoc
|
||||
|
||||
Advent Of Code solutions for 2015 using C99. Builds and runs on macOS, Linux, and OpenBSD.
|
||||
|
||||
## Building
|
||||
|
||||
Be sure to clone the top project with its submodules:
|
||||
|
||||
git clone --recurse-submodules https://git.burkey.co/eburk/aoc
|
||||
|
||||
This project relies on several BSD extensions to the stdlib. OpenBSD and macOS users should be able to build the project out of the box. Linux users will need `libbsd` installed. The package is called `libbsd-dev` on Debian-based systems.
|
||||
|
||||
Build the project using Cmake:
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
make
|
||||
|
||||
The supplied `build.sh` script does the above for you.
|
||||
|
||||
## Inputs
|
||||
|
||||
Inputs can be generated from `get_input.sh`. You will need to get your session cookie from the Advent of Code website. The easiest way to do this is to inspect any input page in your browser.
|
||||
|
||||
The script can then be run with `bash get_input.sh SESSIONCOOKIE`, with `SESSIONCOOKIE` replaced by your unique session cookie's hash.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
./advent $DAY
|
||||
```
|
||||
|
||||
For example, `./advent 1` will run Day 01
|
||||
9
2015/build.sh
Executable file
9
2015/build.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake ..
|
||||
make
|
||||
cp advent ..
|
||||
cp compile_commands.json ..
|
||||
cd ..
|
||||
90
2015/generator.sh
Executable file
90
2015/generator.sh
Executable file
@@ -0,0 +1,90 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p include
|
||||
|
||||
for year in {2015..2024}; do
|
||||
rm -rf "src/${year}"
|
||||
mkdir -p "src/${year}"
|
||||
|
||||
rm "include/advent${year}.h"
|
||||
tee "include/advent${year}.h" <<EOF
|
||||
#ifndef ADVENT_${year}_H
|
||||
#define ADVENT_${year}_H
|
||||
|
||||
void advent${year}day01(void);
|
||||
void advent${year}day02(void);
|
||||
void advent${year}day03(void);
|
||||
void advent${year}day04(void);
|
||||
void advent${year}day05(void);
|
||||
void advent${year}day06(void);
|
||||
void advent${year}day07(void);
|
||||
void advent${year}day08(void);
|
||||
void advent${year}day09(void);
|
||||
void advent${year}day10(void);
|
||||
void advent${year}day11(void);
|
||||
void advent${year}day12(void);
|
||||
void advent${year}day13(void);
|
||||
void advent${year}day14(void);
|
||||
void advent${year}day15(void);
|
||||
void advent${year}day16(void);
|
||||
void advent${year}day17(void);
|
||||
void advent${year}day18(void);
|
||||
void advent${year}day19(void);
|
||||
void advent${year}day20(void);
|
||||
void advent${year}day21(void);
|
||||
void advent${year}day22(void);
|
||||
void advent${year}day23(void);
|
||||
void advent${year}day24(void);
|
||||
void advent${year}day25(void);
|
||||
|
||||
void (*solutions${year}[25])(void) = {
|
||||
advent${year}day01,
|
||||
advent${year}day02,
|
||||
advent${year}day03,
|
||||
advent${year}day04,
|
||||
advent${year}day05,
|
||||
advent${year}day06,
|
||||
advent${year}day07,
|
||||
advent${year}day08,
|
||||
advent${year}day09,
|
||||
advent${year}day10,
|
||||
advent${year}day11,
|
||||
advent${year}day12,
|
||||
advent${year}day13,
|
||||
advent${year}day14,
|
||||
advent${year}day15,
|
||||
advent${year}day16,
|
||||
advent${year}day17,
|
||||
advent${year}day18,
|
||||
advent${year}day19,
|
||||
advent${year}day20,
|
||||
advent${year}day21,
|
||||
advent${year}day22,
|
||||
advent${year}day23,
|
||||
advent${year}day24,
|
||||
advent${year}day25
|
||||
};
|
||||
|
||||
#endif
|
||||
EOF
|
||||
|
||||
for day in {1..25}; do
|
||||
if [[ $day -lt 10 ]]; then
|
||||
d="0${day}"
|
||||
else
|
||||
d="$day"
|
||||
fi
|
||||
tee "src/${year}/${d}.c" <<EOF
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent${year}day${d}(void) {
|
||||
char *input = get_input("input/${year}/${d}");
|
||||
printf("Solution for Day ${d} of ${year} is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
EOF
|
||||
done
|
||||
done
|
||||
58
2015/include/advent.h
Normal file
58
2015/include/advent.h
Normal file
@@ -0,0 +1,58 @@
|
||||
#ifndef ADVENT_2015_H
|
||||
#define ADVENT_2015_H
|
||||
|
||||
void advent2015day01(void);
|
||||
void advent2015day02(void);
|
||||
void advent2015day03(void);
|
||||
void advent2015day04(void);
|
||||
void advent2015day05(void);
|
||||
void advent2015day06(void);
|
||||
void advent2015day07(void);
|
||||
void advent2015day08(void);
|
||||
void advent2015day09(void);
|
||||
void advent2015day10(void);
|
||||
void advent2015day11(void);
|
||||
void advent2015day12(void);
|
||||
void advent2015day13(void);
|
||||
void advent2015day14(void);
|
||||
void advent2015day15(void);
|
||||
void advent2015day16(void);
|
||||
void advent2015day17(void);
|
||||
void advent2015day18(void);
|
||||
void advent2015day19(void);
|
||||
void advent2015day20(void);
|
||||
void advent2015day21(void);
|
||||
void advent2015day22(void);
|
||||
void advent2015day23(void);
|
||||
void advent2015day24(void);
|
||||
void advent2015day25(void);
|
||||
|
||||
void (*solutions2015[25])(void) = {
|
||||
advent2015day01,
|
||||
advent2015day02,
|
||||
advent2015day03,
|
||||
advent2015day04,
|
||||
advent2015day05,
|
||||
advent2015day06,
|
||||
advent2015day07,
|
||||
advent2015day08,
|
||||
advent2015day09,
|
||||
advent2015day10,
|
||||
advent2015day11,
|
||||
advent2015day12,
|
||||
advent2015day13,
|
||||
advent2015day14,
|
||||
advent2015day15,
|
||||
advent2015day16,
|
||||
advent2015day17,
|
||||
advent2015day18,
|
||||
advent2015day19,
|
||||
advent2015day20,
|
||||
advent2015day21,
|
||||
advent2015day22,
|
||||
advent2015day23,
|
||||
advent2015day24,
|
||||
advent2015day25
|
||||
};
|
||||
|
||||
#endif
|
||||
27
2015/include/advent_utility.h
Normal file
27
2015/include/advent_utility.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef ADVENT_H_UTILITY_
|
||||
#define ADVENT_H_UTILITY_
|
||||
|
||||
#include "lfvector.h"
|
||||
|
||||
#define DEFAULT_DELIM " \t\n\r\f\v"
|
||||
|
||||
#define MAX(x, y) (x) > (y) ? (x) : (y)
|
||||
#define MIN(x, y) (x) < (y) ? (x) : (y)
|
||||
|
||||
char *md5_str(const char *);
|
||||
Vector *string_to_int_vector(const char *input_string, const char *delim);
|
||||
int int_comp(const void *a, const void *b);
|
||||
char **get_matches(char *in, char *pat, size_t *sz, size_t max_matches);
|
||||
void free_matches(char **matches, size_t sz);
|
||||
|
||||
enum Direction {
|
||||
DIR_NORTH = 0,
|
||||
DIR_EAST = 1,
|
||||
DIR_SOUTH = 2,
|
||||
DIR_WEST = 3,
|
||||
};
|
||||
|
||||
void turn_right(enum Direction *d);
|
||||
void turn_left(enum Direction *d);
|
||||
|
||||
#endif
|
||||
1137
2015/include/uthash.h
Normal file
1137
2015/include/uthash.h
Normal file
File diff suppressed because it is too large
Load Diff
1
2015/input/01
Normal file
1
2015/input/01
Normal file
File diff suppressed because one or more lines are too long
1000
2015/input/02
Normal file
1000
2015/input/02
Normal file
File diff suppressed because it is too large
Load Diff
1
2015/input/03
Normal file
1
2015/input/03
Normal file
File diff suppressed because one or more lines are too long
1
2015/input/04
Normal file
1
2015/input/04
Normal file
@@ -0,0 +1 @@
|
||||
iwrupvqb
|
||||
1000
2015/input/05
Normal file
1000
2015/input/05
Normal file
File diff suppressed because it is too large
Load Diff
300
2015/input/06
Normal file
300
2015/input/06
Normal file
@@ -0,0 +1,300 @@
|
||||
turn on 489,959 through 759,964
|
||||
turn off 820,516 through 871,914
|
||||
turn off 427,423 through 929,502
|
||||
turn on 774,14 through 977,877
|
||||
turn on 410,146 through 864,337
|
||||
turn on 931,331 through 939,812
|
||||
turn off 756,53 through 923,339
|
||||
turn off 313,787 through 545,979
|
||||
turn off 12,823 through 102,934
|
||||
toggle 756,965 through 812,992
|
||||
turn off 743,684 through 789,958
|
||||
toggle 120,314 through 745,489
|
||||
toggle 692,845 through 866,994
|
||||
turn off 587,176 through 850,273
|
||||
turn off 674,321 through 793,388
|
||||
toggle 749,672 through 973,965
|
||||
turn on 943,30 through 990,907
|
||||
turn on 296,50 through 729,664
|
||||
turn on 212,957 through 490,987
|
||||
toggle 171,31 through 688,88
|
||||
turn off 991,989 through 994,998
|
||||
turn off 913,943 through 958,953
|
||||
turn off 278,258 through 367,386
|
||||
toggle 275,796 through 493,971
|
||||
turn off 70,873 through 798,923
|
||||
toggle 258,985 through 663,998
|
||||
turn on 601,259 through 831,486
|
||||
turn off 914,94 through 941,102
|
||||
turn off 558,161 through 994,647
|
||||
turn on 119,662 through 760,838
|
||||
toggle 378,775 through 526,852
|
||||
turn off 384,670 through 674,972
|
||||
turn off 249,41 through 270,936
|
||||
turn on 614,742 through 769,780
|
||||
turn on 427,70 through 575,441
|
||||
turn on 410,478 through 985,753
|
||||
turn off 619,46 through 931,342
|
||||
turn on 284,55 through 768,922
|
||||
turn off 40,592 through 728,685
|
||||
turn on 825,291 through 956,950
|
||||
turn on 147,843 through 592,909
|
||||
turn off 218,675 through 972,911
|
||||
toggle 249,291 through 350,960
|
||||
turn off 556,80 through 967,675
|
||||
toggle 609,148 through 968,279
|
||||
toggle 217,605 through 961,862
|
||||
toggle 407,177 through 548,910
|
||||
toggle 400,936 through 599,938
|
||||
turn off 721,101 through 925,455
|
||||
turn on 268,631 through 735,814
|
||||
toggle 549,969 through 612,991
|
||||
toggle 553,268 through 689,432
|
||||
turn off 817,668 through 889,897
|
||||
toggle 801,544 through 858,556
|
||||
toggle 615,729 through 832,951
|
||||
turn off 427,477 through 958,948
|
||||
turn on 164,49 through 852,946
|
||||
turn on 542,449 through 774,776
|
||||
turn off 923,196 through 980,446
|
||||
toggle 90,310 through 718,846
|
||||
turn off 657,215 through 744,252
|
||||
turn off 800,239 through 811,712
|
||||
turn on 502,90 through 619,760
|
||||
toggle 649,512 through 862,844
|
||||
turn off 334,903 through 823,935
|
||||
turn off 630,233 through 839,445
|
||||
turn on 713,67 through 839,865
|
||||
turn on 932,50 through 982,411
|
||||
turn off 480,729 through 984,910
|
||||
turn on 100,219 through 796,395
|
||||
turn on 758,108 through 850,950
|
||||
turn off 427,276 through 439,938
|
||||
turn on 178,284 through 670,536
|
||||
toggle 540,27 through 625,102
|
||||
turn off 906,722 through 936,948
|
||||
toggle 345,418 through 859,627
|
||||
toggle 175,775 through 580,781
|
||||
toggle 863,28 through 929,735
|
||||
turn off 824,858 through 905,973
|
||||
toggle 752,312 through 863,425
|
||||
turn on 985,716 through 988,852
|
||||
turn off 68,504 through 763,745
|
||||
toggle 76,209 through 810,720
|
||||
turn off 657,607 through 676,664
|
||||
toggle 596,869 through 896,921
|
||||
turn off 915,411 through 968,945
|
||||
turn off 368,39 through 902,986
|
||||
turn on 11,549 through 393,597
|
||||
turn off 842,893 through 976,911
|
||||
toggle 274,106 through 581,329
|
||||
toggle 406,403 through 780,950
|
||||
toggle 408,988 through 500,994
|
||||
toggle 217,73 through 826,951
|
||||
turn on 917,872 through 961,911
|
||||
toggle 394,34 through 510,572
|
||||
toggle 424,603 through 583,626
|
||||
toggle 106,159 through 755,738
|
||||
turn off 244,610 through 472,709
|
||||
turn on 350,265 through 884,690
|
||||
turn on 688,184 through 928,280
|
||||
toggle 279,443 through 720,797
|
||||
turn off 615,493 through 888,610
|
||||
toggle 118,413 through 736,632
|
||||
turn on 798,782 through 829,813
|
||||
turn off 250,934 through 442,972
|
||||
turn on 68,503 through 400,949
|
||||
toggle 297,482 through 313,871
|
||||
toggle 710,3 through 839,859
|
||||
turn on 125,300 through 546,888
|
||||
toggle 482,39 through 584,159
|
||||
turn off 536,89 through 765,962
|
||||
turn on 530,518 through 843,676
|
||||
turn on 994,467 through 994,676
|
||||
turn on 623,628 through 744,927
|
||||
toggle 704,912 through 837,983
|
||||
turn on 154,364 through 517,412
|
||||
toggle 344,409 through 780,524
|
||||
turn off 578,740 through 725,879
|
||||
turn on 251,933 through 632,957
|
||||
turn on 827,705 through 971,789
|
||||
toggle 191,282 through 470,929
|
||||
toggle 324,525 through 446,867
|
||||
toggle 534,343 through 874,971
|
||||
toggle 550,650 through 633,980
|
||||
toggle 837,404 through 881,915
|
||||
toggle 338,881 through 845,905
|
||||
turn on 469,462 through 750,696
|
||||
turn on 741,703 through 892,870
|
||||
turn off 570,215 through 733,562
|
||||
turn on 445,576 through 870,775
|
||||
turn on 466,747 through 554,878
|
||||
turn off 820,453 through 868,712
|
||||
turn off 892,706 through 938,792
|
||||
turn off 300,238 through 894,746
|
||||
turn off 306,44 through 457,444
|
||||
turn off 912,569 through 967,963
|
||||
toggle 109,756 through 297,867
|
||||
turn on 37,546 through 41,951
|
||||
turn on 321,637 through 790,910
|
||||
toggle 66,50 through 579,301
|
||||
toggle 933,221 through 933,791
|
||||
turn on 486,676 through 878,797
|
||||
turn on 417,231 through 556,317
|
||||
toggle 904,468 through 981,873
|
||||
turn on 417,675 through 749,712
|
||||
turn on 692,371 through 821,842
|
||||
toggle 324,73 through 830,543
|
||||
turn on 912,490 through 977,757
|
||||
turn off 634,872 through 902,949
|
||||
toggle 266,779 through 870,798
|
||||
turn on 772,982 through 990,996
|
||||
turn off 607,46 through 798,559
|
||||
turn on 295,602 through 963,987
|
||||
turn on 657,86 through 944,742
|
||||
turn off 334,639 through 456,821
|
||||
turn off 997,667 through 997,670
|
||||
turn off 725,832 through 951,945
|
||||
turn off 30,120 through 952,984
|
||||
turn on 860,965 through 917,976
|
||||
toggle 471,997 through 840,998
|
||||
turn off 319,307 through 928,504
|
||||
toggle 823,631 through 940,908
|
||||
toggle 969,984 through 981,993
|
||||
turn off 691,319 through 865,954
|
||||
toggle 911,926 through 938,929
|
||||
turn on 953,937 through 968,991
|
||||
toggle 914,643 through 975,840
|
||||
turn on 266,982 through 436,996
|
||||
turn off 101,896 through 321,932
|
||||
turn off 193,852 through 751,885
|
||||
turn off 576,532 through 863,684
|
||||
turn on 761,456 through 940,783
|
||||
turn on 20,290 through 398,933
|
||||
turn off 435,335 through 644,652
|
||||
turn on 830,569 through 905,770
|
||||
turn off 630,517 through 905,654
|
||||
turn on 664,53 through 886,976
|
||||
toggle 275,416 through 408,719
|
||||
turn on 370,621 through 515,793
|
||||
turn on 483,373 through 654,749
|
||||
turn on 656,786 through 847,928
|
||||
turn off 532,752 through 945,974
|
||||
toggle 301,150 through 880,792
|
||||
turn off 951,488 through 958,952
|
||||
turn on 207,729 through 882,828
|
||||
toggle 694,532 through 973,961
|
||||
toggle 676,639 through 891,802
|
||||
turn off 653,6 through 905,519
|
||||
toggle 391,109 through 418,312
|
||||
turn on 877,423 through 957,932
|
||||
turn on 340,145 through 563,522
|
||||
turn off 978,467 through 988,895
|
||||
turn off 396,418 through 420,885
|
||||
turn off 31,308 through 816,316
|
||||
turn on 107,675 through 758,824
|
||||
turn on 61,82 through 789,876
|
||||
turn on 750,743 through 754,760
|
||||
toggle 88,733 through 736,968
|
||||
turn off 754,349 through 849,897
|
||||
toggle 157,50 through 975,781
|
||||
turn off 230,231 through 865,842
|
||||
turn off 516,317 through 630,329
|
||||
turn off 697,820 through 829,903
|
||||
turn on 218,250 through 271,732
|
||||
toggle 56,167 through 404,431
|
||||
toggle 626,891 through 680,927
|
||||
toggle 370,207 through 791,514
|
||||
toggle 860,74 through 949,888
|
||||
turn on 416,527 through 616,541
|
||||
turn off 745,449 through 786,908
|
||||
turn on 485,554 through 689,689
|
||||
turn on 586,62 through 693,141
|
||||
toggle 506,759 through 768,829
|
||||
turn on 473,109 through 929,166
|
||||
turn on 760,617 through 773,789
|
||||
toggle 595,683 through 618,789
|
||||
turn off 210,775 through 825,972
|
||||
toggle 12,426 through 179,982
|
||||
turn on 774,539 through 778,786
|
||||
turn on 102,498 through 121,807
|
||||
turn off 706,897 through 834,965
|
||||
turn off 678,529 through 824,627
|
||||
turn on 7,765 through 615,870
|
||||
turn off 730,872 through 974,943
|
||||
turn off 595,626 through 836,711
|
||||
turn off 215,424 through 841,959
|
||||
toggle 341,780 through 861,813
|
||||
toggle 507,503 through 568,822
|
||||
turn on 252,603 through 349,655
|
||||
toggle 93,521 through 154,834
|
||||
turn on 565,682 through 951,954
|
||||
turn on 544,318 through 703,418
|
||||
toggle 756,953 through 891,964
|
||||
turn on 531,123 through 856,991
|
||||
turn on 148,315 through 776,559
|
||||
turn off 925,835 through 963,971
|
||||
turn on 895,944 through 967,964
|
||||
turn off 102,527 through 650,747
|
||||
toggle 626,105 through 738,720
|
||||
turn off 160,75 through 384,922
|
||||
toggle 813,724 through 903,941
|
||||
turn on 207,107 through 982,849
|
||||
toggle 750,505 through 961,697
|
||||
toggle 105,410 through 885,819
|
||||
turn on 226,104 through 298,283
|
||||
turn off 224,604 through 508,762
|
||||
turn on 477,368 through 523,506
|
||||
turn off 477,901 through 627,936
|
||||
turn off 887,131 through 889,670
|
||||
turn on 896,994 through 938,999
|
||||
toggle 401,580 through 493,728
|
||||
toggle 987,184 through 991,205
|
||||
turn on 821,643 through 882,674
|
||||
toggle 784,940 through 968,959
|
||||
turn off 251,293 through 274,632
|
||||
turn off 339,840 through 341,844
|
||||
turn off 675,351 through 675,836
|
||||
toggle 918,857 through 944,886
|
||||
toggle 70,253 through 918,736
|
||||
turn off 612,604 through 772,680
|
||||
turn off 277,40 through 828,348
|
||||
toggle 692,139 through 698,880
|
||||
toggle 124,446 through 883,453
|
||||
toggle 969,932 through 990,945
|
||||
toggle 855,692 through 993,693
|
||||
toggle 722,472 through 887,899
|
||||
toggle 978,149 through 985,442
|
||||
toggle 837,540 through 916,889
|
||||
turn off 612,2 through 835,82
|
||||
toggle 560,767 through 878,856
|
||||
turn on 461,734 through 524,991
|
||||
toggle 206,824 through 976,912
|
||||
turn on 826,610 through 879,892
|
||||
turn on 577,699 through 956,933
|
||||
turn off 9,250 through 50,529
|
||||
turn off 77,657 through 817,677
|
||||
turn on 68,419 through 86,426
|
||||
turn on 991,720 through 992,784
|
||||
turn on 668,20 through 935,470
|
||||
turn off 133,418 through 613,458
|
||||
turn off 487,286 through 540,328
|
||||
toggle 247,874 through 840,955
|
||||
toggle 301,808 through 754,970
|
||||
turn off 34,194 through 578,203
|
||||
turn off 451,49 through 492,921
|
||||
turn on 907,256 through 912,737
|
||||
turn off 479,305 through 702,587
|
||||
turn on 545,583 through 732,749
|
||||
toggle 11,16 through 725,868
|
||||
turn on 965,343 through 986,908
|
||||
turn on 674,953 through 820,965
|
||||
toggle 398,147 through 504,583
|
||||
turn off 778,194 through 898,298
|
||||
turn on 179,140 through 350,852
|
||||
turn off 241,118 through 530,832
|
||||
turn off 41,447 through 932,737
|
||||
turn off 820,663 through 832,982
|
||||
turn on 550,460 through 964,782
|
||||
turn on 31,760 through 655,892
|
||||
toggle 628,958 through 811,992
|
||||
339
2015/input/07
Normal file
339
2015/input/07
Normal file
@@ -0,0 +1,339 @@
|
||||
bn RSHIFT 2 -> bo
|
||||
lf RSHIFT 1 -> ly
|
||||
fo RSHIFT 3 -> fq
|
||||
cj OR cp -> cq
|
||||
fo OR fz -> ga
|
||||
t OR s -> u
|
||||
lx -> a
|
||||
NOT ax -> ay
|
||||
he RSHIFT 2 -> hf
|
||||
lf OR lq -> lr
|
||||
lr AND lt -> lu
|
||||
dy OR ej -> ek
|
||||
1 AND cx -> cy
|
||||
hb LSHIFT 1 -> hv
|
||||
1 AND bh -> bi
|
||||
ih AND ij -> ik
|
||||
c LSHIFT 1 -> t
|
||||
ea AND eb -> ed
|
||||
km OR kn -> ko
|
||||
NOT bw -> bx
|
||||
ci OR ct -> cu
|
||||
NOT p -> q
|
||||
lw OR lv -> lx
|
||||
NOT lo -> lp
|
||||
fp OR fv -> fw
|
||||
o AND q -> r
|
||||
dh AND dj -> dk
|
||||
ap LSHIFT 1 -> bj
|
||||
bk LSHIFT 1 -> ce
|
||||
NOT ii -> ij
|
||||
gh OR gi -> gj
|
||||
kk RSHIFT 1 -> ld
|
||||
lc LSHIFT 1 -> lw
|
||||
lb OR la -> lc
|
||||
1 AND am -> an
|
||||
gn AND gp -> gq
|
||||
lf RSHIFT 3 -> lh
|
||||
e OR f -> g
|
||||
lg AND lm -> lo
|
||||
ci RSHIFT 1 -> db
|
||||
cf LSHIFT 1 -> cz
|
||||
bn RSHIFT 1 -> cg
|
||||
et AND fe -> fg
|
||||
is OR it -> iu
|
||||
kw AND ky -> kz
|
||||
ck AND cl -> cn
|
||||
bj OR bi -> bk
|
||||
gj RSHIFT 1 -> hc
|
||||
iu AND jf -> jh
|
||||
NOT bs -> bt
|
||||
kk OR kv -> kw
|
||||
ks AND ku -> kv
|
||||
hz OR ik -> il
|
||||
b RSHIFT 1 -> v
|
||||
iu RSHIFT 1 -> jn
|
||||
fo RSHIFT 5 -> fr
|
||||
be AND bg -> bh
|
||||
ga AND gc -> gd
|
||||
hf OR hl -> hm
|
||||
ld OR le -> lf
|
||||
as RSHIFT 5 -> av
|
||||
fm OR fn -> fo
|
||||
hm AND ho -> hp
|
||||
lg OR lm -> ln
|
||||
NOT kx -> ky
|
||||
kk RSHIFT 3 -> km
|
||||
ek AND em -> en
|
||||
NOT ft -> fu
|
||||
NOT jh -> ji
|
||||
jn OR jo -> jp
|
||||
gj AND gu -> gw
|
||||
d AND j -> l
|
||||
et RSHIFT 1 -> fm
|
||||
jq OR jw -> jx
|
||||
ep OR eo -> eq
|
||||
lv LSHIFT 15 -> lz
|
||||
NOT ey -> ez
|
||||
jp RSHIFT 2 -> jq
|
||||
eg AND ei -> ej
|
||||
NOT dm -> dn
|
||||
jp AND ka -> kc
|
||||
as AND bd -> bf
|
||||
fk OR fj -> fl
|
||||
dw OR dx -> dy
|
||||
lj AND ll -> lm
|
||||
ec AND ee -> ef
|
||||
fq AND fr -> ft
|
||||
NOT kp -> kq
|
||||
ki OR kj -> kk
|
||||
cz OR cy -> da
|
||||
as RSHIFT 3 -> au
|
||||
an LSHIFT 15 -> ar
|
||||
fj LSHIFT 15 -> fn
|
||||
1 AND fi -> fj
|
||||
he RSHIFT 1 -> hx
|
||||
lf RSHIFT 2 -> lg
|
||||
kf LSHIFT 15 -> kj
|
||||
dz AND ef -> eh
|
||||
ib OR ic -> id
|
||||
lf RSHIFT 5 -> li
|
||||
bp OR bq -> br
|
||||
NOT gs -> gt
|
||||
fo RSHIFT 1 -> gh
|
||||
bz AND cb -> cc
|
||||
ea OR eb -> ec
|
||||
lf AND lq -> ls
|
||||
NOT l -> m
|
||||
hz RSHIFT 3 -> ib
|
||||
NOT di -> dj
|
||||
NOT lk -> ll
|
||||
jp RSHIFT 3 -> jr
|
||||
jp RSHIFT 5 -> js
|
||||
NOT bf -> bg
|
||||
s LSHIFT 15 -> w
|
||||
eq LSHIFT 1 -> fk
|
||||
jl OR jk -> jm
|
||||
hz AND ik -> im
|
||||
dz OR ef -> eg
|
||||
1 AND gy -> gz
|
||||
la LSHIFT 15 -> le
|
||||
br AND bt -> bu
|
||||
NOT cn -> co
|
||||
v OR w -> x
|
||||
d OR j -> k
|
||||
1 AND gd -> ge
|
||||
ia OR ig -> ih
|
||||
NOT go -> gp
|
||||
NOT ed -> ee
|
||||
jq AND jw -> jy
|
||||
et OR fe -> ff
|
||||
aw AND ay -> az
|
||||
ff AND fh -> fi
|
||||
ir LSHIFT 1 -> jl
|
||||
gg LSHIFT 1 -> ha
|
||||
x RSHIFT 2 -> y
|
||||
db OR dc -> dd
|
||||
bl OR bm -> bn
|
||||
ib AND ic -> ie
|
||||
x RSHIFT 3 -> z
|
||||
lh AND li -> lk
|
||||
ce OR cd -> cf
|
||||
NOT bb -> bc
|
||||
hi AND hk -> hl
|
||||
NOT gb -> gc
|
||||
1 AND r -> s
|
||||
fw AND fy -> fz
|
||||
fb AND fd -> fe
|
||||
1 AND en -> eo
|
||||
z OR aa -> ab
|
||||
bi LSHIFT 15 -> bm
|
||||
hg OR hh -> hi
|
||||
kh LSHIFT 1 -> lb
|
||||
cg OR ch -> ci
|
||||
1 AND kz -> la
|
||||
gf OR ge -> gg
|
||||
gj RSHIFT 2 -> gk
|
||||
dd RSHIFT 2 -> de
|
||||
NOT ls -> lt
|
||||
lh OR li -> lj
|
||||
jr OR js -> jt
|
||||
au AND av -> ax
|
||||
0 -> c
|
||||
he AND hp -> hr
|
||||
id AND if -> ig
|
||||
et RSHIFT 5 -> ew
|
||||
bp AND bq -> bs
|
||||
e AND f -> h
|
||||
ly OR lz -> ma
|
||||
1 AND lu -> lv
|
||||
NOT jd -> je
|
||||
ha OR gz -> hb
|
||||
dy RSHIFT 1 -> er
|
||||
iu RSHIFT 2 -> iv
|
||||
NOT hr -> hs
|
||||
as RSHIFT 1 -> bl
|
||||
kk RSHIFT 2 -> kl
|
||||
b AND n -> p
|
||||
ln AND lp -> lq
|
||||
cj AND cp -> cr
|
||||
dl AND dn -> do
|
||||
ci RSHIFT 2 -> cj
|
||||
as OR bd -> be
|
||||
ge LSHIFT 15 -> gi
|
||||
hz RSHIFT 5 -> ic
|
||||
dv LSHIFT 1 -> ep
|
||||
kl OR kr -> ks
|
||||
gj OR gu -> gv
|
||||
he RSHIFT 5 -> hh
|
||||
NOT fg -> fh
|
||||
hg AND hh -> hj
|
||||
b OR n -> o
|
||||
jk LSHIFT 15 -> jo
|
||||
gz LSHIFT 15 -> hd
|
||||
cy LSHIFT 15 -> dc
|
||||
kk RSHIFT 5 -> kn
|
||||
ci RSHIFT 3 -> ck
|
||||
at OR az -> ba
|
||||
iu RSHIFT 3 -> iw
|
||||
ko AND kq -> kr
|
||||
NOT eh -> ei
|
||||
aq OR ar -> as
|
||||
iy AND ja -> jb
|
||||
dd RSHIFT 3 -> df
|
||||
bn RSHIFT 3 -> bp
|
||||
1 AND cc -> cd
|
||||
at AND az -> bb
|
||||
x OR ai -> aj
|
||||
kk AND kv -> kx
|
||||
ao OR an -> ap
|
||||
dy RSHIFT 3 -> ea
|
||||
x RSHIFT 1 -> aq
|
||||
eu AND fa -> fc
|
||||
kl AND kr -> kt
|
||||
ia AND ig -> ii
|
||||
df AND dg -> di
|
||||
NOT fx -> fy
|
||||
k AND m -> n
|
||||
bn RSHIFT 5 -> bq
|
||||
km AND kn -> kp
|
||||
dt LSHIFT 15 -> dx
|
||||
hz RSHIFT 2 -> ia
|
||||
aj AND al -> am
|
||||
cd LSHIFT 15 -> ch
|
||||
hc OR hd -> he
|
||||
he RSHIFT 3 -> hg
|
||||
bn OR by -> bz
|
||||
NOT kt -> ku
|
||||
z AND aa -> ac
|
||||
NOT ak -> al
|
||||
cu AND cw -> cx
|
||||
NOT ie -> if
|
||||
dy RSHIFT 2 -> dz
|
||||
ip LSHIFT 15 -> it
|
||||
de OR dk -> dl
|
||||
au OR av -> aw
|
||||
jg AND ji -> jj
|
||||
ci AND ct -> cv
|
||||
dy RSHIFT 5 -> eb
|
||||
hx OR hy -> hz
|
||||
eu OR fa -> fb
|
||||
gj RSHIFT 3 -> gl
|
||||
fo AND fz -> gb
|
||||
1 AND jj -> jk
|
||||
jp OR ka -> kb
|
||||
de AND dk -> dm
|
||||
ex AND ez -> fa
|
||||
df OR dg -> dh
|
||||
iv OR jb -> jc
|
||||
x RSHIFT 5 -> aa
|
||||
NOT hj -> hk
|
||||
NOT im -> in
|
||||
fl LSHIFT 1 -> gf
|
||||
hu LSHIFT 15 -> hy
|
||||
iq OR ip -> ir
|
||||
iu RSHIFT 5 -> ix
|
||||
NOT fc -> fd
|
||||
NOT el -> em
|
||||
ck OR cl -> cm
|
||||
et RSHIFT 3 -> ev
|
||||
hw LSHIFT 1 -> iq
|
||||
ci RSHIFT 5 -> cl
|
||||
iv AND jb -> jd
|
||||
dd RSHIFT 5 -> dg
|
||||
as RSHIFT 2 -> at
|
||||
NOT jy -> jz
|
||||
af AND ah -> ai
|
||||
1 AND ds -> dt
|
||||
jx AND jz -> ka
|
||||
da LSHIFT 1 -> du
|
||||
fs AND fu -> fv
|
||||
jp RSHIFT 1 -> ki
|
||||
iw AND ix -> iz
|
||||
iw OR ix -> iy
|
||||
eo LSHIFT 15 -> es
|
||||
ev AND ew -> ey
|
||||
ba AND bc -> bd
|
||||
fp AND fv -> fx
|
||||
jc AND je -> jf
|
||||
et RSHIFT 2 -> eu
|
||||
kg OR kf -> kh
|
||||
iu OR jf -> jg
|
||||
er OR es -> et
|
||||
fo RSHIFT 2 -> fp
|
||||
NOT ca -> cb
|
||||
bv AND bx -> by
|
||||
u LSHIFT 1 -> ao
|
||||
cm AND co -> cp
|
||||
y OR ae -> af
|
||||
bn AND by -> ca
|
||||
1 AND ke -> kf
|
||||
jt AND jv -> jw
|
||||
fq OR fr -> fs
|
||||
dy AND ej -> el
|
||||
NOT kc -> kd
|
||||
ev OR ew -> ex
|
||||
dd OR do -> dp
|
||||
NOT cv -> cw
|
||||
gr AND gt -> gu
|
||||
dd RSHIFT 1 -> dw
|
||||
NOT gw -> gx
|
||||
NOT iz -> ja
|
||||
1 AND io -> ip
|
||||
NOT ag -> ah
|
||||
b RSHIFT 5 -> f
|
||||
NOT cr -> cs
|
||||
kb AND kd -> ke
|
||||
jr AND js -> ju
|
||||
cq AND cs -> ct
|
||||
il AND in -> io
|
||||
NOT ju -> jv
|
||||
du OR dt -> dv
|
||||
dd AND do -> dq
|
||||
b RSHIFT 2 -> d
|
||||
jm LSHIFT 1 -> kg
|
||||
NOT dq -> dr
|
||||
bo OR bu -> bv
|
||||
gk OR gq -> gr
|
||||
he OR hp -> hq
|
||||
NOT h -> i
|
||||
hf AND hl -> hn
|
||||
gv AND gx -> gy
|
||||
x AND ai -> ak
|
||||
bo AND bu -> bw
|
||||
hq AND hs -> ht
|
||||
hz RSHIFT 1 -> is
|
||||
gj RSHIFT 5 -> gm
|
||||
g AND i -> j
|
||||
gk AND gq -> gs
|
||||
dp AND dr -> ds
|
||||
b RSHIFT 3 -> e
|
||||
gl AND gm -> go
|
||||
gl OR gm -> gn
|
||||
y AND ae -> ag
|
||||
hv OR hu -> hw
|
||||
1674 -> b
|
||||
ab AND ad -> ae
|
||||
NOT ac -> ad
|
||||
1 AND ht -> hu
|
||||
NOT hn -> ho
|
||||
300
2015/input/08
Normal file
300
2015/input/08
Normal file
@@ -0,0 +1,300 @@
|
||||
"sjdivfriyaaqa\xd2v\"k\"mpcu\"yyu\"en"
|
||||
"vcqc"
|
||||
"zbcwgmbpijcxu\"yins\"sfxn"
|
||||
"yumngprx"
|
||||
"bbdj"
|
||||
"czbggabkzo\"wsnw\"voklp\"s"
|
||||
"acwt"
|
||||
"aqttwnsohbzian\"evtllfxwkog\"cunzw"
|
||||
"ugvsgfv"
|
||||
"xlnillibxg"
|
||||
"kexh\"pmi"
|
||||
"syvugow"
|
||||
"m\"ktqnw"
|
||||
"yrbajyndte\\rm"
|
||||
"f\"kak\x70sn\xc4kjri"
|
||||
"yxthr"
|
||||
"alvumfsjni\"kohg"
|
||||
"trajs\x5brom\xf1yoijaumkem\"\"tahlzs"
|
||||
"\"oedr\"pwdbnnrc"
|
||||
"qsmzhnx\""
|
||||
"\"msoytqimx\\tbklqz"
|
||||
"mjdfcgwdshrehgs"
|
||||
"\"rivyxahf\""
|
||||
"ciagc\x04bp"
|
||||
"xkfc"
|
||||
"xrgcripdu\x4c\xc4gszjhrvumvz\"mngbirb"
|
||||
"gvmae\"yiiujoqvr\"mkxmgbbut\"u"
|
||||
"ih"
|
||||
"ncrqlejehs"
|
||||
"mkno\x43pcfdukmemycp"
|
||||
"uanzoqxkpsksbvdnkji\"feamp"
|
||||
"axoufpnbx\\ao\x61pfj\"b"
|
||||
"dz\\ztawzdjy"
|
||||
"ihne\"enumvswypgf"
|
||||
"\"dgazthrphbshdo\\vuqoiy\""
|
||||
"dlnmptzt\\zahwpylc\\b\"gmslrqysk"
|
||||
"mhxznyzcp"
|
||||
"rebr\"amvxw\x5fmbnfpkkeghlntavj"
|
||||
"lades\x47ncgdof\"\"jmbbk"
|
||||
"dwxuis\xa5wdkx\\z\"admgnoddpgkt\\zs"
|
||||
"g\\k\x27qsl\x34hwfglcdxqbeclt\xca\\"
|
||||
"lhyjky\\m\"pvnm\\xmynpxnlhndmahjl"
|
||||
"c\"uxabbgorrpprw\"xas\\vefkxioqpt"
|
||||
"rfrvjxpevcmma\x71gtfipo"
|
||||
"fgh\"kcwoqwfnjgdlzfclprg\"q"
|
||||
"onxnwykrba"
|
||||
"hkkg\x60f\"tjzsanpvarzgkfipl"
|
||||
"\"aintes\"ofq\"juiaqlqxmvpe\\a"
|
||||
"wiyczzs\"ciwk"
|
||||
"mfqeu"
|
||||
"v\xe1z\x7ftzalmvdmncfivrax\\rjwq"
|
||||
"k\"vtg"
|
||||
"exhrtdugeml\xf0"
|
||||
"behnchkpld"
|
||||
"mhgxy\"mfcrg\xc5gnp\"\"osqhj"
|
||||
"rlvjy"
|
||||
"awe"
|
||||
"ctwy"
|
||||
"vt"
|
||||
"\x54t"
|
||||
"zugfmmfomz"
|
||||
"cv\"cvcvfaada\x04fsuqjinbfh\xa9cq\xd2c\"d"
|
||||
"oj"
|
||||
"xazanf\"wbmcrn"
|
||||
"\\\\zkisyjpbzandqikqjqvee"
|
||||
"dpsnbzdwnxk\\v"
|
||||
"sj\"tuupr\\oyoh"
|
||||
"myvkgnw\x81q\xaaokt\\emgejbsyvxcl\\\xee"
|
||||
"ejeuqvunjcirdkkpt\"nlns"
|
||||
"twmlvwxyvfyqqzu"
|
||||
"\"xwtzdp\x98qkcis\"dm\\\"ep\"xyykq"
|
||||
"vvcq\\expok"
|
||||
"wgukjfanjgpdjb"
|
||||
"\"mjcjajnxy\\dcpc"
|
||||
"wdvgnecw\\ab\x44klceduzgsvu"
|
||||
"dqtqkukr\"iacngufbqkdpxlwjjt"
|
||||
"\"xj\"\x66qofsqzkoah"
|
||||
"nptiwwsqdep"
|
||||
"gsnlxql\x30mjl"
|
||||
"yeezwokjwrhelny\""
|
||||
"bjauamn\\izpmzqqasid"
|
||||
"tvjdbkn\"tiziw\x82r"
|
||||
"w"
|
||||
"xwoakbbnjnypnaa\xa9wft\"slrmoqkl"
|
||||
"vwxtnlvaaasyruykgygrvpiopzygf\"vq"
|
||||
"qdancvnvmhlmpj\\isdxs"
|
||||
"xzc\\elw"
|
||||
"b\"wxeqvy\"qf\"g\xcaoklsucwicyw\"dovr"
|
||||
"yomlvvjdbngz\"rly\"afr"
|
||||
"bfb\"x\"aweuwbwmoa\x13\"t\"zhr"
|
||||
"\"dmfoxb\"qvpjzzhykt\xd2\"\"ryhxi"
|
||||
"psqef\"yu\\qiflie\"\x79w"
|
||||
"arzewkej\"lqmh\\sayyusxxo\\"
|
||||
"vuvvp"
|
||||
"hc\"lg\x6bcpupsewzklai\"l"
|
||||
"cjdfygc\"auorqybnuqghsh\x10"
|
||||
"j"
|
||||
"wqjexk\"eyq\\lbroqhk\\dqzsqk"
|
||||
"dws\"ru\"dvxfiwapif\"oqwzmle"
|
||||
"agcykg\\jt\\vzklqjvknoe"
|
||||
"kksd\"jmslja\\z\"y\\b\xaagpyojct"
|
||||
"nnpipxufvbfpoz\"jno"
|
||||
"dtw"
|
||||
"xlolvtahvgqkx\\dgnhj\\spsclpcxv\\"
|
||||
"mxea\\mbjpi"
|
||||
"lgbotkk\"zmxh\\\\qji\"jszulnjsxkqf"
|
||||
"lwckmhwhx\"gmftlb\x91am"
|
||||
"xxdxqyxth"
|
||||
"\"lmqhwkjxmvayxy"
|
||||
"tf"
|
||||
"qy"
|
||||
"wdqmwxdztax\"m\"\x09\x11xdxmfwxmtqgwvf"
|
||||
"\xcbnazlf\"ghziknszmsrahaf"
|
||||
"e\x6aupmzhxlvwympgjjpdvo\"kylfa"
|
||||
"\x81vhtlillb\xactgoatva"
|
||||
"dvnlgr"
|
||||
"f"
|
||||
"xg\xfacwizsadgeclm"
|
||||
"vnnrzbtw\"\\prod\\djbyppngwayy\""
|
||||
"lrt\xf4jahwvfz"
|
||||
"aqpnjtom\"ymkak\\dadfybqrso\\fwv"
|
||||
"gz\"aac\"mrbk\"ktommrojraqh"
|
||||
"wycamwoecsftepfnlcdkm"
|
||||
"nrhddblbuzlqsl\x9cben"
|
||||
"vckxhyqkmqmdseazcykrbysm"
|
||||
"sil\xbbtevmt\"gvrvybui\"faw\"j"
|
||||
"cjex\\tp\x45pzf"
|
||||
"asjobvtxszfodgf\"ibftg"
|
||||
"gkyjyjdrxdcllnh\"sjcibenrdnxv"
|
||||
"oswsdpjyxpbwnqbcpl\"yrdvs\\zq"
|
||||
"\"\"tyowzc\\fycbp\"jbwrbvgui"
|
||||
"cbpcabqkdgzmpgcwjtrchxp"
|
||||
"iyrzfh\x45gw\"fdlfpiaap\x31xqq"
|
||||
"evgksznidz"
|
||||
"b\\w\\"
|
||||
"loufizbiy\x57aim\"bgk"
|
||||
"qjfyk"
|
||||
"g\"anmloghvgr\x07zwqougqhdz"
|
||||
"usbbmwcxd\\bdgg"
|
||||
"htitqcpczml"
|
||||
"eke\\cqvpexqqk\"to\"tqmljrpn\xe6lji\""
|
||||
"g\xd2ifdsej"
|
||||
"h\"sk\"haajajpagtcqnzrfqn\xe6btzo"
|
||||
"wfkuffdxlvm\\cvlyzlbyunclhmpp"
|
||||
"myaavh\"spue"
|
||||
"hqvez\x68d\"eo\"eaioh"
|
||||
"s\"qd\"oyxxcglcdnuhk"
|
||||
"ilqvar"
|
||||
"srh"
|
||||
"puuifxrfmpc\"bvalwi\x2blu\\"
|
||||
"yywlbutufzysbncw\\nqsfbhpz\"mngjq"
|
||||
"zbl\\jfcuop"
|
||||
"hjdouiragzvxsqkreup\\"
|
||||
"qi"
|
||||
"ckx\\funlj\xa7ahi"
|
||||
"k"
|
||||
"ufrcnh\"ajteit"
|
||||
"cqv\"bgjozjj\x60x\xa8yhvmdvutchjotyuz"
|
||||
"hkuiet\"oku\x8cfhumfpasl"
|
||||
"\"\\sbe\x4d"
|
||||
"vhknazqt"
|
||||
"eyyizvzcahgflvmoowvs\\jhvygci"
|
||||
"kki\x3ewcefkgtjap\"xtpxh\"lzepoqj"
|
||||
"wvtk"
|
||||
"\"ynet"
|
||||
"zh\\obk\"otagx\x59txfzf"
|
||||
"ocowhxlx\xe6zqg\x63wx\\tclkhq\\vmaze"
|
||||
"w\"cf"
|
||||
"qpniprnrzrnvykghqnalr"
|
||||
"jctcqra\"\x05dhlydpqamorqjsijt\\xjdgt"
|
||||
"sig"
|
||||
"qhlbidbflwxe\"xljbwls\x20vht"
|
||||
"irmrebfla\xefsg\"j"
|
||||
"nep"
|
||||
"hjuvsqlizeqobepf"
|
||||
"guzbcdp\"obyh"
|
||||
"\"mjagins\xf9tqykaxy\""
|
||||
"knvsdnmtr\"zervsb"
|
||||
"hzuy"
|
||||
"zza\"k\"buapb\\elm\xfeya"
|
||||
"lrqar\"dfqwkaaqifig\"uixjsz"
|
||||
"\"azuo\x40rmnlhhluwsbbdb\x32pk\\yu\"pbcf"
|
||||
"dplkdyty"
|
||||
"rfoyciebwlwphcycmguc"
|
||||
"ivnmmiemhgytmlprq\\eh"
|
||||
"lhkyzaaothfdhmbpsqd\\yyw"
|
||||
"tnlzifupcjcaj"
|
||||
"\\qiyirsdrfpmu\\\x15xusifaag"
|
||||
"\\lcomf\\s"
|
||||
"uramjivcirjhqcqcg"
|
||||
"kkbaklbxfxikffnuhtu\xc6t\"d"
|
||||
"n\xefai"
|
||||
"\"toy\"bnbpevuzoc\"muywq\"gz\"grbm"
|
||||
"\"muu\\wt"
|
||||
"\\srby\"ee"
|
||||
"erf\"gvw\"swfppf"
|
||||
"pbqcgtn\"iuianhcdazfvmidn\\nslhxdf"
|
||||
"uxbp"
|
||||
"up\\mgrcyaegiwmjufn"
|
||||
"nulscgcewj\\dvoyvhetdegzhs\""
|
||||
"masv\"k\\rzrb"
|
||||
"qtx\x79d\"xdxmbxrvhj"
|
||||
"fid\\otpkgjlh\"qgsvexrckqtn\xf4"
|
||||
"tagzu"
|
||||
"bvl\\\"noseec"
|
||||
"\\xgicuuh"
|
||||
"w\"a\"npemf"
|
||||
"sxp"
|
||||
"nsmpktic\x8awxftscdcvijjobnq\"gjd"
|
||||
"uks\"\"jxvyvfezz\"aynxoev\"cuoav"
|
||||
"m"
|
||||
"lkvokj"
|
||||
"vkfam\"yllr\"q\x92o\x4ebecnvhshhqe\\"
|
||||
"efdxcjkjverw"
|
||||
"lmqzadwhfdgmep\x02tzfcbgrbfekhat"
|
||||
"cpbk\x9azqegbpluczssouop\x36ztpuoxsw"
|
||||
"cqwoczxdd\"erdjka"
|
||||
"cwvqnjgbw\\fxdlby"
|
||||
"mvtm"
|
||||
"lt\"bbqzpumplkg"
|
||||
"ntd\xeeuwweucnuuslqfzfq"
|
||||
"y\xabl\"dbebxjrlbmuoo\\\x1au"
|
||||
"qjoqx\\a"
|
||||
"pu\"ekdnfpmly\xbago\""
|
||||
"fjhhdy"
|
||||
"arl"
|
||||
"xcywisim\"bwuwf\"\"raepeawwjub"
|
||||
"pbe"
|
||||
"dbnqfpzyaumxtqnd\xc5dcqrkwyop"
|
||||
"ojv\x40vtkwgkqepm\x8bzft\\vedrry"
|
||||
"wggqkfbwqumsgajqwphjec\"mstxpwz"
|
||||
"zjkbem"
|
||||
"icpfqxbelxazlls"
|
||||
"pvpqs\\abcmtyielugfgcv\"tjxapxqxnx"
|
||||
"oqddwlvmtv\"\x39lyybylfb\"jmngnpjrdw"
|
||||
"gisgbve"
|
||||
"\"aglg"
|
||||
"y\"\"ss\xafvhxlrjv"
|
||||
"qbgqjsra"
|
||||
"ihshbjgqpdcljpmdwdprwloy"
|
||||
"djja\\wcdn\"svkrgpqn\"uz\"hc\x43hj"
|
||||
"cbjm"
|
||||
"pnn"
|
||||
"pqvh\"noh"
|
||||
"\"\\fdktlp"
|
||||
"ncea"
|
||||
"pqgzphiyy"
|
||||
"\xbedovhxuipaohlcvkwtxwmpz\"ckaif\"r"
|
||||
"arjuzbjowqciunfwgxtph\"vlhy\"n"
|
||||
"c"
|
||||
"nrpdxunulgudqzlhtae"
|
||||
"iefheu\"uru\""
|
||||
"aqijysxuijud\"np\\opbichhudil\xbesum"
|
||||
"pfpevmtstl\"lde\"bzr\"vspdxs"
|
||||
"vparfbdjwvzsocpnzhp"
|
||||
"g\x4ffxaarafrsjthq\\\xc1rw"
|
||||
"ng\\rqx\\gwpzucbh\xafl"
|
||||
"rw\"nf\\dna"
|
||||
"jkkeahxurxla\\g\xb3czrlsyimmwcwthr"
|
||||
"twaailoypu\"oas\"kpuuyedlaw\\\xb0vzt"
|
||||
"hznex\\gdiqvtugi"
|
||||
"imdibsunjeswhk"
|
||||
"ta\\icileuzpxro\"cfmv\"mzp"
|
||||
"coykr\x57luiysucfaflmilhlehmvzeiepo"
|
||||
"u\x3dfh\xd4yt"
|
||||
"piw\x1bz\"eowy\"vfk\"wqiekw"
|
||||
"gan\"y"
|
||||
"p\"bevidoazcznr\"hddxuuq\""
|
||||
"bwzucczznutbxe"
|
||||
"z\"viqgyqjisior\\iecosmjbknol"
|
||||
"dmlpcglcfkfsctxydjvayhymv\x3c\\gp"
|
||||
"bfvkqrintbbvgfv"
|
||||
"xlzntrgdck\"cprc\xadczyarbznqmuhxyuh"
|
||||
"uqdxnuwioc\"kdytxq\\ig"
|
||||
"xrafmucpmfi"
|
||||
"vr\"hltmfrge"
|
||||
"eonf\"nt\\wtcnsocs"
|
||||
"j\xb7xoslyjeyjksplkqixncgkylkw"
|
||||
"njw\"pefgfbez\x9axshdmplxzquqe"
|
||||
"di\x58bvptfsafirpc"
|
||||
"l\x1fkco"
|
||||
"x"
|
||||
"mprndo\"n"
|
||||
"psegit"
|
||||
"svbdnkkuuqs\"sqxu\"oqcyz\"aizashk"
|
||||
"cwkljukxer\\\"\\nff\"esjwiyaoy"
|
||||
"ilxrkgbjjxpvhdtq\"cpiuoofdnkpp"
|
||||
"hlngi\"ulxep\\qohtmqnqjb\"rkgerho"
|
||||
"gxws\"bcgm\"p"
|
||||
"bv\"mds\\zhfusiepgrz\\b\x32fscdzz"
|
||||
"l\xfampwtme\x69qvxnx\"\"\xc4jruuymjxrpsv"
|
||||
"qqmxhrn"
|
||||
"xziq\\\x18ybyv\x9am\"neacoqjzytertisysza"
|
||||
"aqcbvlvcrzceeyx\\j\"\"x"
|
||||
"yjuhhb"
|
||||
"\x5em\"squulpy"
|
||||
"dpbntplgmwb"
|
||||
"utsgfkm\\vbftjknlktpthoeo"
|
||||
"ccxjgiocmuhf\"ycnh"
|
||||
"lltj\"kbbxi"
|
||||
28
2015/input/09
Normal file
28
2015/input/09
Normal file
@@ -0,0 +1,28 @@
|
||||
Faerun to Tristram = 65
|
||||
Faerun to Tambi = 129
|
||||
Faerun to Norrath = 144
|
||||
Faerun to Snowdin = 71
|
||||
Faerun to Straylight = 137
|
||||
Faerun to AlphaCentauri = 3
|
||||
Faerun to Arbre = 149
|
||||
Tristram to Tambi = 63
|
||||
Tristram to Norrath = 4
|
||||
Tristram to Snowdin = 105
|
||||
Tristram to Straylight = 125
|
||||
Tristram to AlphaCentauri = 55
|
||||
Tristram to Arbre = 14
|
||||
Tambi to Norrath = 68
|
||||
Tambi to Snowdin = 52
|
||||
Tambi to Straylight = 65
|
||||
Tambi to AlphaCentauri = 22
|
||||
Tambi to Arbre = 143
|
||||
Norrath to Snowdin = 8
|
||||
Norrath to Straylight = 23
|
||||
Norrath to AlphaCentauri = 136
|
||||
Norrath to Arbre = 115
|
||||
Snowdin to Straylight = 101
|
||||
Snowdin to AlphaCentauri = 84
|
||||
Snowdin to Arbre = 96
|
||||
Straylight to AlphaCentauri = 107
|
||||
Straylight to Arbre = 14
|
||||
AlphaCentauri to Arbre = 46
|
||||
1
2015/input/10
Normal file
1
2015/input/10
Normal file
@@ -0,0 +1 @@
|
||||
1321131112
|
||||
1
2015/input/11
Normal file
1
2015/input/11
Normal file
@@ -0,0 +1 @@
|
||||
vzbxkghb
|
||||
1
2015/input/12
Normal file
1
2015/input/12
Normal file
File diff suppressed because one or more lines are too long
56
2015/input/13
Normal file
56
2015/input/13
Normal file
@@ -0,0 +1,56 @@
|
||||
Alice would gain 2 happiness units by sitting next to Bob.
|
||||
Alice would gain 26 happiness units by sitting next to Carol.
|
||||
Alice would lose 82 happiness units by sitting next to David.
|
||||
Alice would lose 75 happiness units by sitting next to Eric.
|
||||
Alice would gain 42 happiness units by sitting next to Frank.
|
||||
Alice would gain 38 happiness units by sitting next to George.
|
||||
Alice would gain 39 happiness units by sitting next to Mallory.
|
||||
Bob would gain 40 happiness units by sitting next to Alice.
|
||||
Bob would lose 61 happiness units by sitting next to Carol.
|
||||
Bob would lose 15 happiness units by sitting next to David.
|
||||
Bob would gain 63 happiness units by sitting next to Eric.
|
||||
Bob would gain 41 happiness units by sitting next to Frank.
|
||||
Bob would gain 30 happiness units by sitting next to George.
|
||||
Bob would gain 87 happiness units by sitting next to Mallory.
|
||||
Carol would lose 35 happiness units by sitting next to Alice.
|
||||
Carol would lose 99 happiness units by sitting next to Bob.
|
||||
Carol would lose 51 happiness units by sitting next to David.
|
||||
Carol would gain 95 happiness units by sitting next to Eric.
|
||||
Carol would gain 90 happiness units by sitting next to Frank.
|
||||
Carol would lose 16 happiness units by sitting next to George.
|
||||
Carol would gain 94 happiness units by sitting next to Mallory.
|
||||
David would gain 36 happiness units by sitting next to Alice.
|
||||
David would lose 18 happiness units by sitting next to Bob.
|
||||
David would lose 65 happiness units by sitting next to Carol.
|
||||
David would lose 18 happiness units by sitting next to Eric.
|
||||
David would lose 22 happiness units by sitting next to Frank.
|
||||
David would gain 2 happiness units by sitting next to George.
|
||||
David would gain 42 happiness units by sitting next to Mallory.
|
||||
Eric would lose 65 happiness units by sitting next to Alice.
|
||||
Eric would gain 24 happiness units by sitting next to Bob.
|
||||
Eric would gain 100 happiness units by sitting next to Carol.
|
||||
Eric would gain 51 happiness units by sitting next to David.
|
||||
Eric would gain 21 happiness units by sitting next to Frank.
|
||||
Eric would gain 55 happiness units by sitting next to George.
|
||||
Eric would lose 44 happiness units by sitting next to Mallory.
|
||||
Frank would lose 48 happiness units by sitting next to Alice.
|
||||
Frank would gain 91 happiness units by sitting next to Bob.
|
||||
Frank would gain 8 happiness units by sitting next to Carol.
|
||||
Frank would lose 66 happiness units by sitting next to David.
|
||||
Frank would gain 97 happiness units by sitting next to Eric.
|
||||
Frank would lose 9 happiness units by sitting next to George.
|
||||
Frank would lose 92 happiness units by sitting next to Mallory.
|
||||
George would lose 44 happiness units by sitting next to Alice.
|
||||
George would lose 25 happiness units by sitting next to Bob.
|
||||
George would gain 17 happiness units by sitting next to Carol.
|
||||
George would gain 92 happiness units by sitting next to David.
|
||||
George would lose 92 happiness units by sitting next to Eric.
|
||||
George would gain 18 happiness units by sitting next to Frank.
|
||||
George would gain 97 happiness units by sitting next to Mallory.
|
||||
Mallory would gain 92 happiness units by sitting next to Alice.
|
||||
Mallory would lose 96 happiness units by sitting next to Bob.
|
||||
Mallory would lose 51 happiness units by sitting next to Carol.
|
||||
Mallory would lose 81 happiness units by sitting next to David.
|
||||
Mallory would gain 31 happiness units by sitting next to Eric.
|
||||
Mallory would lose 73 happiness units by sitting next to Frank.
|
||||
Mallory would lose 89 happiness units by sitting next to George.
|
||||
9
2015/input/14
Normal file
9
2015/input/14
Normal file
@@ -0,0 +1,9 @@
|
||||
Vixen can fly 19 km/s for 7 seconds, but then must rest for 124 seconds.
|
||||
Rudolph can fly 3 km/s for 15 seconds, but then must rest for 28 seconds.
|
||||
Donner can fly 19 km/s for 9 seconds, but then must rest for 164 seconds.
|
||||
Blitzen can fly 19 km/s for 9 seconds, but then must rest for 158 seconds.
|
||||
Comet can fly 13 km/s for 7 seconds, but then must rest for 82 seconds.
|
||||
Cupid can fly 25 km/s for 6 seconds, but then must rest for 145 seconds.
|
||||
Dasher can fly 14 km/s for 3 seconds, but then must rest for 38 seconds.
|
||||
Dancer can fly 3 km/s for 16 seconds, but then must rest for 37 seconds.
|
||||
Prancer can fly 25 km/s for 6 seconds, but then must rest for 143 seconds.
|
||||
4
2015/input/15
Normal file
4
2015/input/15
Normal file
@@ -0,0 +1,4 @@
|
||||
Sprinkles: capacity 2, durability 0, flavor -2, texture 0, calories 3
|
||||
Butterscotch: capacity 0, durability 5, flavor -3, texture 0, calories 3
|
||||
Chocolate: capacity 0, durability 0, flavor 5, texture -1, calories 8
|
||||
Candy: capacity 0, durability -1, flavor 0, texture 5, calories 8
|
||||
500
2015/input/16
Normal file
500
2015/input/16
Normal file
@@ -0,0 +1,500 @@
|
||||
Sue 1: cars: 9, akitas: 3, goldfish: 0
|
||||
Sue 2: akitas: 9, children: 3, samoyeds: 9
|
||||
Sue 3: trees: 6, cars: 6, children: 4
|
||||
Sue 4: trees: 4, vizslas: 4, goldfish: 9
|
||||
Sue 5: akitas: 9, vizslas: 7, cars: 5
|
||||
Sue 6: vizslas: 6, goldfish: 6, akitas: 3
|
||||
Sue 7: pomeranians: 5, samoyeds: 0, perfumes: 10
|
||||
Sue 8: cars: 10, pomeranians: 7, goldfish: 8
|
||||
Sue 9: trees: 2, vizslas: 7, samoyeds: 6
|
||||
Sue 10: perfumes: 5, pomeranians: 4, children: 9
|
||||
Sue 11: vizslas: 5, perfumes: 8, cars: 10
|
||||
Sue 12: children: 10, cars: 6, perfumes: 5
|
||||
Sue 13: cats: 4, samoyeds: 7, pomeranians: 8
|
||||
Sue 14: perfumes: 6, goldfish: 10, children: 7
|
||||
Sue 15: perfumes: 4, pomeranians: 3, cars: 6
|
||||
Sue 16: perfumes: 7, cars: 9, pomeranians: 6
|
||||
Sue 17: goldfish: 3, cars: 6, vizslas: 7
|
||||
Sue 18: perfumes: 6, cars: 7, goldfish: 3
|
||||
Sue 19: trees: 0, akitas: 3, pomeranians: 8
|
||||
Sue 20: goldfish: 6, trees: 2, akitas: 6
|
||||
Sue 21: pomeranians: 9, akitas: 9, samoyeds: 9
|
||||
Sue 22: vizslas: 2, cars: 9, perfumes: 5
|
||||
Sue 23: goldfish: 10, samoyeds: 8, children: 9
|
||||
Sue 24: akitas: 4, goldfish: 1, vizslas: 5
|
||||
Sue 25: goldfish: 10, trees: 8, perfumes: 6
|
||||
Sue 26: vizslas: 5, akitas: 8, trees: 1
|
||||
Sue 27: trees: 3, cars: 6, perfumes: 2
|
||||
Sue 28: goldfish: 8, trees: 7, akitas: 10
|
||||
Sue 29: children: 5, trees: 1, goldfish: 10
|
||||
Sue 30: vizslas: 3, perfumes: 8, akitas: 3
|
||||
Sue 31: cars: 6, children: 10, perfumes: 7
|
||||
Sue 32: cars: 10, perfumes: 3, goldfish: 10
|
||||
Sue 33: perfumes: 9, vizslas: 3, akitas: 4
|
||||
Sue 34: perfumes: 10, vizslas: 7, children: 8
|
||||
Sue 35: cars: 5, perfumes: 5, vizslas: 9
|
||||
Sue 36: trees: 9, cars: 9, akitas: 7
|
||||
Sue 37: samoyeds: 9, perfumes: 2, cars: 10
|
||||
Sue 38: akitas: 7, cars: 5, trees: 5
|
||||
Sue 39: goldfish: 8, trees: 9, cars: 10
|
||||
Sue 40: trees: 0, cats: 1, pomeranians: 1
|
||||
Sue 41: pomeranians: 6, perfumes: 9, samoyeds: 1
|
||||
Sue 42: vizslas: 6, akitas: 3, pomeranians: 1
|
||||
Sue 43: vizslas: 2, perfumes: 3, pomeranians: 6
|
||||
Sue 44: akitas: 5, pomeranians: 0, vizslas: 10
|
||||
Sue 45: vizslas: 4, goldfish: 1, cars: 5
|
||||
Sue 46: cars: 4, vizslas: 8, cats: 0
|
||||
Sue 47: cats: 5, children: 8, pomeranians: 2
|
||||
Sue 48: vizslas: 3, perfumes: 6, cats: 0
|
||||
Sue 49: akitas: 7, perfumes: 0, trees: 7
|
||||
Sue 50: trees: 4, akitas: 10, vizslas: 2
|
||||
Sue 51: goldfish: 10, cars: 9, trees: 4
|
||||
Sue 52: cars: 5, children: 9, perfumes: 0
|
||||
Sue 53: vizslas: 5, cars: 3, cats: 8
|
||||
Sue 54: cars: 5, akitas: 1, goldfish: 10
|
||||
Sue 55: akitas: 10, vizslas: 2, cars: 6
|
||||
Sue 56: cats: 6, trees: 0, cars: 4
|
||||
Sue 57: vizslas: 1, akitas: 1, samoyeds: 7
|
||||
Sue 58: samoyeds: 6, vizslas: 1, akitas: 7
|
||||
Sue 59: akitas: 9, cars: 8, vizslas: 1
|
||||
Sue 60: cars: 6, vizslas: 7, goldfish: 0
|
||||
Sue 61: pomeranians: 5, akitas: 6, vizslas: 2
|
||||
Sue 62: samoyeds: 2, cats: 8, goldfish: 7
|
||||
Sue 63: vizslas: 10, goldfish: 7, samoyeds: 9
|
||||
Sue 64: perfumes: 2, trees: 1, akitas: 6
|
||||
Sue 65: cars: 8, perfumes: 10, vizslas: 9
|
||||
Sue 66: akitas: 8, vizslas: 8, perfumes: 8
|
||||
Sue 67: goldfish: 7, cars: 9, samoyeds: 9
|
||||
Sue 68: perfumes: 2, children: 7, akitas: 1
|
||||
Sue 69: perfumes: 7, vizslas: 9, akitas: 1
|
||||
Sue 70: samoyeds: 3, vizslas: 1, trees: 1
|
||||
Sue 71: vizslas: 8, goldfish: 7, trees: 9
|
||||
Sue 72: goldfish: 8, cars: 6, trees: 9
|
||||
Sue 73: perfumes: 5, cars: 10, samoyeds: 7
|
||||
Sue 74: pomeranians: 4, perfumes: 3, cars: 5
|
||||
Sue 75: samoyeds: 1, perfumes: 1, pomeranians: 1
|
||||
Sue 76: goldfish: 4, cats: 6, akitas: 7
|
||||
Sue 77: perfumes: 5, akitas: 4, vizslas: 8
|
||||
Sue 78: perfumes: 4, cats: 3, children: 4
|
||||
Sue 79: vizslas: 5, pomeranians: 9, samoyeds: 7
|
||||
Sue 80: cars: 3, samoyeds: 5, pomeranians: 7
|
||||
Sue 81: vizslas: 2, samoyeds: 4, perfumes: 2
|
||||
Sue 82: trees: 1, akitas: 10, vizslas: 9
|
||||
Sue 83: vizslas: 0, akitas: 2, samoyeds: 5
|
||||
Sue 84: perfumes: 5, vizslas: 7, children: 8
|
||||
Sue 85: cats: 3, children: 2, trees: 0
|
||||
Sue 86: cars: 3, perfumes: 2, goldfish: 2
|
||||
Sue 87: trees: 1, akitas: 7, vizslas: 0
|
||||
Sue 88: trees: 1, akitas: 2, samoyeds: 1
|
||||
Sue 89: cars: 4, vizslas: 8, akitas: 1
|
||||
Sue 90: perfumes: 5, cats: 3, vizslas: 0
|
||||
Sue 91: samoyeds: 7, cats: 6, goldfish: 8
|
||||
Sue 92: samoyeds: 10, cats: 0, cars: 7
|
||||
Sue 93: cars: 6, akitas: 7, samoyeds: 2
|
||||
Sue 94: perfumes: 0, goldfish: 6, trees: 9
|
||||
Sue 95: cars: 6, pomeranians: 2, samoyeds: 8
|
||||
Sue 96: cars: 2, trees: 9, samoyeds: 4
|
||||
Sue 97: goldfish: 5, trees: 1, children: 0
|
||||
Sue 98: akitas: 9, goldfish: 7, children: 6
|
||||
Sue 99: goldfish: 9, akitas: 0, pomeranians: 0
|
||||
Sue 100: samoyeds: 6, children: 8, vizslas: 5
|
||||
Sue 101: vizslas: 6, cars: 5, goldfish: 4
|
||||
Sue 102: vizslas: 6, akitas: 2, perfumes: 6
|
||||
Sue 103: samoyeds: 3, akitas: 7, children: 4
|
||||
Sue 104: cars: 3, perfumes: 10, cats: 6
|
||||
Sue 105: vizslas: 9, pomeranians: 0, cars: 1
|
||||
Sue 106: cats: 6, samoyeds: 8, pomeranians: 5
|
||||
Sue 107: cars: 7, trees: 4, akitas: 10
|
||||
Sue 108: perfumes: 3, vizslas: 1, goldfish: 9
|
||||
Sue 109: trees: 6, cars: 8, goldfish: 5
|
||||
Sue 110: pomeranians: 2, children: 1, vizslas: 7
|
||||
Sue 111: akitas: 0, vizslas: 8, cars: 0
|
||||
Sue 112: goldfish: 3, vizslas: 6, akitas: 2
|
||||
Sue 113: akitas: 10, pomeranians: 7, perfumes: 7
|
||||
Sue 114: cars: 10, cats: 2, vizslas: 8
|
||||
Sue 115: akitas: 8, trees: 1, vizslas: 2
|
||||
Sue 116: vizslas: 2, akitas: 7, perfumes: 1
|
||||
Sue 117: goldfish: 0, vizslas: 10, trees: 9
|
||||
Sue 118: trees: 3, cars: 0, goldfish: 0
|
||||
Sue 119: perfumes: 7, goldfish: 5, trees: 9
|
||||
Sue 120: children: 9, vizslas: 3, trees: 5
|
||||
Sue 121: vizslas: 1, goldfish: 7, akitas: 10
|
||||
Sue 122: perfumes: 1, cars: 6, trees: 1
|
||||
Sue 123: akitas: 2, vizslas: 0, goldfish: 7
|
||||
Sue 124: vizslas: 10, pomeranians: 7, akitas: 0
|
||||
Sue 125: perfumes: 4, cats: 5, vizslas: 2
|
||||
Sue 126: cars: 6, samoyeds: 8, akitas: 3
|
||||
Sue 127: trees: 9, goldfish: 7, akitas: 9
|
||||
Sue 128: cars: 8, trees: 0, perfumes: 2
|
||||
Sue 129: pomeranians: 7, vizslas: 2, perfumes: 6
|
||||
Sue 130: vizslas: 9, pomeranians: 3, trees: 6
|
||||
Sue 131: vizslas: 7, cars: 9, perfumes: 1
|
||||
Sue 132: akitas: 2, pomeranians: 9, vizslas: 7
|
||||
Sue 133: trees: 9, pomeranians: 10, samoyeds: 0
|
||||
Sue 134: children: 4, akitas: 10, perfumes: 4
|
||||
Sue 135: vizslas: 1, cats: 1, trees: 8
|
||||
Sue 136: samoyeds: 7, cars: 8, goldfish: 5
|
||||
Sue 137: perfumes: 0, children: 1, pomeranians: 10
|
||||
Sue 138: vizslas: 4, perfumes: 5, cars: 5
|
||||
Sue 139: trees: 2, perfumes: 8, goldfish: 0
|
||||
Sue 140: cars: 10, akitas: 5, goldfish: 7
|
||||
Sue 141: children: 4, trees: 3, goldfish: 8
|
||||
Sue 142: cars: 8, perfumes: 6, trees: 7
|
||||
Sue 143: akitas: 6, goldfish: 0, trees: 10
|
||||
Sue 144: akitas: 7, pomeranians: 10, perfumes: 10
|
||||
Sue 145: trees: 10, vizslas: 3, goldfish: 4
|
||||
Sue 146: samoyeds: 4, akitas: 3, perfumes: 6
|
||||
Sue 147: akitas: 8, perfumes: 2, pomeranians: 10
|
||||
Sue 148: cars: 2, perfumes: 0, goldfish: 8
|
||||
Sue 149: goldfish: 6, akitas: 7, perfumes: 6
|
||||
Sue 150: cars: 2, pomeranians: 5, perfumes: 4
|
||||
Sue 151: goldfish: 1, cars: 5, trees: 0
|
||||
Sue 152: pomeranians: 4, cars: 7, children: 1
|
||||
Sue 153: goldfish: 8, cars: 1, children: 10
|
||||
Sue 154: cars: 6, perfumes: 8, trees: 1
|
||||
Sue 155: akitas: 4, perfumes: 6, pomeranians: 2
|
||||
Sue 156: pomeranians: 5, cars: 4, akitas: 1
|
||||
Sue 157: cats: 5, cars: 9, goldfish: 8
|
||||
Sue 158: vizslas: 5, samoyeds: 1, children: 7
|
||||
Sue 159: vizslas: 1, perfumes: 3, akitas: 1
|
||||
Sue 160: goldfish: 10, pomeranians: 9, perfumes: 5
|
||||
Sue 161: samoyeds: 3, trees: 7, cars: 2
|
||||
Sue 162: cars: 2, pomeranians: 1, vizslas: 6
|
||||
Sue 163: vizslas: 3, perfumes: 5, akitas: 6
|
||||
Sue 164: vizslas: 1, trees: 0, akitas: 5
|
||||
Sue 165: vizslas: 5, cars: 6, pomeranians: 8
|
||||
Sue 166: cars: 10, perfumes: 2, trees: 9
|
||||
Sue 167: cars: 10, pomeranians: 6, perfumes: 4
|
||||
Sue 168: akitas: 7, trees: 10, goldfish: 7
|
||||
Sue 169: akitas: 1, perfumes: 10, cars: 10
|
||||
Sue 170: akitas: 5, samoyeds: 8, vizslas: 6
|
||||
Sue 171: children: 3, akitas: 2, vizslas: 3
|
||||
Sue 172: goldfish: 5, vizslas: 5, perfumes: 9
|
||||
Sue 173: perfumes: 5, goldfish: 10, trees: 5
|
||||
Sue 174: akitas: 5, vizslas: 2, children: 7
|
||||
Sue 175: perfumes: 5, cars: 7, samoyeds: 2
|
||||
Sue 176: cars: 8, vizslas: 10, akitas: 7
|
||||
Sue 177: perfumes: 7, children: 8, goldfish: 7
|
||||
Sue 178: cars: 1, pomeranians: 9, samoyeds: 0
|
||||
Sue 179: perfumes: 6, cars: 2, trees: 6
|
||||
Sue 180: trees: 3, vizslas: 7, children: 3
|
||||
Sue 181: vizslas: 8, samoyeds: 2, trees: 9
|
||||
Sue 182: perfumes: 3, cats: 1, children: 5
|
||||
Sue 183: akitas: 9, cats: 6, children: 3
|
||||
Sue 184: pomeranians: 9, cars: 6, perfumes: 8
|
||||
Sue 185: vizslas: 9, trees: 0, akitas: 9
|
||||
Sue 186: perfumes: 6, cars: 5, goldfish: 5
|
||||
Sue 187: perfumes: 4, cats: 7, vizslas: 2
|
||||
Sue 188: akitas: 7, cars: 4, children: 10
|
||||
Sue 189: akitas: 0, goldfish: 7, vizslas: 5
|
||||
Sue 190: akitas: 5, cars: 5, cats: 6
|
||||
Sue 191: cars: 6, children: 0, perfumes: 3
|
||||
Sue 192: cats: 2, perfumes: 10, goldfish: 7
|
||||
Sue 193: trees: 1, perfumes: 0, cars: 8
|
||||
Sue 194: perfumes: 9, children: 4, cats: 6
|
||||
Sue 195: akitas: 7, trees: 3, goldfish: 6
|
||||
Sue 196: goldfish: 8, cars: 8, samoyeds: 0
|
||||
Sue 197: cats: 0, akitas: 10, vizslas: 0
|
||||
Sue 198: goldfish: 1, perfumes: 3, cars: 8
|
||||
Sue 199: akitas: 10, vizslas: 5, samoyeds: 6
|
||||
Sue 200: pomeranians: 9, goldfish: 9, samoyeds: 7
|
||||
Sue 201: samoyeds: 0, goldfish: 7, akitas: 6
|
||||
Sue 202: vizslas: 0, goldfish: 2, akitas: 1
|
||||
Sue 203: goldfish: 3, children: 0, vizslas: 8
|
||||
Sue 204: cars: 8, trees: 2, perfumes: 2
|
||||
Sue 205: cars: 4, perfumes: 5, goldfish: 8
|
||||
Sue 206: vizslas: 3, trees: 2, akitas: 1
|
||||
Sue 207: cars: 7, goldfish: 5, trees: 1
|
||||
Sue 208: goldfish: 1, cars: 6, vizslas: 8
|
||||
Sue 209: cats: 4, trees: 1, children: 0
|
||||
Sue 210: cats: 10, children: 0, perfumes: 0
|
||||
Sue 211: cars: 4, pomeranians: 7, samoyeds: 5
|
||||
Sue 212: cars: 2, pomeranians: 10, trees: 1
|
||||
Sue 213: trees: 10, cats: 5, cars: 10
|
||||
Sue 214: perfumes: 5, trees: 1, vizslas: 1
|
||||
Sue 215: akitas: 10, vizslas: 8, samoyeds: 8
|
||||
Sue 216: vizslas: 2, cats: 5, pomeranians: 3
|
||||
Sue 217: akitas: 10, perfumes: 0, cats: 10
|
||||
Sue 218: trees: 8, cats: 5, vizslas: 2
|
||||
Sue 219: goldfish: 10, perfumes: 8, children: 2
|
||||
Sue 220: samoyeds: 9, trees: 8, vizslas: 7
|
||||
Sue 221: children: 7, trees: 6, cars: 6
|
||||
Sue 222: cats: 4, akitas: 5, pomeranians: 0
|
||||
Sue 223: trees: 8, goldfish: 2, perfumes: 8
|
||||
Sue 224: pomeranians: 9, cars: 8, akitas: 5
|
||||
Sue 225: akitas: 10, vizslas: 0, trees: 2
|
||||
Sue 226: akitas: 8, cats: 6, cars: 7
|
||||
Sue 227: trees: 1, akitas: 3, goldfish: 4
|
||||
Sue 228: pomeranians: 6, cats: 3, goldfish: 3
|
||||
Sue 229: trees: 10, perfumes: 3, vizslas: 7
|
||||
Sue 230: perfumes: 8, cars: 7, akitas: 0
|
||||
Sue 231: perfumes: 10, goldfish: 4, cars: 6
|
||||
Sue 232: goldfish: 7, trees: 3, cats: 2
|
||||
Sue 233: perfumes: 6, trees: 4, akitas: 4
|
||||
Sue 234: goldfish: 9, cats: 4, cars: 7
|
||||
Sue 235: pomeranians: 6, vizslas: 0, akitas: 6
|
||||
Sue 236: samoyeds: 5, cars: 5, children: 4
|
||||
Sue 237: vizslas: 10, cars: 4, goldfish: 4
|
||||
Sue 238: goldfish: 3, samoyeds: 7, akitas: 2
|
||||
Sue 239: cats: 8, children: 2, vizslas: 7
|
||||
Sue 240: cars: 9, perfumes: 4, trees: 9
|
||||
Sue 241: trees: 8, vizslas: 2, goldfish: 5
|
||||
Sue 242: cars: 6, trees: 3, vizslas: 3
|
||||
Sue 243: cats: 6, children: 7, cars: 4
|
||||
Sue 244: cats: 10, perfumes: 2, goldfish: 7
|
||||
Sue 245: akitas: 8, cats: 10, perfumes: 8
|
||||
Sue 246: vizslas: 8, akitas: 5, perfumes: 10
|
||||
Sue 247: goldfish: 2, vizslas: 5, akitas: 7
|
||||
Sue 248: akitas: 3, perfumes: 0, trees: 10
|
||||
Sue 249: cats: 4, vizslas: 5, pomeranians: 6
|
||||
Sue 250: children: 3, vizslas: 7, perfumes: 2
|
||||
Sue 251: cars: 0, pomeranians: 10, perfumes: 0
|
||||
Sue 252: akitas: 0, goldfish: 9, cars: 6
|
||||
Sue 253: perfumes: 7, cars: 4, samoyeds: 5
|
||||
Sue 254: akitas: 9, trees: 10, cars: 4
|
||||
Sue 255: samoyeds: 10, children: 6, akitas: 7
|
||||
Sue 256: trees: 8, goldfish: 8, perfumes: 8
|
||||
Sue 257: goldfish: 3, akitas: 2, perfumes: 6
|
||||
Sue 258: cats: 7, trees: 0, vizslas: 1
|
||||
Sue 259: perfumes: 7, cars: 7, akitas: 7
|
||||
Sue 260: goldfish: 0, vizslas: 0, samoyeds: 2
|
||||
Sue 261: vizslas: 2, children: 2, cats: 3
|
||||
Sue 262: vizslas: 2, pomeranians: 9, samoyeds: 3
|
||||
Sue 263: cats: 1, akitas: 3, vizslas: 1
|
||||
Sue 264: pomeranians: 10, trees: 2, goldfish: 7
|
||||
Sue 265: samoyeds: 5, trees: 7, perfumes: 4
|
||||
Sue 266: perfumes: 10, cars: 1, pomeranians: 3
|
||||
Sue 267: trees: 6, goldfish: 1, cars: 0
|
||||
Sue 268: cars: 6, samoyeds: 4, pomeranians: 5
|
||||
Sue 269: goldfish: 3, vizslas: 3, akitas: 3
|
||||
Sue 270: children: 5, cats: 0, cars: 4
|
||||
Sue 271: goldfish: 3, perfumes: 8, pomeranians: 7
|
||||
Sue 272: samoyeds: 6, cars: 7, perfumes: 10
|
||||
Sue 273: trees: 4, cars: 2, vizslas: 7
|
||||
Sue 274: samoyeds: 10, perfumes: 9, goldfish: 6
|
||||
Sue 275: cars: 4, trees: 2, perfumes: 7
|
||||
Sue 276: akitas: 3, perfumes: 9, cars: 9
|
||||
Sue 277: akitas: 8, vizslas: 2, cats: 6
|
||||
Sue 278: trees: 5, goldfish: 7, akitas: 3
|
||||
Sue 279: perfumes: 9, cars: 8, vizslas: 2
|
||||
Sue 280: trees: 3, vizslas: 0, children: 0
|
||||
Sue 281: cars: 7, trees: 2, cats: 5
|
||||
Sue 282: vizslas: 4, cars: 10, cats: 3
|
||||
Sue 283: akitas: 10, cats: 3, samoyeds: 9
|
||||
Sue 284: trees: 7, children: 5, goldfish: 6
|
||||
Sue 285: cars: 2, perfumes: 5, cats: 7
|
||||
Sue 286: samoyeds: 5, trees: 10, goldfish: 6
|
||||
Sue 287: goldfish: 10, perfumes: 4, trees: 7
|
||||
Sue 288: vizslas: 9, trees: 9, perfumes: 0
|
||||
Sue 289: trees: 4, goldfish: 9, vizslas: 8
|
||||
Sue 290: vizslas: 3, cars: 3, trees: 2
|
||||
Sue 291: goldfish: 2, akitas: 2, trees: 2
|
||||
Sue 292: children: 1, cars: 0, vizslas: 5
|
||||
Sue 293: trees: 5, akitas: 4, goldfish: 6
|
||||
Sue 294: akitas: 3, vizslas: 7, pomeranians: 5
|
||||
Sue 295: goldfish: 10, vizslas: 3, trees: 1
|
||||
Sue 296: cars: 2, trees: 1, akitas: 0
|
||||
Sue 297: akitas: 10, vizslas: 6, samoyeds: 2
|
||||
Sue 298: children: 5, trees: 1, samoyeds: 9
|
||||
Sue 299: perfumes: 9, trees: 6, vizslas: 1
|
||||
Sue 300: akitas: 7, pomeranians: 6, vizslas: 6
|
||||
Sue 301: cats: 7, children: 6, vizslas: 7
|
||||
Sue 302: trees: 2, vizslas: 7, samoyeds: 4
|
||||
Sue 303: goldfish: 0, samoyeds: 10, cars: 4
|
||||
Sue 304: pomeranians: 9, children: 3, vizslas: 5
|
||||
Sue 305: akitas: 8, vizslas: 4, cars: 5
|
||||
Sue 306: akitas: 0, perfumes: 2, pomeranians: 10
|
||||
Sue 307: akitas: 9, cars: 0, trees: 2
|
||||
Sue 308: vizslas: 10, goldfish: 8, akitas: 6
|
||||
Sue 309: trees: 0, cats: 6, perfumes: 2
|
||||
Sue 310: vizslas: 10, cars: 1, trees: 4
|
||||
Sue 311: goldfish: 8, perfumes: 6, cats: 3
|
||||
Sue 312: goldfish: 0, children: 1, akitas: 2
|
||||
Sue 313: pomeranians: 10, trees: 6, samoyeds: 6
|
||||
Sue 314: vizslas: 5, akitas: 4, pomeranians: 2
|
||||
Sue 315: goldfish: 7, trees: 0, akitas: 5
|
||||
Sue 316: goldfish: 4, vizslas: 5, cars: 7
|
||||
Sue 317: perfumes: 7, cats: 10, cars: 4
|
||||
Sue 318: samoyeds: 10, cars: 9, trees: 7
|
||||
Sue 319: pomeranians: 8, vizslas: 6, cars: 3
|
||||
Sue 320: cars: 4, cats: 9, akitas: 4
|
||||
Sue 321: cars: 6, trees: 2, perfumes: 6
|
||||
Sue 322: goldfish: 1, cats: 2, perfumes: 4
|
||||
Sue 323: akitas: 6, cats: 5, cars: 8
|
||||
Sue 324: cats: 4, vizslas: 9, akitas: 0
|
||||
Sue 325: children: 8, samoyeds: 9, trees: 4
|
||||
Sue 326: vizslas: 2, samoyeds: 10, perfumes: 7
|
||||
Sue 327: goldfish: 7, pomeranians: 4, akitas: 10
|
||||
Sue 328: perfumes: 8, cats: 4, akitas: 10
|
||||
Sue 329: trees: 0, cars: 9, goldfish: 3
|
||||
Sue 330: trees: 5, samoyeds: 7, perfumes: 8
|
||||
Sue 331: cars: 4, perfumes: 2, goldfish: 0
|
||||
Sue 332: vizslas: 4, pomeranians: 7, akitas: 1
|
||||
Sue 333: akitas: 4, goldfish: 3, perfumes: 0
|
||||
Sue 334: samoyeds: 3, akitas: 10, vizslas: 0
|
||||
Sue 335: goldfish: 1, akitas: 7, vizslas: 6
|
||||
Sue 336: perfumes: 1, goldfish: 1, pomeranians: 8
|
||||
Sue 337: children: 5, cars: 4, cats: 4
|
||||
Sue 338: vizslas: 5, cars: 10, cats: 3
|
||||
Sue 339: trees: 2, goldfish: 3, cars: 1
|
||||
Sue 340: trees: 10, goldfish: 6, perfumes: 2
|
||||
Sue 341: akitas: 5, trees: 6, cats: 3
|
||||
Sue 342: cars: 10, children: 8, goldfish: 0
|
||||
Sue 343: cats: 2, akitas: 0, pomeranians: 4
|
||||
Sue 344: perfumes: 1, vizslas: 3, cars: 3
|
||||
Sue 345: samoyeds: 8, cats: 5, perfumes: 8
|
||||
Sue 346: cars: 5, akitas: 10, trees: 2
|
||||
Sue 347: vizslas: 9, akitas: 9, cars: 3
|
||||
Sue 348: cars: 3, perfumes: 1, pomeranians: 9
|
||||
Sue 349: akitas: 1, cars: 4, perfumes: 0
|
||||
Sue 350: perfumes: 8, vizslas: 2, trees: 6
|
||||
Sue 351: pomeranians: 5, akitas: 9, cats: 8
|
||||
Sue 352: pomeranians: 8, vizslas: 3, goldfish: 10
|
||||
Sue 353: trees: 2, pomeranians: 0, goldfish: 6
|
||||
Sue 354: cats: 5, akitas: 7, goldfish: 6
|
||||
Sue 355: goldfish: 6, children: 4, trees: 10
|
||||
Sue 356: children: 1, trees: 3, akitas: 7
|
||||
Sue 357: trees: 2, samoyeds: 10, goldfish: 3
|
||||
Sue 358: samoyeds: 10, cats: 0, goldfish: 0
|
||||
Sue 359: perfumes: 3, children: 6, pomeranians: 1
|
||||
Sue 360: cars: 10, pomeranians: 1, samoyeds: 5
|
||||
Sue 361: samoyeds: 9, pomeranians: 7, perfumes: 6
|
||||
Sue 362: goldfish: 6, trees: 8, perfumes: 9
|
||||
Sue 363: samoyeds: 10, pomeranians: 9, children: 10
|
||||
Sue 364: perfumes: 3, goldfish: 7, cars: 9
|
||||
Sue 365: cats: 3, children: 4, samoyeds: 8
|
||||
Sue 366: trees: 0, cars: 10, vizslas: 10
|
||||
Sue 367: pomeranians: 10, children: 8, perfumes: 2
|
||||
Sue 368: cars: 5, vizslas: 0, samoyeds: 3
|
||||
Sue 369: trees: 1, goldfish: 8, cars: 8
|
||||
Sue 370: vizslas: 0, cars: 2, perfumes: 5
|
||||
Sue 371: trees: 2, cars: 3, vizslas: 8
|
||||
Sue 372: trees: 10, children: 9, cats: 1
|
||||
Sue 373: pomeranians: 3, perfumes: 1, vizslas: 0
|
||||
Sue 374: vizslas: 0, perfumes: 6, trees: 0
|
||||
Sue 375: vizslas: 7, pomeranians: 1, akitas: 10
|
||||
Sue 376: vizslas: 8, trees: 2, cars: 10
|
||||
Sue 377: perfumes: 9, cats: 5, goldfish: 5
|
||||
Sue 378: cats: 0, akitas: 10, perfumes: 9
|
||||
Sue 379: cars: 4, akitas: 1, trees: 1
|
||||
Sue 380: cars: 4, perfumes: 5, trees: 3
|
||||
Sue 381: goldfish: 3, akitas: 5, samoyeds: 9
|
||||
Sue 382: goldfish: 7, perfumes: 5, trees: 5
|
||||
Sue 383: akitas: 4, cats: 6, cars: 8
|
||||
Sue 384: children: 6, goldfish: 10, akitas: 7
|
||||
Sue 385: akitas: 7, vizslas: 5, perfumes: 10
|
||||
Sue 386: children: 7, vizslas: 10, akitas: 10
|
||||
Sue 387: goldfish: 6, akitas: 7, trees: 2
|
||||
Sue 388: vizslas: 6, trees: 1, akitas: 2
|
||||
Sue 389: cars: 5, vizslas: 3, akitas: 7
|
||||
Sue 390: vizslas: 4, cats: 8, perfumes: 7
|
||||
Sue 391: akitas: 3, trees: 0, children: 2
|
||||
Sue 392: cats: 7, cars: 3, children: 9
|
||||
Sue 393: trees: 10, vizslas: 3, goldfish: 7
|
||||
Sue 394: perfumes: 0, goldfish: 7, akitas: 4
|
||||
Sue 395: cats: 6, cars: 7, vizslas: 0
|
||||
Sue 396: vizslas: 4, perfumes: 6, goldfish: 5
|
||||
Sue 397: pomeranians: 8, trees: 1, akitas: 9
|
||||
Sue 398: goldfish: 7, pomeranians: 6, samoyeds: 9
|
||||
Sue 399: perfumes: 10, cars: 1, trees: 8
|
||||
Sue 400: trees: 0, goldfish: 9, children: 6
|
||||
Sue 401: trees: 1, cars: 6, pomeranians: 8
|
||||
Sue 402: perfumes: 9, cars: 0, vizslas: 10
|
||||
Sue 403: samoyeds: 4, akitas: 1, vizslas: 9
|
||||
Sue 404: perfumes: 0, trees: 2, cars: 4
|
||||
Sue 405: akitas: 0, perfumes: 5, samoyeds: 4
|
||||
Sue 406: akitas: 8, vizslas: 6, children: 2
|
||||
Sue 407: children: 1, trees: 8, goldfish: 10
|
||||
Sue 408: pomeranians: 4, trees: 10, cars: 9
|
||||
Sue 409: perfumes: 5, vizslas: 5, akitas: 4
|
||||
Sue 410: trees: 1, akitas: 10, vizslas: 6
|
||||
Sue 411: samoyeds: 0, goldfish: 9, perfumes: 7
|
||||
Sue 412: goldfish: 7, samoyeds: 10, trees: 1
|
||||
Sue 413: samoyeds: 0, pomeranians: 10, vizslas: 6
|
||||
Sue 414: children: 2, cars: 10, samoyeds: 2
|
||||
Sue 415: trees: 2, goldfish: 8, cars: 0
|
||||
Sue 416: samoyeds: 4, goldfish: 9, trees: 2
|
||||
Sue 417: trees: 8, akitas: 10, perfumes: 3
|
||||
Sue 418: samoyeds: 9, goldfish: 2, cars: 1
|
||||
Sue 419: akitas: 2, perfumes: 8, trees: 2
|
||||
Sue 420: children: 3, goldfish: 6, perfumes: 5
|
||||
Sue 421: akitas: 8, perfumes: 2, samoyeds: 6
|
||||
Sue 422: vizslas: 10, akitas: 4, pomeranians: 3
|
||||
Sue 423: cats: 8, perfumes: 3, trees: 4
|
||||
Sue 424: cars: 2, children: 4, pomeranians: 8
|
||||
Sue 425: pomeranians: 4, samoyeds: 2, goldfish: 4
|
||||
Sue 426: perfumes: 6, cars: 4, goldfish: 4
|
||||
Sue 427: akitas: 0, goldfish: 7, perfumes: 5
|
||||
Sue 428: perfumes: 4, cars: 3, akitas: 5
|
||||
Sue 429: trees: 0, vizslas: 0, goldfish: 1
|
||||
Sue 430: perfumes: 4, vizslas: 2, cars: 7
|
||||
Sue 431: goldfish: 7, pomeranians: 8, trees: 0
|
||||
Sue 432: goldfish: 7, children: 9, trees: 3
|
||||
Sue 433: akitas: 1, vizslas: 10, trees: 2
|
||||
Sue 434: perfumes: 2, cars: 4, goldfish: 10
|
||||
Sue 435: pomeranians: 6, vizslas: 9, trees: 1
|
||||
Sue 436: cars: 9, trees: 0, goldfish: 0
|
||||
Sue 437: trees: 1, goldfish: 1, vizslas: 8
|
||||
Sue 438: goldfish: 7, samoyeds: 8, children: 2
|
||||
Sue 439: children: 1, cats: 7, vizslas: 8
|
||||
Sue 440: cats: 2, pomeranians: 6, goldfish: 4
|
||||
Sue 441: perfumes: 7, cats: 3, vizslas: 6
|
||||
Sue 442: akitas: 4, samoyeds: 5, cars: 2
|
||||
Sue 443: akitas: 3, perfumes: 3, cats: 9
|
||||
Sue 444: perfumes: 10, akitas: 6, trees: 0
|
||||
Sue 445: cars: 5, children: 9, perfumes: 8
|
||||
Sue 446: vizslas: 10, cars: 3, perfumes: 5
|
||||
Sue 447: children: 9, perfumes: 1, cars: 10
|
||||
Sue 448: akitas: 0, goldfish: 8, trees: 3
|
||||
Sue 449: cars: 7, akitas: 8, children: 3
|
||||
Sue 450: cars: 4, akitas: 9, cats: 0
|
||||
Sue 451: perfumes: 4, samoyeds: 5, goldfish: 6
|
||||
Sue 452: perfumes: 10, akitas: 1, cars: 7
|
||||
Sue 453: trees: 1, goldfish: 3, vizslas: 6
|
||||
Sue 454: goldfish: 8, pomeranians: 6, trees: 10
|
||||
Sue 455: akitas: 5, vizslas: 8, goldfish: 10
|
||||
Sue 456: cats: 5, trees: 4, samoyeds: 0
|
||||
Sue 457: perfumes: 8, cars: 0, cats: 3
|
||||
Sue 458: akitas: 1, trees: 10, vizslas: 2
|
||||
Sue 459: vizslas: 6, akitas: 3, children: 10
|
||||
Sue 460: perfumes: 7, trees: 9, goldfish: 8
|
||||
Sue 461: children: 6, vizslas: 4, perfumes: 5
|
||||
Sue 462: vizslas: 6, akitas: 8, perfumes: 9
|
||||
Sue 463: goldfish: 8, cars: 4, trees: 10
|
||||
Sue 464: pomeranians: 8, cars: 5, vizslas: 0
|
||||
Sue 465: cats: 10, goldfish: 7, akitas: 1
|
||||
Sue 466: cats: 2, children: 1, cars: 6
|
||||
Sue 467: perfumes: 3, samoyeds: 6, cars: 0
|
||||
Sue 468: samoyeds: 10, pomeranians: 6, trees: 2
|
||||
Sue 469: children: 2, perfumes: 2, pomeranians: 4
|
||||
Sue 470: cats: 1, perfumes: 5, vizslas: 9
|
||||
Sue 471: vizslas: 5, perfumes: 2, akitas: 7
|
||||
Sue 472: samoyeds: 8, goldfish: 6, cats: 1
|
||||
Sue 473: goldfish: 10, perfumes: 9, cars: 4
|
||||
Sue 474: samoyeds: 0, cars: 4, vizslas: 4
|
||||
Sue 475: trees: 2, cars: 7, akitas: 8
|
||||
Sue 476: vizslas: 3, perfumes: 5, goldfish: 1
|
||||
Sue 477: cats: 7, cars: 4, trees: 1
|
||||
Sue 478: vizslas: 8, akitas: 3, goldfish: 0
|
||||
Sue 479: cars: 6, cats: 3, perfumes: 2
|
||||
Sue 480: goldfish: 1, children: 9, vizslas: 3
|
||||
Sue 481: pomeranians: 5, vizslas: 1, cars: 10
|
||||
Sue 482: children: 5, perfumes: 5, cats: 1
|
||||
Sue 483: perfumes: 2, goldfish: 7, trees: 6
|
||||
Sue 484: akitas: 2, goldfish: 4, perfumes: 10
|
||||
Sue 485: samoyeds: 3, goldfish: 0, akitas: 1
|
||||
Sue 486: trees: 8, vizslas: 9, goldfish: 0
|
||||
Sue 487: goldfish: 8, samoyeds: 0, trees: 0
|
||||
Sue 488: perfumes: 7, cars: 5, trees: 0
|
||||
Sue 489: vizslas: 3, pomeranians: 2, perfumes: 5
|
||||
Sue 490: cars: 5, perfumes: 5, akitas: 5
|
||||
Sue 491: children: 8, trees: 1, pomeranians: 4
|
||||
Sue 492: pomeranians: 0, akitas: 1, vizslas: 8
|
||||
Sue 493: akitas: 10, perfumes: 10, samoyeds: 8
|
||||
Sue 494: perfumes: 6, vizslas: 4, cats: 6
|
||||
Sue 495: children: 6, pomeranians: 5, samoyeds: 4
|
||||
Sue 496: vizslas: 1, trees: 5, akitas: 1
|
||||
Sue 497: vizslas: 10, perfumes: 10, pomeranians: 3
|
||||
Sue 498: samoyeds: 3, trees: 2, cars: 5
|
||||
Sue 499: cats: 6, children: 3, perfumes: 0
|
||||
Sue 500: pomeranians: 10, cats: 3, vizslas: 5
|
||||
20
2015/input/17
Normal file
20
2015/input/17
Normal file
@@ -0,0 +1,20 @@
|
||||
43
|
||||
3
|
||||
4
|
||||
10
|
||||
21
|
||||
44
|
||||
4
|
||||
6
|
||||
47
|
||||
41
|
||||
34
|
||||
17
|
||||
17
|
||||
44
|
||||
36
|
||||
31
|
||||
46
|
||||
9
|
||||
27
|
||||
38
|
||||
100
2015/input/18
Normal file
100
2015/input/18
Normal file
@@ -0,0 +1,100 @@
|
||||
####.#.##.###.#.#.##.#..###.#..#.#.#..##....#.###...##..###.##.#.#.#.##...##..#..#....#.#.##..#...##
|
||||
.##...##.##.######.#.#.##...#.#.#.#.#...#.##.#..#.#.####...#....#....###.#.#.#####....#.#.##.#.#.##.
|
||||
###.##..#..#####.......#.########...#.####.###....###.###...#...####.######.#..#####.#.###....####..
|
||||
....#..#..#....###.##.#.....##...#.###.#.#.#..#.#..##...#....#.##.###.#...######......#..#.#..####.#
|
||||
..###.####..#.#.#..##.#.#....#......#.##.##..##.#.....##.###.#..###...###.#.##..#.#..###....####.#.#
|
||||
#.#...#......####.#..##.####.#.#.#...##..###.##.#...#..#..###....#.#....#..##..#....##.....##.#...#.
|
||||
....##.#.#.#.##..##...##..##..#....#....###...####.###...##.#...#..#....##.....#..#.#####.###.###.##
|
||||
#...##..#.#..#....#..########.##....##..##.###..#.#..#..#.##.##.#..##..######....####..#####.#.###..
|
||||
.####...######.#..#.##.#.#..####...####.##.#.#......#...##....##..#...###..#.####......###......#.##
|
||||
.####.###..#..#####.##...###......#...###..#..##..#.#....##.##.#.##.###..#..#..###.#..#.#....####.##
|
||||
#..#..##.##.##.###.#.##.##.#.#.#....#....#.####.#.##...#####...###.#####.#.#.#....####..###..###..##
|
||||
#.##....#...########..##...#.#.##.......#.#..##...####...#.####.####..##...##.#....###.#.####...#.##
|
||||
#.#...##..#.##.##..##....#.....##.##.....#...###...#..#...####.##.####..#...##..##.##.##.##..##...##
|
||||
.#..###...#.#.....#######..##.###....##..#.##.#......###.##....#......###...#.##....#.....##......##
|
||||
..##....#.###...###..####.##..#..##.##......##.#.....#...#..#..##...###..#.####...#...#..##.#..##..#
|
||||
...#.#.#...#.#..#.##....##..#...#.##..#......#.#.....#####.##.#...#######.#.#..#.####..###.....###.#
|
||||
.#....#.#.##..####.#####..#.#######..#.##.###...##.##....##..###..#.##.###.......#....#..######.####
|
||||
#..#.##.##..#..#..##.####.#.#.#.#..#.##...#..######....#.##.#..##.##.######.###.###.###...#.....#.#.
|
||||
.#.......#...#.####.##...#####..##..#.#....##..#.#.#.####.#.##....#..##.##..#.###.....#.##.##.#.##.#
|
||||
#..##..##...#....#.##.#...#.#....#......####...##..#...##.##.#..#########..#..#.##.##..#.#.#######..
|
||||
#.......#####..###..######.#..##.#.#####..##...###...#.####.##...###..#.#.#####....#...#.##...#.#..#
|
||||
.##..#...#####.##.##......#...#.#.#.###.#.#.#...##.#..#....###.....#..#.#.###......#####.###.#..##.#
|
||||
.....###.#.#.#..##...#...###..#...#.#.##..###.##.#####.##..#.#.#.#.#####....#.#.#####...##.#..#.#.#.
|
||||
###...##.#..#.####..##.#..##.#.#.#...#.#..#..##..##..#.#.#.#.##...##..#..#.....#....#####.#.#.####.#
|
||||
....##....#.#.....#...###.#...##..##.##..#..###..##.###..#####..#...#####.##.#..#.#.#.###...####.###
|
||||
##.##.##.#...#..#...........##.##.###.#...###.####.#..#..#...#..#..####.#.###########..#.###.###.#.#
|
||||
##.##..##.####..###...##...#....###.###.#..##..#..#.###.#..####.#..##.#.#...#..#.#.##.##...#...#....
|
||||
..##...#.#.##....##...#.#.#......##.##.#.#.####.####....####.#.###.##.#.#..####..#..######..#..#.#..
|
||||
####.#.##.......##.###....##.#..####.#.#######..#...###..##.##..#...#...####........#.#..##...#....#
|
||||
#..#.#.....#..#.###..#.#...###..##...#.#..#.#.##..#...##.##.##.#.#.#..#.####.########....########..#
|
||||
#...#..##.##..#.#.#.##.##.##.#..#..#.##....#....###.#.###.#.#..#....#...##..#.....####...##.#..#...#
|
||||
.###...##...####....###.##.#..####...##.#.##.#..##..##....#....##.#...#..#..##..##..##.#...#...###..
|
||||
.#..##.#..##..####..#.#.##..###.#...#....##.###...#.###....#.#.#........#..#.#.#..##..#####..#..#.#.
|
||||
.#.##.....#..#...#.##.....#.##..#..#....#..#..#....#.##..##...#.##.##..##..#.#.#.##..####.##..#.#..#
|
||||
...###.#.....#...#.##.#.###.#...##..#.###..#..#..#.#..#...###.#.##.##.##.#.##.#####.#..#.#..#.#...##
|
||||
#.#.#.#.##.#.....##..#.###......##.#.##..#...#.########.##.###..#..#..##..##.#..##..###.#.###...#.#.
|
||||
..##...##...#...###.#..##..#..#..#.#.##..##......##..##.....##.....####..#.##......#..####...###..##
|
||||
##.......#..##....###...###......#.##.##....######..###.##...##.#...#...#.....#.###.#.#..#.##..#..#.
|
||||
#.#..#..#.#####.##.##.###..#...###.....#..##..####...#.#.###....#..#.#.###.####..#.#........##.#....
|
||||
..###.#...##.#.####.#.##.##.....##...#.##.#.###.#.#..##.#..##..#..##.##....#.#####.##..#######.....#
|
||||
###.###..##.#..##...#####..##.####....#.##......##......#.#....##.####.#.#.#.###...#..####..#.######
|
||||
#..###...#.#.......#..####.####...#....###.###...#.##..##..#..##.##.......####.##...#.#.#.##.#.#..#.
|
||||
..#...#..###.##..#.#.#.##..#..#.#.......###..###..#####.#.#.#.#.#..#.#.#.#..###....#.####..###...#..
|
||||
...######.###....#..####.####......#...#.###.#....#...####.##........##...##.#..##.###.#..#..##..###
|
||||
.#..###.####.###.#.#..#..#..#.##.#.#.###.##..####.#####..##....##.#.##...###.####.#.#######.#..#..#.
|
||||
.#..##.#..##..#...##...#..#..##.#.#....##.##...###.#.#...##..##..#.###.#.#.#.#...#....#.#..#.#.###.#
|
||||
.###..#.#..####.#########...####....####.#.##...##.##..#.##.#........#.....###.###.######.##.....###
|
||||
..##.##..##..#.####.#..#####.#....##.##.#####.....#.#......##...#####..####....###..#.#...#..####..#
|
||||
.#..##..##.##.##.##.#.###.###.#..#..#...###.#.##..##...##...###...##.###..#.#.#####.#.#.##....#.##..
|
||||
...#.#....##.#.....###.##...#..##....#...###....#..#.###...##.#...###.#....#...##..###.#.....##....#
|
||||
.#######..#...##.#.###.##.#.###...##......#.###.#...#.###.#.#.#..#..#####..#########...##..##...#..#
|
||||
.#..#.##...#.#..#.##..#.#.#.##.....####.#..#.###..##.#.#.#...#....#.#..##.######...#.#..##.##...#..#
|
||||
#.#######.#####..#####.##.##.#.#.##.###..#....####.#..##.##.######..###...#.#..#.####.##.##....####.
|
||||
...##..#...##..#..#.....#.##...#.....##.#####.###.########.######..#...###..#.##.#.#.##..#.#.##..##.
|
||||
#..#..#.#....###.#...##..####.#.##..#.####.###..##.#...#.###.#..#.##..#######.#...#..#.#..##.#....##
|
||||
..#.##.#.####..##.###.###..#.##.#.####..##....##.###.#..##.#.###.###.##.##.#####..#.#...########....
|
||||
.#.#.###..###...#...#..##.##......#..#...#.#.#.######.#.#...##..##........#....###..##...#..##.##...
|
||||
##..#....##.###...##.#.##.##.##..#....#.#.#..#..####.##..#...#...#..#..#####.###...#..###..#...#.#..
|
||||
##.#.#.##.###.....######.#.....#...#.##....###.#.##.#.#.##..##.######.#####....#.#####...##.#..###.#
|
||||
######.#...####..###..##..#..##...#.#....##.#...##...#.....#...##....#.##..###..###...###..#..######
|
||||
.....##.........#####.#.##..#..#.#.#.#.##...#....#.....###.########...#..####..#...#...##..#.##.##.#
|
||||
#..###...#.##.##.#.#..####.#.....##..###....##..#...#.#...##.##..###..####...#.####..##..#..##..#...
|
||||
#.####.#..##.#..#.....#..#.#..###...######.#.........####....###..#.#.#.##.#..#...#..####.....##..#.
|
||||
..##....#.###.......##.#...#.####..##....##.#..#....#######...####.##..#####.#.#.#.#.##..##..#.#.#..
|
||||
#.#.#.###..#..#.#..#.#.###....#...#####.###...........#.#....#####...#..####....#...###.#..#..####..
|
||||
.......#.####.##...#..#.##..###..#..#.#.#.#.###....#....#.#.#..#.#..##.#####.#.....#.##.#.###.###.##
|
||||
..###...#..#...####.#..##..##.#.#..#...#.#..#....###.#..####..######...####.#.##..#.#..###...##.####
|
||||
..#.###..#.#...##...#.#....#..#...#.#..##.######.######.#.##.....#..##.#..###..#..#.##.###...#..#.##
|
||||
####..##.####.....#...#.#.###..#...####.###.#.#.#.......##...#....#..#....#.#......###...#####.#.##.
|
||||
#..##..#..#.####...#####.#.###.##.#.##.....#.#..#.##........######.#.#.###....##.##..##..########.##
|
||||
#.#....###.##....#######.#...#.#.#.#..##.#.##...#.###...#.#.#..#.#..####.#.#..#..#.##.####....#..##.
|
||||
####.##....#.......###..#..##.#.#.##..#...#...##.###....##..###.#.#...#..#.....##.###.##...###....##
|
||||
..##.#..#....######..#.##.#.#...##..####.#####...##.#..###.##...#..####..###.##..##.##.#####.#..#.#.
|
||||
.#.##..#..##.#.###.###....#.#..#....#...###.##.#.#.####.....#....#...#.....#....#.#.###.#..#.##..###
|
||||
..###.#.#.##...##.##.##.#...#####.#..##.#....##..####...###..#....#.##...#........#####.#.###.#..#..
|
||||
....#..##..##....#.#....#.#..##...##.#...##.###.#.#..###..##.##.##..#.#.#..#.#.##.......#.##.###..#.
|
||||
.#..##.##.####.##....##.##.....###..##.#.##...#..###....###.###....#.#....#....#.##.#.##.#.##.....##
|
||||
#.#..#.##.###.#.######.....###.#..#...#.#.....##.###.#...#.#..###.#.....##.###.#.###.####..#####.#..
|
||||
#.#.##......#.##.#.#..##....#..###.#.###...##...###.#..#.##...#..#.##..##.#...######.##.....#####.##
|
||||
#.#..#####....###.###...#.......#....###.##...#..#.##..#...#####..#..#.##......###...#...###..#.#..#
|
||||
#.##..##.##.#..#.##.##..#.###.##.........###.#.#..#.#.....#.#...#.#.##.#.##.#...#...####.#.......##.
|
||||
.#...####.##..#..##....####..######...#.#..##.##.....#####.#...#..#.####.#######...#.#####..#.###...
|
||||
.#..######.#.##..##...##.....###.#..##..#...####..###...###.###..#..######.#....########..#####...#.
|
||||
#..##.......#####...###..#.#.##.#..###.#...##.#..#.##.###...###...##.#..##..########..#.#..##..#.###
|
||||
.#.#..#...#.#..#..##...#.#.##...###..#..#....###.#....#.##....###.###..##..#.#.####..####.#######.##
|
||||
...##..##.##.###.##.###...##.#.#.....##.####..#..##.#..#.####...##..#..#.##...##...###.##.#.......##
|
||||
.#.....#.##..#.#.....#.##.##..###..#....###...#.#....##########.##.###.#...#.####..####.#..#.#..###.
|
||||
.##.#.#.##..#..###.###.##.#########.#.#.#.#.##.###..##..#.##.####......#####...#..####.#.##..#####.#
|
||||
..#....###...##....#.###..##..#..####.##..####.#..####.###.#....####.....#.###..##...##..####...##.#
|
||||
.###.....###.##.##..###.###.....##..#.######.#.#..##..#.##.#..#.#.#....#...#.#.#...#...##....#..##.#
|
||||
..##....#..#####....#..####.#.#...##.#....##..##.###.###....###......#...#.#####.......#...#.....###
|
||||
###.#..#.#.##..#..#...#.#....###.##.#.###.#...#.##.#..#.#.......#.#.#.###.####.###....#..##..#####..
|
||||
.#..#######.#..###.#.##.#####.#####...##..#.####.#.#.##..###...#..##.##..#.#.###..#....#..#...###.#.
|
||||
..#####..#.##.....###..##.#...#.#.#..#######.#..#...#.##.##.#.#....####...###..##...#....####.#..#.#
|
||||
.####..#.#.##.###.#.##.....#..##.#.....###.....#..##...#....###.###..#......###.#.#.#.##.#.##..#...#
|
||||
##.#..##.#..##...#.#....##..######..#.....#..#...#####....##......####.##..#...##..#.##.#.#######..#
|
||||
##..####.#...##...#.#####.#.#..#....#.#..##.####.#..######.#..#..#.......#####..#..#..###.##...##.##
|
||||
#.####......#.###...#..####.#..##.##..#.#...##.###.#...#####..####.#..#.#.....#.##...###...#.#....##
|
||||
###.#.#.##.######......#.#.#.#.#........#..#..###.#.#.#..#.........#..#....#.#..#..#..###.##......##
|
||||
##.#########...#...###..#.###.....#.#.##.........###....#.####.#...###.#..##..#.###..#..##......#.##
|
||||
45
2015/input/19
Normal file
45
2015/input/19
Normal file
@@ -0,0 +1,45 @@
|
||||
Al => ThF
|
||||
Al => ThRnFAr
|
||||
B => BCa
|
||||
B => TiB
|
||||
B => TiRnFAr
|
||||
Ca => CaCa
|
||||
Ca => PB
|
||||
Ca => PRnFAr
|
||||
Ca => SiRnFYFAr
|
||||
Ca => SiRnMgAr
|
||||
Ca => SiTh
|
||||
F => CaF
|
||||
F => PMg
|
||||
F => SiAl
|
||||
H => CRnAlAr
|
||||
H => CRnFYFYFAr
|
||||
H => CRnFYMgAr
|
||||
H => CRnMgYFAr
|
||||
H => HCa
|
||||
H => NRnFYFAr
|
||||
H => NRnMgAr
|
||||
H => NTh
|
||||
H => OB
|
||||
H => ORnFAr
|
||||
Mg => BF
|
||||
Mg => TiMg
|
||||
N => CRnFAr
|
||||
N => HSi
|
||||
O => CRnFYFAr
|
||||
O => CRnMgAr
|
||||
O => HP
|
||||
O => NRnFAr
|
||||
O => OTi
|
||||
P => CaP
|
||||
P => PTi
|
||||
P => SiRnFAr
|
||||
Si => CaSi
|
||||
Th => ThCa
|
||||
Ti => BP
|
||||
Ti => TiTi
|
||||
e => HF
|
||||
e => NAl
|
||||
e => OMg
|
||||
|
||||
CRnSiRnCaPTiMgYCaPTiRnFArSiThFArCaSiThSiThPBCaCaSiRnSiRnTiTiMgArPBCaPMgYPTiRnFArFArCaSiRnBPMgArPRnCaPTiRnFArCaSiThCaCaFArPBCaCaPTiTiRnFArCaSiRnSiAlYSiThRnFArArCaSiRnBFArCaCaSiRnSiThCaCaCaFYCaPTiBCaSiThCaSiThPMgArSiRnCaPBFYCaCaFArCaCaCaCaSiThCaSiRnPRnFArPBSiThPRnFArSiRnMgArCaFYFArCaSiRnSiAlArTiTiTiTiTiTiTiRnPMgArPTiTiTiBSiRnSiAlArTiTiRnPMgArCaFYBPBPTiRnSiRnMgArSiThCaFArCaSiThFArPRnFArCaSiRnTiBSiThSiRnSiAlYCaFArPRnFArSiThCaFArCaCaSiThCaCaCaSiRnPRnCaFArFYPMgArCaPBCaPBSiRnFYPBCaFArCaSiAl
|
||||
1
2015/input/20
Normal file
1
2015/input/20
Normal file
@@ -0,0 +1 @@
|
||||
34000000
|
||||
3
2015/input/21
Normal file
3
2015/input/21
Normal file
@@ -0,0 +1,3 @@
|
||||
Hit Points: 104
|
||||
Damage: 8
|
||||
Armor: 1
|
||||
2
2015/input/22
Normal file
2
2015/input/22
Normal file
@@ -0,0 +1,2 @@
|
||||
Hit Points: 51
|
||||
Damage: 9
|
||||
48
2015/input/23
Normal file
48
2015/input/23
Normal file
@@ -0,0 +1,48 @@
|
||||
jio a, +22
|
||||
inc a
|
||||
tpl a
|
||||
tpl a
|
||||
tpl a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
inc a
|
||||
tpl a
|
||||
jmp +19
|
||||
tpl a
|
||||
tpl a
|
||||
tpl a
|
||||
tpl a
|
||||
inc a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
inc a
|
||||
tpl a
|
||||
inc a
|
||||
tpl a
|
||||
tpl a
|
||||
jio a, +8
|
||||
inc b
|
||||
jie a, +4
|
||||
tpl a
|
||||
inc a
|
||||
jmp +2
|
||||
hlf a
|
||||
jmp -7
|
||||
29
2015/input/24
Normal file
29
2015/input/24
Normal file
@@ -0,0 +1,29 @@
|
||||
1
|
||||
2
|
||||
3
|
||||
7
|
||||
11
|
||||
13
|
||||
17
|
||||
19
|
||||
23
|
||||
31
|
||||
37
|
||||
41
|
||||
43
|
||||
47
|
||||
53
|
||||
59
|
||||
61
|
||||
67
|
||||
71
|
||||
73
|
||||
79
|
||||
83
|
||||
89
|
||||
97
|
||||
101
|
||||
103
|
||||
107
|
||||
109
|
||||
113
|
||||
1
2015/input/25
Normal file
1
2015/input/25
Normal file
@@ -0,0 +1 @@
|
||||
To continue, please consult the code grid in the manual. Enter the code at row 2981, column 3075.
|
||||
1
2015/lib/libflint
Submodule
1
2015/lib/libflint
Submodule
Submodule 2015/lib/libflint added at 9d03411979
28
2015/src/01.c
Normal file
28
2015/src/01.c
Normal file
@@ -0,0 +1,28 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day01(void) {
|
||||
char *input = get_input("input/01");
|
||||
char *c = input;
|
||||
int f = 0, b = 0, s = 1;
|
||||
|
||||
while (*c != '\0') {
|
||||
if (*c == '(') {
|
||||
++f;
|
||||
} else {
|
||||
--f;
|
||||
}
|
||||
|
||||
if (f == -1 && b == 0) {
|
||||
b = s;
|
||||
}
|
||||
|
||||
++c;
|
||||
++s;
|
||||
}
|
||||
|
||||
printf("%d\n%d\n", f, b);
|
||||
free(input);
|
||||
}
|
||||
27
2015/src/02.c
Normal file
27
2015/src/02.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
#include "lfmath.h"
|
||||
|
||||
void advent2015day02(void) {
|
||||
size_t sz = 0;
|
||||
char **lines = get_lines("input/02", &sz);
|
||||
int paper = 0, ribbon = 0;
|
||||
|
||||
for (size_t i = 0; i < sz; i++) {
|
||||
char *t = strtok(lines[i], "x");
|
||||
int w = atoi(t);
|
||||
t = strtok(NULL, "x");
|
||||
int l = atoi(t);
|
||||
t = strtok(NULL, "x");
|
||||
int h = atoi(t);
|
||||
|
||||
paper += 2 * l * w + 2 * w * h + 2 * h * l + min_int(w * l, min_int(l * h, h * w));
|
||||
ribbon += l * w * h + min_int(w + w + h + h, min_int(h + h + l + l, l + l + w + w));
|
||||
}
|
||||
|
||||
printf("%d\n%d\n", paper, ribbon);
|
||||
del_lines(lines);
|
||||
}
|
||||
89
2015/src/03.c
Normal file
89
2015/src/03.c
Normal file
@@ -0,0 +1,89 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfset.h"
|
||||
#include "lfinput.h"
|
||||
#include "lfutility.h"
|
||||
|
||||
static int part_two(char *input) {
|
||||
int sx = 0, sy = 0, rx = 0, ry = 0, is_santa = 1;
|
||||
int *x, *y;
|
||||
char *c = input;
|
||||
|
||||
Set *houses = malloc(sizeof(Set));
|
||||
set_init(houses, Point_cmp_v, free);
|
||||
|
||||
while (*c != '\0') {
|
||||
if (is_santa) {
|
||||
x = &sx;
|
||||
y = &sy;
|
||||
} else {
|
||||
x = ℞
|
||||
y = &ry;
|
||||
}
|
||||
is_santa = is_santa == 1 ? 0 : 1;
|
||||
|
||||
switch (*c) {
|
||||
case '^':
|
||||
++(*y);
|
||||
break;
|
||||
case 'v':
|
||||
--(*y);
|
||||
break;
|
||||
case '>':
|
||||
++(*x);
|
||||
break;
|
||||
case '<':
|
||||
--(*x);
|
||||
break;
|
||||
}
|
||||
set_insert(houses, Point_new_p(*x, *y));
|
||||
++c;
|
||||
}
|
||||
|
||||
int sz = houses->size;
|
||||
set_destroy(houses);
|
||||
|
||||
return sz;
|
||||
}
|
||||
|
||||
static int part_one(char *input) {
|
||||
int x = 0, y = 0;
|
||||
char *c = input;
|
||||
|
||||
Set *houses = malloc(sizeof(Set));
|
||||
set_init(houses, Point_cmp_v, free);
|
||||
|
||||
while (*c != '\0') {
|
||||
switch (*c) {
|
||||
case '^':
|
||||
++y;
|
||||
break;
|
||||
case 'v':
|
||||
--y;
|
||||
break;
|
||||
case '>':
|
||||
++x;
|
||||
break;
|
||||
case '<':
|
||||
--x;
|
||||
break;
|
||||
}
|
||||
set_insert(houses, Point_new_p(x, y));
|
||||
++c;
|
||||
}
|
||||
|
||||
int sz = houses->size;
|
||||
set_destroy(houses);
|
||||
|
||||
return sz;
|
||||
}
|
||||
|
||||
void advent2015day03(void) {
|
||||
char *input = get_input("input/03");
|
||||
|
||||
printf("%d\n", part_one(input));
|
||||
printf("%d\n", part_two(input));
|
||||
|
||||
free(input);
|
||||
}
|
||||
52
2015/src/04.c
Normal file
52
2015/src/04.c
Normal file
@@ -0,0 +1,52 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
#include "advent_utility.h"
|
||||
|
||||
static int is_five(char *test) {
|
||||
char *t = test;
|
||||
for (int i = 0; i < 5; ++i, ++t) {
|
||||
if (*t != '0') {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int is_six(char *test) {
|
||||
char *t = test;
|
||||
for (int i = 0; i < 6; ++i, ++t) {
|
||||
if (*t != '0') {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
void advent2015day04(void) {
|
||||
char *input = get_input("input/04");
|
||||
int c = 0, five = 0, six = 0;
|
||||
|
||||
while (!five || !six) {
|
||||
int sz = strlen(input) + 8;
|
||||
char test[sz];
|
||||
snprintf(test, sz, "%s%d", input, c);
|
||||
char *md5 = md5_str(test);
|
||||
|
||||
if (!five && is_five(md5)) {
|
||||
five = c;
|
||||
printf("%d\n", five);
|
||||
}
|
||||
if (is_six(md5)) {
|
||||
six = c;
|
||||
}
|
||||
|
||||
free(md5);
|
||||
++c;
|
||||
}
|
||||
|
||||
printf("%d\n", six);
|
||||
free(input);
|
||||
}
|
||||
16
2015/src/05.c
Normal file
16
2015/src/05.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <lfinput.h>
|
||||
|
||||
void advent2015day05(void) {
|
||||
/* Sometimes, grep really is the best tool */
|
||||
const char *p1 = capture_system(
|
||||
"grep -E \"(.*[aeiou]){3}\" ./input/2015/05 | grep \"\\(.\\)\\1\" | egrep -v \"(ab|cd|pq|xy)\" | wc -l", 0);
|
||||
const char *p2 = capture_system("grep \"\\(..\\).*\\1\" ./input/2015/05 | grep \"\\(.\\).\\1\" | wc -l", 0);
|
||||
|
||||
printf("%s%s", p1, p2);
|
||||
|
||||
free(p1);
|
||||
free(p2);
|
||||
}
|
||||
118
2015/src/06.c
Normal file
118
2015/src/06.c
Normal file
@@ -0,0 +1,118 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __linux__
|
||||
#include <bsd/stdlib.h>
|
||||
#endif
|
||||
|
||||
#include "lfinput.h"
|
||||
#include "lfmath.h"
|
||||
|
||||
#define GRID_SZ 1000
|
||||
|
||||
typedef struct {
|
||||
int mode; /* 0 = on, 1 = off, 2 = toggle */
|
||||
int x0;
|
||||
int y0;
|
||||
int x1;
|
||||
int y1;
|
||||
} s1503;
|
||||
|
||||
static void get_coords(char *s, int *x, int *y) {
|
||||
char buf[8];
|
||||
char *c = s;
|
||||
int i = 0;
|
||||
const char *errstr = NULL;
|
||||
|
||||
while (*c != ',') {
|
||||
buf[i++] = *c;
|
||||
++c;
|
||||
}
|
||||
buf[i] = '\0';
|
||||
*x = (int)strtonum(buf, 0, 999, &errstr);
|
||||
if (NULL != errstr) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
memset(buf, 0, sizeof(char) * 8);
|
||||
i = 0;
|
||||
++c;
|
||||
while (*c != '\0') {
|
||||
buf[i++] = *c;
|
||||
++c;
|
||||
}
|
||||
buf[i] = '\0';
|
||||
*y = (int)strtonum(buf, 0, 999, &errstr);
|
||||
if (NULL != errstr) {
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
static int run(s1503 *ins, size_t sz, int p1) {
|
||||
int grid[GRID_SZ][GRID_SZ];
|
||||
memset(grid, 0, sizeof(int) * GRID_SZ * GRID_SZ);
|
||||
|
||||
for (size_t i = 0; i < sz; ++i) {
|
||||
for (int x = ins[i].x0; x <= ins[i].x1; ++x) {
|
||||
for (int y = ins[i].y0; y <= ins[i].y1; ++y) {
|
||||
switch (ins[i].mode) {
|
||||
case 0: /* on */
|
||||
if (p1) { grid[x][y] = 1; }
|
||||
else {grid[x][y] += 1; }
|
||||
break;
|
||||
|
||||
case 1: /* off */
|
||||
if (p1) { grid[x][y] = 0; }
|
||||
else {grid[x][y] = max_int(0, grid[x][y] - 1); }
|
||||
break;
|
||||
|
||||
case 2: /* toggle */
|
||||
if (p1) { grid[x][y] = grid[x][y] == 1 ? 0 : 1; }
|
||||
else {grid[x][y] += 2; }
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int c = 0;
|
||||
for (int x = 0; x < GRID_SZ; ++x) {
|
||||
for (int y = 0; y < GRID_SZ; ++y) {
|
||||
c += grid[x][y];
|
||||
}
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
void advent2015day06(void) {
|
||||
size_t sz = 0;
|
||||
char **input = get_lines("input/06", &sz);
|
||||
s1503 ins[sz];
|
||||
for (size_t i = 0; i < sz; ++i) {
|
||||
char *s = malloc(sizeof(char) * 64);
|
||||
strncpy(s, input[i], 64);
|
||||
size_t sp_sz = 0;
|
||||
char **sp = split(s, &sp_sz, " ");
|
||||
|
||||
if (sp_sz == 4) {
|
||||
ins[i].mode = 2;
|
||||
get_coords(sp[1], &ins[i].x0, &ins[i].y0);
|
||||
get_coords(sp[3], &ins[i].x1, &ins[i].y1);
|
||||
} else {
|
||||
if (strcmp(sp[1], "on") == 0) {
|
||||
ins[i].mode = 0;
|
||||
} else {
|
||||
ins[i].mode = 1;
|
||||
}
|
||||
get_coords(sp[2], &ins[i].x0, &ins[i].y0);
|
||||
get_coords(sp[4], &ins[i].x1, &ins[i].y1);
|
||||
}
|
||||
|
||||
del_split(sp);
|
||||
}
|
||||
del_lines(input);
|
||||
|
||||
printf("%d\n", run(ins, sz, 1));
|
||||
printf("%d\n", run(ins, sz, 0));
|
||||
}
|
||||
118
2015/src/07.c
Normal file
118
2015/src/07.c
Normal file
@@ -0,0 +1,118 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "uthash.h"
|
||||
#include "lfinput.h"
|
||||
#include "lfbool.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#include <bsd/stdlib.h>
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
struct Wire {
|
||||
char name[8];
|
||||
uint16_t val;
|
||||
UT_hash_handle hh;
|
||||
};
|
||||
|
||||
struct Wire *wires = NULL;
|
||||
|
||||
static void set_wire(const char *name, int v) {
|
||||
struct Wire *w;
|
||||
HASH_FIND_STR(wires, name, w);
|
||||
if (w == NULL) {
|
||||
w = malloc(sizeof(struct Wire));
|
||||
strlcpy(w->name, name, 8);
|
||||
HASH_ADD_STR(wires, name, w);
|
||||
}
|
||||
w->val = v;
|
||||
}
|
||||
|
||||
static struct Wire *get_wire(const char *name) {
|
||||
struct Wire *w = NULL;
|
||||
HASH_FIND_STR(wires, name, w);
|
||||
return w;
|
||||
}
|
||||
|
||||
static void clear_wires() {
|
||||
struct Wire *c, *t;
|
||||
HASH_ITER(hh, wires, c, t) {
|
||||
HASH_DEL(wires, c);
|
||||
free(c);
|
||||
}
|
||||
}
|
||||
|
||||
static uint16_t get_val(const char* n) {
|
||||
const char *errstr;
|
||||
|
||||
uint16_t v = strtonum(n, 0, 1 << 16, &errstr);
|
||||
if (errstr == NULL) {
|
||||
return v;
|
||||
};
|
||||
|
||||
struct Wire *w = get_wire(n);
|
||||
if (w == NULL) {
|
||||
return 0;
|
||||
}
|
||||
return w->val;
|
||||
}
|
||||
|
||||
void advent2015day07(void) {
|
||||
size_t sz = 0;
|
||||
char **input = get_lines("input/07", &sz);
|
||||
size_t i = 0;
|
||||
int a_set = LFFALSE;
|
||||
|
||||
while (!a_set) {
|
||||
int sz = strlen(input[i]) + 1;
|
||||
char *buf = malloc(sizeof(char) * sz);
|
||||
strlcpy(buf, input[i], sz);
|
||||
size_t sp_sz = 0;
|
||||
char **sp = split(buf, &sp_sz, " ");
|
||||
|
||||
if (sp_sz == 3) {
|
||||
uint16_t a = get_val(sp[0]);
|
||||
if (a != 0) {
|
||||
set_wire(sp[2], a);
|
||||
}
|
||||
} else if (sp_sz == 4) {
|
||||
uint16_t a = get_val(sp[0]);
|
||||
if (a != 0) {
|
||||
set_wire(sp[2], ~a);
|
||||
}
|
||||
} else {
|
||||
uint16_t a = get_val(sp[0]);
|
||||
uint16_t b = get_val(sp[2]);
|
||||
if (a != 0 && b != 0) {
|
||||
if (strcmp(sp[1], "AND") == 0) {
|
||||
set_wire(sp[4], a & b);
|
||||
} else if (strcmp(sp[1], "OR") == 0) {
|
||||
set_wire(sp[4], a | b);
|
||||
} else if (strcmp(sp[1], "LSHIFT") == 0) {
|
||||
set_wire(sp[4], a << b);
|
||||
} else if (strcmp(sp[1], "RSHIFT") == 0) {
|
||||
set_wire(sp[4], a >> b);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t a = get_val("a");
|
||||
if (a != 0) {
|
||||
a_set = LFTRUE;
|
||||
}
|
||||
|
||||
del_split(sp);
|
||||
++i;
|
||||
if (i == sz) {
|
||||
i = 0;
|
||||
}
|
||||
}
|
||||
|
||||
printf("%u\n", get_wire("a")->val);
|
||||
del_lines(input);
|
||||
clear_wires();
|
||||
}
|
||||
51
2015/src/08.c
Normal file
51
2015/src/08.c
Normal file
@@ -0,0 +1,51 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
static size_t part_one(char** input, size_t sz) {
|
||||
size_t code = 0, mem = 0;
|
||||
|
||||
for (size_t i = 0; i < sz; ++i) {
|
||||
code += strlen(input[i]);
|
||||
for (size_t j = 1; j < strlen(input[i]) - 1; ++j) {
|
||||
if (input[i][j] == '\\') {
|
||||
if (input[i][j + 1] == '\"' || input[i][j + 1] == '\\') {
|
||||
++j;
|
||||
} else {
|
||||
j += 3;
|
||||
}
|
||||
}
|
||||
++mem;
|
||||
}
|
||||
}
|
||||
|
||||
return code - mem;
|
||||
}
|
||||
|
||||
static size_t part_two(char** input, size_t sz) {
|
||||
size_t code = 0, encoded = 0;
|
||||
|
||||
for (size_t i = 0; i < sz; ++i) {
|
||||
code += strlen(input[i]);
|
||||
encoded += 6;
|
||||
for (size_t j = 1; j < strlen(input[i]) - 1; ++j) {
|
||||
if (input[i][j] == '\\' || input[i][j] == '\"') {
|
||||
++encoded;
|
||||
}
|
||||
++encoded;
|
||||
}
|
||||
}
|
||||
|
||||
return encoded - code;
|
||||
}
|
||||
|
||||
void advent2015day08(void) {
|
||||
size_t sz = 0;
|
||||
char **input = get_lines("input/08", &sz);
|
||||
|
||||
printf("%zu\n", part_one(input, sz));
|
||||
printf("%zu\n", part_two(input, sz));
|
||||
|
||||
del_lines(input);
|
||||
}
|
||||
10
2015/src/09.c
Normal file
10
2015/src/09.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day09(void) {
|
||||
char *input = get_input("input/09");
|
||||
printf("Solution for Day 09 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/10.c
Normal file
10
2015/src/10.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day10(void) {
|
||||
char *input = get_input("input/10");
|
||||
printf("Solution for Day 10 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/11.c
Normal file
10
2015/src/11.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day11(void) {
|
||||
char *input = get_input("input/11");
|
||||
printf("Solution for Day 11 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/12.c
Normal file
10
2015/src/12.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day12(void) {
|
||||
char *input = get_input("input/12");
|
||||
printf("Solution for Day 12 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/13.c
Normal file
10
2015/src/13.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day13(void) {
|
||||
char *input = get_input("input/13");
|
||||
printf("Solution for Day 13 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/14.c
Normal file
10
2015/src/14.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day14(void) {
|
||||
char *input = get_input("input/14");
|
||||
printf("Solution for Day 14 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
63
2015/src/15.c
Normal file
63
2015/src/15.c
Normal file
@@ -0,0 +1,63 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
typedef struct {
|
||||
long cap;
|
||||
long dur;
|
||||
long flv;
|
||||
long tex;
|
||||
long cal;
|
||||
} Ingredient;
|
||||
|
||||
static long long_max(long a, long b) {
|
||||
return a > b ? a : b;
|
||||
}
|
||||
|
||||
void advent2015day15(void) {
|
||||
size_t input_sz = 0;
|
||||
char **input = get_lines("input/15", &input_sz);
|
||||
|
||||
Ingredient ing[input_sz]; for (size_t i = 0; i < input_sz; ++i) {
|
||||
char n[16];
|
||||
sscanf(input[i], "%s capacity %ld, durability %ld, flavor %ld, texture %ld, calories %ld",
|
||||
n,
|
||||
&ing[i].cap,
|
||||
&ing[i].dur,
|
||||
&ing[i].flv,
|
||||
&ing[i].tex,
|
||||
&ing[i].cal
|
||||
);
|
||||
}
|
||||
|
||||
long max = 0, max_healthy = 0;
|
||||
for (long p0 = 0; p0 < 100; ++p0) {
|
||||
for (long p1 = 0; p1 < 100; ++p1) {
|
||||
for (long p2 = 0; p2 < 100; ++p2) {
|
||||
for (long p3 = 0; p3 < 100; ++p3) {
|
||||
if (p0 + p1 + p2 + p3 != 100) {
|
||||
continue;
|
||||
}
|
||||
long cap = long_max(ing[0].cap * p0 + ing[1].cap * p1 + ing[2].cap * p2 + ing[3].cap * p3, 0);
|
||||
long dur = long_max(ing[0].dur * p0 + ing[1].dur * p1 + ing[2].dur * p2 + ing[3].dur * p3, 0);
|
||||
long flv = long_max(ing[0].flv * p0 + ing[1].flv * p1 + ing[2].flv * p2 + ing[3].flv * p3, 0);
|
||||
long tex = long_max(ing[0].tex * p0 + ing[1].tex * p1 + ing[2].tex * p2 + ing[3].tex * p3, 0);
|
||||
long cal = ing[0].cal * p0 + ing[1].cal * p1 + ing[2].cal * p2 + ing[3].cal * p3;
|
||||
long score = cap * dur * flv * tex;
|
||||
if (score > max) {
|
||||
max = score;
|
||||
}
|
||||
if (cal == 500 && score > max_healthy) {
|
||||
max_healthy = score;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
printf("%ld\n", max);
|
||||
printf("%ld\n", max_healthy);
|
||||
|
||||
del_lines(input);
|
||||
}
|
||||
10
2015/src/16.c
Normal file
10
2015/src/16.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day16(void) {
|
||||
char *input = get_input("input/16");
|
||||
printf("Solution for Day 16 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/17.c
Normal file
10
2015/src/17.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day17(void) {
|
||||
char *input = get_input("input/17");
|
||||
printf("Solution for Day 17 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/18.c
Normal file
10
2015/src/18.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day18(void) {
|
||||
char *input = get_input("input//18");
|
||||
printf("Solution for Day 18 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/19.c
Normal file
10
2015/src/19.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day19(void) {
|
||||
char *input = get_input("input/19");
|
||||
printf("Solution for Day 19 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/20.c
Normal file
10
2015/src/20.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day20(void) {
|
||||
char *input = get_input("input/20");
|
||||
printf("Solution for Day 20 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/21.c
Normal file
10
2015/src/21.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day21(void) {
|
||||
char *input = get_input("input/21");
|
||||
printf("Solution for Day 21 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/22.c
Normal file
10
2015/src/22.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day22(void) {
|
||||
char *input = get_input("input/22");
|
||||
printf("Solution for Day 22 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/23.c
Normal file
10
2015/src/23.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day23(void) {
|
||||
char *input = get_input("input/23");
|
||||
printf("Solution for Day 23 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/24.c
Normal file
10
2015/src/24.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day24(void) {
|
||||
char *input = get_input("input/24");
|
||||
printf("Solution for Day 24 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
10
2015/src/25.c
Normal file
10
2015/src/25.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day25(void) {
|
||||
char *input = get_input("input/25");
|
||||
printf("Solution for Day 25 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
}
|
||||
178
2015/src/advent_utility.c
Normal file
178
2015/src/advent_utility.c
Normal file
@@ -0,0 +1,178 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define PCRE2_CODE_UNIT_WIDTH 8
|
||||
#include "pcre2.h"
|
||||
|
||||
#if defined __linux__ || defined __APPLE__
|
||||
#include <openssl/md5.h>
|
||||
#else
|
||||
#include <md5.h>
|
||||
#endif
|
||||
|
||||
#include "advent_utility.h"
|
||||
|
||||
char *md5_str(const char *input) {
|
||||
unsigned char digest[16];
|
||||
|
||||
#if defined __linux__ || defined __APPLE__
|
||||
MD5_CTX context;
|
||||
MD5_Init(&context);
|
||||
MD5_Update(&context, input, strlen(input));
|
||||
MD5_Final(digest, &context);
|
||||
#else
|
||||
struct MD5Context context;
|
||||
MD5Init(&context);
|
||||
MD5Update(&context, input, strlen(input));
|
||||
MD5Final(digest, &context);
|
||||
#endif
|
||||
|
||||
char *md5string = malloc(33);
|
||||
for (int i = 0; i < 16; ++i) {
|
||||
snprintf(&md5string[i * 2], 33, "%02x", (unsigned int) digest[i]);
|
||||
}
|
||||
return md5string;
|
||||
}
|
||||
|
||||
Vector *string_to_int_vector(const char *input_string, const char *delim) {
|
||||
char *copy = strdup(input_string);
|
||||
char *token = strtok(copy, delim);
|
||||
Vector *v = malloc(sizeof(Vector));
|
||||
vec_init(v, free);
|
||||
|
||||
while (token != NULL) {
|
||||
int *i = malloc(sizeof(int));
|
||||
*i = atoi(token);
|
||||
vec_push(v, i);
|
||||
token = strtok(NULL, delim);
|
||||
}
|
||||
|
||||
free(copy);
|
||||
return v;
|
||||
}
|
||||
|
||||
int int_comp(const void *a, const void *b) {
|
||||
return *(int *) a - *(int *) b;
|
||||
}
|
||||
|
||||
char **get_matches(char *in, char *pat, size_t *sz, size_t max_matches) {
|
||||
pcre2_code *re;
|
||||
PCRE2_SPTR pattern = (PCRE2_SPTR)pat;
|
||||
int errnum;
|
||||
size_t erroff;
|
||||
PCRE2_SPTR8 substr;
|
||||
size_t substr_sz;
|
||||
PCRE2_SPTR subject = (PCRE2_SPTR)in;
|
||||
size_t subject_sz = strlen(in);
|
||||
|
||||
re = pcre2_compile(pattern, PCRE2_ZERO_TERMINATED, 0, &errnum, &erroff, NULL);
|
||||
if (re == NULL) {
|
||||
char buffer[256];
|
||||
pcre2_get_error_message(errnum, buffer, sizeof(buffer));
|
||||
printf("PCRE2 compilation failed at offset %d: %s\n", (int) erroff, buffer);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char **matches = NULL;
|
||||
matches = malloc(sizeof(char *) * max_matches);
|
||||
if (matches == NULL) {
|
||||
printf("failed to malloc matches\n");
|
||||
pcre2_code_free(re);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
pcre2_match_data *match_data = pcre2_match_data_create_from_pattern_8(re, NULL);
|
||||
int rc = pcre2_match(re, subject, subject_sz, 0, 0, match_data, NULL);
|
||||
if (rc < 0) {
|
||||
switch (rc) {
|
||||
case PCRE2_ERROR_NOMATCH:
|
||||
printf("PCRE2 no matches\n");
|
||||
break;
|
||||
default:
|
||||
printf("PCRE2 matching error %d\n", rc);
|
||||
break;
|
||||
}
|
||||
pcre2_match_data_free(match_data);
|
||||
pcre2_code_free(re);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PCRE2_SIZE *ovector = pcre2_get_ovector_pointer(match_data);
|
||||
*sz = 0;
|
||||
for (int i = 0; i < rc; ++i) {
|
||||
substr = subject + ovector[2*i];
|
||||
substr_sz = ovector[2*i+1] - ovector[2*i];
|
||||
matches[*sz] = (char *) malloc(substr_sz + 1);
|
||||
strncpy(matches[*sz], substr, substr_sz);
|
||||
*sz += 1;
|
||||
}
|
||||
|
||||
// Now loop through rest of the matches, if there are any
|
||||
for (;;) {
|
||||
uint32_t options = 0;
|
||||
PCRE2_SIZE start_offset = ovector[1];
|
||||
|
||||
// Check for empty match
|
||||
if (ovector[0] == ovector[1]) {
|
||||
if (ovector[0] == subject_sz) {
|
||||
break;
|
||||
}
|
||||
options = PCRE2_NOTEMPTY_ATSTART | PCRE2_ANCHORED;
|
||||
}
|
||||
|
||||
rc = pcre2_match(re, subject, subject_sz, start_offset, options, match_data, NULL);
|
||||
if (rc == PCRE2_ERROR_NOMATCH) {
|
||||
// All matches have been found
|
||||
if (options == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Handle newlines
|
||||
ovector[1] = start_offset + 1;
|
||||
if (start_offset < subject_sz - 1 &&
|
||||
//subject[start_offset] == '\r' &&
|
||||
subject[start_offset + 1] == '\n') {
|
||||
ovector[1] += 1;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
// Other failures, non-recoverable
|
||||
if (rc < 0) {
|
||||
printf("PCRE2 match-matching error %d\n", rc);
|
||||
pcre2_match_data_free(match_data);
|
||||
pcre2_code_free(re);
|
||||
free_matches(matches, *sz);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
for (int i = 0; i < rc; ++i) {
|
||||
substr = subject + ovector[2*i];
|
||||
substr_sz = ovector[2*i+1] - ovector[2*i];
|
||||
matches[*sz] = (char *) malloc(substr_sz + 1);
|
||||
strncpy(matches[*sz], substr, substr_sz);
|
||||
*sz += 1;
|
||||
}
|
||||
}
|
||||
|
||||
pcre2_match_data_free(match_data);
|
||||
pcre2_code_free(re);
|
||||
return matches;
|
||||
}
|
||||
|
||||
void free_matches(char **matches, size_t sz) {
|
||||
for (size_t i = 0; i < sz; ++i) {
|
||||
free(matches[i]);
|
||||
}
|
||||
free(matches);
|
||||
}
|
||||
|
||||
void turn_right(enum Direction *d) {
|
||||
*d = *d == DIR_WEST ? DIR_NORTH : *d + 1;
|
||||
}
|
||||
|
||||
void turn_left(enum Direction *d) {
|
||||
*d = *d == DIR_NORTH ? DIR_WEST : *d - 1;
|
||||
}
|
||||
22
2015/src/main.c
Normal file
22
2015/src/main.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __linux__
|
||||
#include <bsd/stdlib.h>
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include "advent.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int day = 0;
|
||||
printf("Day: ");
|
||||
scanf("%d", &day);
|
||||
if (day < 1 || day > 25) {
|
||||
printf("Invalid day\n");
|
||||
return 1;
|
||||
}
|
||||
solutions2015[day - 1]();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user