You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All solutions expect the input via stdin, which can be easily achieved by piping the input to the program: `julia 1.jl < input.in`. I use the `program-tester.sh` script (see [here](https://github.com/LiquidFun/misc-scripts)), which runs the given program on all `*.in` files in the directory, and tests whether the corresponding `*.ans` file matches the given output. Each program outputs both part 1 and part 2 on separate lines. To validate a program manually, type `diff <(julia 1.jl < input.in) input.ans`.
4
-
5
-
Programs are initialized with the `init-day.sh` script. I.e. typing `init-day.sh 10` initializes the 10th day by creating a folder named `10`, downloading the input test case with the `session.cookie`, copying the `dummy.py` file and opening the solution file.
6
-
7
-
* 2021: There is a solution for each problem in Julia. Sometimes there is a Python or APL solution as well. I'm trying out Julia for the first time, mostly focusing on short and elegant code.
8
-
9
3
<!-- REPLACE FROM -->
10
4
<h1align="center">
11
5
2021
12
6
</h1>
13
7
<ahref="2021/01/1.apl">
14
-
<imgsrc="Media/2021/01.png"width="160px">
8
+
<imgsrc="Media/2021/01.png"width="161px">
15
9
</a>
16
10
<ahref="2021/02/2.jl">
17
-
<imgsrc="Media/2021/02.png"width="160px">
11
+
<imgsrc="Media/2021/02.png"width="161px">
18
12
</a>
19
13
<ahref="2021/03/3.jl">
20
-
<imgsrc="Media/2021/03.png"width="160px">
14
+
<imgsrc="Media/2021/03.png"width="161px">
21
15
</a>
22
16
<ahref="2021/04/4.jl">
23
-
<imgsrc="Media/2021/04.png"width="160px">
17
+
<imgsrc="Media/2021/04.png"width="161px">
24
18
</a>
25
19
<ahref="2021/05/5.jl">
26
-
<imgsrc="Media/2021/05.png"width="160px">
20
+
<imgsrc="Media/2021/05.png"width="161px">
27
21
</a>
28
22
<ahref="2021/06/6.jl">
29
-
<imgsrc="Media/2021/06.png"width="160px">
23
+
<imgsrc="Media/2021/06.png"width="161px">
30
24
</a>
31
25
<ahref="2021/07/7.jl">
32
-
<imgsrc="Media/2021/07.png"width="160px">
26
+
<imgsrc="Media/2021/07.png"width="161px">
33
27
</a>
34
28
<ahref="2021/08/8.jl">
35
-
<imgsrc="Media/2021/08.png"width="160px">
29
+
<imgsrc="Media/2021/08.png"width="161px">
36
30
</a>
37
31
<ahref="2021/09/9.jl">
38
-
<imgsrc="Media/2021/09.png"width="160px">
32
+
<imgsrc="Media/2021/09.png"width="161px">
39
33
</a>
40
34
<ahref="2021/10/10.jl">
41
-
<imgsrc="Media/2021/10.png"width="160px">
35
+
<imgsrc="Media/2021/10.png"width="161px">
42
36
</a>
43
37
<ahref="2021/11/11.jl">
44
-
<imgsrc="Media/2021/11.png"width="160px">
38
+
<imgsrc="Media/2021/11.png"width="161px">
45
39
</a>
46
40
<ahref="2021/12/12.jl">
47
-
<imgsrc="Media/2021/12.png"width="160px">
41
+
<imgsrc="Media/2021/12.png"width="161px">
48
42
</a>
49
43
<ahref="2021/13/13.jl">
50
-
<imgsrc="Media/2021/13.png"width="160px">
44
+
<imgsrc="Media/2021/13.png"width="161px">
51
45
</a>
52
46
<ahref="2021/14/14.jl">
53
-
<imgsrc="Media/2021/14.png"width="160px">
47
+
<imgsrc="Media/2021/14.png"width="161px">
54
48
</a>
55
49
<ahref="2021/15/15.jl">
56
-
<imgsrc="Media/2021/15.png"width="160px">
50
+
<imgsrc="Media/2021/15.png"width="161px">
57
51
</a>
58
52
<ahref="2021/16/16.jl">
59
-
<imgsrc="Media/2021/16.png"width="160px">
53
+
<imgsrc="Media/2021/16.png"width="161px">
60
54
</a>
61
55
<ahref="2021/17/17.jl">
62
-
<imgsrc="Media/2021/17.png"width="160px">
56
+
<imgsrc="Media/2021/17.png"width="161px">
63
57
</a>
64
58
<ahref="2021/18/18.jl">
65
-
<imgsrc="Media/2021/18.png"width="160px">
59
+
<imgsrc="Media/2021/18.png"width="161px">
66
60
</a>
67
61
<ahref="2021/19/19.jl">
68
-
<imgsrc="Media/2021/19.png"width="160px">
62
+
<imgsrc="Media/2021/19.png"width="161px">
69
63
</a>
70
64
<ahref="2021/20/20.jl">
71
-
<imgsrc="Media/2021/20.png"width="160px">
65
+
<imgsrc="Media/2021/20.png"width="161px">
72
66
</a>
73
67
<ahref="2021/21/21.jl">
74
-
<imgsrc="Media/2021/21.png"width="160px">
68
+
<imgsrc="Media/2021/21.png"width="161px">
75
69
</a>
76
70
<ahref="2021/22/22.jl">
77
-
<imgsrc="Media/2021/22.png"width="160px">
71
+
<imgsrc="Media/2021/22.png"width="161px">
78
72
</a>
79
73
<ahref="2021/23/23.jl">
80
-
<imgsrc="Media/2021/23.png"width="160px">
74
+
<imgsrc="Media/2021/23.png"width="161px">
81
75
</a>
82
76
<ahref="2021/24/24.cpp">
83
-
<imgsrc="Media/2021/24.png"width="160px">
77
+
<imgsrc="Media/2021/24.png"width="161px">
84
78
</a>
85
79
<ahref="2021/25/25.jl">
86
-
<imgsrc="Media/2021/25.png"width="160px">
80
+
<imgsrc="Media/2021/25.png"width="161px">
87
81
</a>
88
82
<!-- REPLACE UNTIL -->
89
83
90
84
91
85
---
92
86
93
-
The graphic above has been created with [this](days_plot.py) script. Feel free to use it in your own repositories, please credit me though.
87
+
88
+
All solutions expect the input via stdin, which can be easily achieved by piping the input to the program: `julia 1.jl < input.in`. I use the `program-tester.sh` script (see [here](https://github.com/LiquidFun/misc-scripts)), which runs the given program on all `*.in` files in the directory, and tests whether the corresponding `*.ans` file matches the given output. Each program outputs both part 1 and part 2 on separate lines. To validate a program manually, type `diff <(julia 1.jl < input.in) input.ans`.
89
+
90
+
Programs are initialized with the `init-day.sh` script. I.e. typing `init-day.sh 10` initializes the 10th day by creating a folder named `10`, downloading the input test case with the `session.cookie`, copying the `dummy.py` file and opening the solution file.
91
+
92
+
* 2021: There is a solution for each problem in Julia. Sometimes there is a Python or APL solution as well. I'm trying out Julia for the first time, mostly focusing on short and elegant code.
93
+
94
+
---
95
+
96
+
The graphic above has been created with [this](days_plot.py) script. Feel free to use it in your own repositories.
0 commit comments