3 ms·
The website gives an example: { "train": [ {"input": [[1, 0], [0, 0]], "output": [[1, 1], [1, 1]]}, {"input": [[0, 0], [4, 0]], "outp
by PontifexMinimus 2y ago
The website gives an example:
{
"train": [
{"input": [[1, 0], [0, 0]], "output": [[1, 1], [1, 1]]},
{"input": [[0, 0], [4, 0]], "output": [[4, 4], [4, 4]]},
{"input": [[0, 0], [6, 0]], "output": [[6, 6], [6, 6]]}
],
"test": [
{"input": [[0, 0], [0, 8]], "output": [[8, 8], [8, 8]]}
]
}
But why restrict yourself to JSON that codes for 2-d coloured grids? Why not also allow:
{
"train": [
{"input": [[1, 0], [0, 0]], "output": 1},
{"input": [[0, 0], [4, 0]], "output": 4},
{"input": [[0, 0], [6, 0]], "output": 6}
]
}
Where the rule might be to output the biggest number in the input, or add them up (and the solver has to work out which).