Fix lack of executable for matlab.

This commit is contained in:
2017-12-27 13:26:02 +01:00
parent 0881ca5789
commit 2621197d98
2 changed files with 8 additions and 0 deletions

1
2017/day-06/input.txt Normal file
View File

@@ -0,0 +1 @@
11 11 13 7 0 15 5 5 4 4 1 1 7 1 15 11

7
2017/day-06/solve.m Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env octave-cli
data = input('', 's');
data = sscanf(data, '%d');
[cycles,state] = solution(data);
cycles
[cycles,~] = solution(state)