Snackdown 2017 Finals Solutions
Maximize Grid Score : Praveen Dhinwa (38 AC)
Hull Sum: Kamil Debowski (25 AC)
Hull Sum
Hull Sum (Another solution)
Hull Sum (Another solution)
�
AND Graph Alexey Zayakin (9 AC)
AND Graph
AND Graph
// For i >= K. � Now, the len can’t increase. � dp(i, len) -> dp(i + 1, len) * fib[len + 3 - (s[i] == ‘1’) - (t[i] == ‘1’))
AND Graph
Minimax Kamil Debowski (31 AC)
Minimax
Fusing Weapons Hasan Jaddouh (17 AC)
Fusing Weapons
Fusing Weapons
Racing Refuels Kamil Debowski (6 AC)
Year 3017 (UNIVERSE) Hasan Jaddouh (19 AC)
.
Year 3017 (UNIVERSE)
Year 3017 (UNIVERSE) Building Auxiliary Tree
Computing Vertex Set:
Year 3017 (UNIVERSE) Building Auxiliary Tree
Computing Edge Set:
Year 3017 (UNIVERSE)
Final Solution:
BiCycles Alei Reyes (3 AC)
Proof:
BiCycles
Matrix Sum Alexey Zayakin and Evgeny Vihrov (1 AC)
| 1 | | | | |
| | | 1 | | 1 |
1 | | | | | |
| | 1 | | 1 | |
Matrix Sum
Matrix Sum
�The following three matrices produce a matrix with 0’s only, and it’s quite easy to change them to obtain some 1’s in the final matrix.
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
Matrix Sum
If we want to obtain a 1 in the first or the last row, we should just remove a 1 from the corresponding cell of the third matrix. And if we want to obtain a 1 in some other row, we should just add this cell in one of the first two matrices - the one that doesn’t contain it initially.
| | | | | |
| | | | | |
| X | | | | |
| | | X | | |
| | | | | |
| | | | | |
| | | | X | |
| | | | | |
| | | | | |
| | | | | |
| | X | | | X |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
Minimum of Degrees Kamil Debowski (0 AC)
The answer is just:
Minimum of Degrees
Now more seriously...
Minimum of Degrees
Minimum of Degrees
Minimum of Degrees