Skip to content

Commit

Permalink
Day 6 solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 7, 2018
1 parent ff4ac77 commit 90acf50
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
7 changes: 7 additions & 0 deletions p6.dyalog
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
p¨⎕NGET'p6.txt'1
g{1=zt=/t+/|p-1:z¯1}¨p
sort{()}
asort{,},g
bsort{,},1 1¯1 ¯1g
//(a)b part 1
+/,{10000>+/,|p-1}¨p part 2
50 changes: 50 additions & 0 deletions p6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
227, 133
140, 168
99, 112
318, 95
219, 266
134, 144
306, 301
189, 188
58, 334
337, 117
255, 73
245, 144
102, 257
255, 353
303, 216
141, 167
40, 321
201, 50
60, 188
132, 74
125, 199
176, 307
204, 218
338, 323
276, 278
292, 229
109, 228
85, 305
86, 343
97, 254
182, 151
110, 292
285, 124
43, 223
153, 188
285, 136
334, 203
84, 243
92, 185
330, 223
259, 275
106, 199
183, 205
188, 212
231, 150
158, 95
174, 212
279, 97
172, 131
247, 320

0 comments on commit 90acf50

Please sign in to comment.