id
stringlengths
64
64
train
listlengths
5
5
query
listlengths
5
21
solution
listlengths
5
21
d5b1e104741b246d96acd08cd330a66ab410440c93f540a8888058744f3c604f
[ { "input": [ 0, 3, 1, 0, 3, 2, 0, 3, 3, 0, 3, 4, 0, 4, 1 ], "output": [ 4, 0, 0, 4, 3, 1, 0, 4, 4, 4, 1, 0, 1, 0, 0 ] }, { "input": [ 1, 2, 3, 1, 2, 4, 1, 3, 2, 1, 3, 3, 1, 3, 4 ], "output": [ 0, 3, 4, 1, 1, 0, 0, 4, 3, 1, 1, 1, 0, 1, 3 ] }, { "input": [ 1, 0, 1, 2, 0, 1, 3, 0, 1, 4, 0, 2, 1, 0, 2 ], "output": [ 0, 1, 4, 2, 1, 0, 0, 4, 0, 0, 4, 2, 4, 1, 2 ] }, { "input": [ 2, 4, 1, 3, 2, 1, 3, 3, 1, 3, 4, 1, 4, 2, 1 ], "output": [ 1, 0, 0, 4, 3, 1, 1, 1, 0, 1, 3, 3, 0, 1, 0 ] }, { "input": [ 0, 4, 3, 0, 4, 4, 1, 1, 1, 2, 1, 1, 3, 1, 1 ], "output": [ 4, 0, 1, 4, 3, 2, 1, 4, 0, 2, 0, 0, 3, 0, 1 ] } ]
[ 0, 3, 3, 2, 0, 0, 1, 4, 4, 2, 1, 2, 3, 1, 1 ]
[ 4, 4, 1, 1, 1, 0, 0, 2, 2, 1, 0, 3, 4, 0, 0 ]
a4005327fe3db66eb3930224febf9dde52f248b006c708fa155e2f8643115287
[ { "input": [ 2, 2, 2, 2, 0, 0, 0, 2, 0 ], "output": [ 0, 0, 2, 0, 0, 0, 0, 0, 0 ] }, { "input": [ 0, 2, 2, 2, 0, 0, 0, 0, 0 ], "output": [ 0, 0, 0, 0, 0, 0, 2, 2, 2 ] }, { "input": [ 2, 2, 2, 2, 2, 0, 0, 0, 0 ], "output": [ 0, 2, 0, 2, 0, 0, 0, 2, 0 ] }, { "input": [ 2, 0, 0, 0, 0, 0, 0, 0, 0 ], "output": [ 0, 0, 0, 2, 2, 2, 2, 2, 2 ] }, { "input": [ 2, 0, 0, 0, 0, 0, 0, 0, 2 ], "output": [ 0, 0, 0, 2, 2, 2, 0, 0, 0 ] } ]
[ 2, 2, 2, 0, 0, 0, 2, 0, 0 ]
[ 0, 2, 0, 0, 0, 0, 0, 0, 0 ]
dc4594b232e9da98ef40562bf5ed6341787e0c2cd3823b16e4a4865dec3f13bc
[ { "input": [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "output": [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ] }, { "input": [ 0, 0, 1, 0, 0, 0, 0, 0, 0 ], "output": [ 0, 1, 0, 0, 0, 0, 0, 0, 0 ] }, { "input": [ 0, 1, 1, 2, 1, 0, 1, 1, 2 ], "output": [ 2, 1, 0, 0, 2, 0, 0, 0, 1 ] }, { "input": [ 0, 1, 0, 0, 0, 0, 0, 1, 0 ], "output": [ 1, 0, 0, 0, 0, 0, 1, 0, 0 ] }, { "input": [ 0, 0, 1, 0, 0, 0, 0, 0, 0 ], "output": [ 0, 1, 0, 0, 0, 0, 0, 0, 0 ] } ]
[ 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
3c96dfd021cbe1e57a267599eab7e8b50e4c2069850c72008bc2c3f917c708e5
[ { "input": [ 3, 2, 3, 3, 3, 0, 0, 0, 1, 0, 0, 2, 0, 0 ], "output": [ 3, 0, 3, 3, 3, 0, 0, 0, 2, 0, 0, 3, 0, 0 ] }, { "input": [ 3, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 1, 1 ], "output": [ 3, 0, 0, 0, 2, 0, 0, 3, 0, 0, 0, 0, 2, 2 ] }, { "input": [ 2, 0, 0, 3, 0, 1, 1, 0, 1, 2, 0, 1, 3, 0 ], "output": [ 3, 0, 0, 0, 0, 2, 2, 0, 2, 3, 0, 2, 0, 0 ] }, { "input": [ 0, 3, 1, 0, 3, 2, 0, 3, 3, 1, 1, 1, 2, 1 ], "output": [ 0, 0, 2, 0, 3, 3, 0, 3, 3, 2, 2, 2, 3, 2 ] }, { "input": [ 3, 3, 3, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0 ], "output": [ 3, 3, 3, 0, 0, 0, 2, 0, 0, 3, 0, 0, 0, 0 ] } ]
[ 0, 2, 2, 3, 3, 3, 1, 3, 0, 3, 0, 3, 1, 1 ]
[ 0, 3, 0, 3, 3, 3, 2, 0, 0, 0, 0, 0, 2, 2 ]
56fab834391aaa7d99801f70050f69e5902a15292ab2df69f4a2757176f43fc4
[ { "input": [ 2, 0, 0, 3, 0, 1, 1, 0, 1, 2, 0, 1, 3 ], "output": [ 2, 0, 0, 1, 3, 0, 0, 0, 2, 3, 0, 1, 0 ] }, { "input": [ 0, 3, 1, 0, 3, 2, 0, 3, 3, 1, 1, 1, 2 ], "output": [ 2, 0, 1, 3, 2, 3, 3, 3, 3, 3, 2, 1, 0 ] }, { "input": [ 1, 0, 2, 2, 0, 2, 3, 0, 3, 1, 0, 3, 2 ], "output": [ 2, 0, 0, 0, 3, 3, 2, 2, 0, 1, 3, 2, 3 ] }, { "input": [ 0, 1, 3, 0, 2, 1, 0, 2, 2, 0, 2, 3, 0 ], "output": [ 0, 1, 0, 3, 3, 2, 0, 0, 0, 3, 3, 2, 2 ] }, { "input": [ 2, 3, 2, 3, 3, 3, 0, 0, 0, 1, 0, 0, 2 ], "output": [ 1, 3, 0, 1, 0, 3, 0, 0, 0, 1, 0, 0, 2 ] } ]
[ 1, 3, 0, 3, 1, 3, 2, 0, 0, 3, 1, 2, 2 ]
[ 2, 0, 2, 0, 3, 3, 3, 0, 0, 0, 2, 3, 3 ]
83086e923cdf3a55438da51de8533edf15682eb6536deb957839d49d6ec432cc
[ { "input": [ 2, 0, 1, 0, 0, 2, 0, 0, 2 ], "output": [ 1, 0, 0, 2, 0, 0, 2, 0, 2 ] }, { "input": [ 0, 0, 2, 0, 0, 0, 0, 2, 0 ], "output": [ 2, 0, 0, 0, 0, 2, 0, 0, 0 ] }, { "input": [ 2, 2, 1, 1, 1, 1, 1, 2, 1 ], "output": [ 0, 0, 0, 0, 0, 0, 2, 0, 0 ] }, { "input": [ 0, 0, 2, 0, 0, 0, 0, 2, 0 ], "output": [ 2, 0, 0, 0, 0, 2, 0, 2, 0 ] }, { "input": [ 0, 2, 0, 0, 0, 0, 0, 0, 2 ], "output": [ 0, 0, 0, 0, 0, 0, 2, 0, 0 ] } ]
[ 0, 0, 0, 2, 0, 0, 0, 0, 2 ]
[ 0, 2, 0, 0, 0, 0, 2, 0, 0 ]
6da6c84564f48e6bc486bb4179e7e56a1e21c10d04ca7c8b22958e3ea5fbfe1d
[ { "input": [ 2, 2, 2, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ], "output": [ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 0 ] }, { "input": [ 0, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 0, 2, 1 ], "output": [ 1, 2, 0, 2, 0, 0, 0, 1, 2, 0, 1, 0, 0, 0 ] }, { "input": [ 1, 2, 0, 1, 0, 2, 1, 0, 1, 0, 2, 2, 0, 1 ], "output": [ 0, 0, 0, 1, 0, 1, 0, 0, 2, 0, 1, 0, 0, 0 ] }, { "input": [ 0, 2, 0, 0, 0, 1, 1, 0, 0, 0, 1, 2, 0, 0 ], "output": [ 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 2 ] }, { "input": [ 1, 1, 2, 0, 0, 1, 2, 1, 0, 0, 1, 2, 2, 0 ], "output": [ 1, 0, 0, 1, 0, 1, 0, 0, 2, 0, 2, 0, 2, 1 ] } ]
[ 0, 0, 1, 0, 1, 2, 0, 1, 0, 2, 2, 0, 1, 0 ]
[ 0, 0, 1, 2, 0, 0, 0, 1, 0, 1, 0, 1, 0, 2 ]
3a1871abf6fa6fdb4e61d94a7a6df5bf435a18e8dd9c8374109718c403cf6f48
[ { "input": [ 3, 3, 1, 1, 1, 1, 1, 1, 3, 2 ], "output": [ 2, 0, 2, 1, 1, 1, 1, 2, 2, 2 ] }, { "input": [ 0, 2, 1, 1, 1, 1, 2, 2, 2, 0 ], "output": [ 0, 1, 0, 1, 1, 0, 2, 2, 0, 0 ] }, { "input": [ 1, 0, 3, 2, 0, 2, 0, 2, 2, 0 ], "output": [ 3, 0, 2, 2, 0, 3, 0, 0, 0, 3 ] }, { "input": [ 1, 0, 3, 1, 2, 2, 0, 3, 0, 3 ], "output": [ 1, 0, 0, 2, 2, 0, 2, 1, 2, 1 ] }, { "input": [ 2, 1, 2, 2, 2, 3, 2, 0, 0, 3 ], "output": [ 0, 2, 2, 2, 0, 0, 2, 3, 1, 2 ] } ]
[ 1, 1, 3, 0, 2, 2, 0, 3, 0, 0 ]
[ 0, 2, 0, 2, 0, 0, 2, 1, 1, 1 ]
61ad13aa9843cb7c7291f798ac6a1da98cfca69536f4c904a14f6cd9e34b0898
[ { "input": [ 1, 3, 2, 1, 3, 1, 0, 0, 1, 0 ], "output": [ 1, 0, 0, 0, 2, 3, 3, 3, 3, 3 ] }, { "input": [ 3, 1, 0, 0, 1, 0, 0, 2, 3, 3 ], "output": [ 2, 3, 3, 3, 3, 3, 1, 2, 1, 3 ] }, { "input": [ 3, 1, 1, 2, 0, 2, 0, 0, 1, 0 ], "output": [ 1, 2, 3, 3, 3, 1, 1, 3, 3, 3 ] }, { "input": [ 0, 0, 1, 0, 0, 2, 0, 0, 3, 0 ], "output": [ 3, 3, 3, 3, 1, 1, 1, 3, 3, 3 ] }, { "input": [ 1, 0, 0, 1, 3, 1, 2, 3, 2, 1 ], "output": [ 3, 3, 3, 3, 2, 0, 0, 1, 0, 0 ] } ]
[ 2, 0, 2, 2, 2, 0, 0, 1, 0, 0 ]
[ 3, 3, 3, 0, 3, 1, 3, 3, 3, 3 ]
86540b6423ec0d9edf9e7daa914379be414955de733be3cff7f7edecaf3f2f58
[ { "input": [ 0, 2, 2, 2, 0, 3, 3, 3, 3, 3, 3, 0, 3 ], "output": [ 1, 3, 2, 3, 2, 2, 3, 3, 3, 3, 2, 2, 3 ] }, { "input": [ 0, 0, 2, 2, 0, 2, 2, 3, 2, 3, 3, 2, 2 ], "output": [ 2, 1, 3, 3, 3, 3, 0, 0, 3, 3, 3, 0, 2 ] }, { "input": [ 2, 1, 3, 2, 3, 2, 2, 3, 3, 3, 3, 2, 2 ], "output": [ 3, 2, 2, 3, 0, 0, 0, 3, 3, 3, 3, 0, 0 ] }, { "input": [ 2, 3, 3, 2, 0, 0, 2, 0, 0, 3, 0, 2, 1 ], "output": [ 3, 3, 3, 2, 1, 1, 1, 1, 3, 3, 2, 3, 2 ] }, { "input": [ 3, 3, 3, 0, 2, 0, 3, 3, 3, 3, 3, 3, 3 ], "output": [ 2, 3, 2, 2, 1, 2, 2, 3, 3, 3, 3, 3, 2 ] } ]
[ 2, 1, 3, 2, 3, 2, 1, 1, 3, 3, 2, 2, 0 ]
[ 2, 2, 2, 3, 0, 2, 3, 2, 0, 3, 0, 3, 3 ]
74c90acd913ccd655eb549f4999854a8c11a2ba2b2726940ff4829db31f309eb
[ { "input": [ 4, 0, 4, 1, 0, 4, 2, 0, 4, 3, 0, 4, 4, 1, 1, 1 ], "output": [ 2, 0, 2, 0, 0, 1, 4, 2, 2, 0, 0, 0, 0, 2, 2, 1 ] }, { "input": [ 2, 1, 3, 3, 1, 3, 4, 1, 4, 2, 1, 4, 3, 1, 4, 4 ], "output": [ 4, 2, 0, 0, 0, 2, 0, 2, 2, 1, 0, 0, 2, 0, 0, 3 ] }, { "input": [ 2, 0, 1, 3, 0, 1, 4, 0, 2, 1, 0, 2, 2, 0, 2, 3 ], "output": [ 3, 4, 1, 0, 3, 0, 2, 2, 3, 2, 4, 0, 0, 3, 0, 0 ] }, { "input": [ 4, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 1 ], "output": [ 0, 3, 3, 3, 0, 3, 0, 0, 0, 4, 0, 4, 3, 3, 0, 4 ] }, { "input": [ 0, 2, 1, 0, 2, 2, 0, 2, 3, 0, 2, 4, 0, 3, 1, 0 ], "output": [ 2, 3, 2, 4, 0, 0, 3, 0, 0, 0, 4, 1, 0, 0, 1, 3 ] } ]
[ 0, 1, 3, 0, 0, 4, 3, 3, 1, 3, 4, 1, 3, 4, 1, 2 ]
[ 4, 1, 0, 4, 3, 2, 2, 0, 0, 2, 0, 0, 2, 0, 0, 3 ]
821862d9f90ae16d5a33557bb7fe83a95f9fb4aee9c316bb327699429fb32b15
[ { "input": [ 0, 0, 0, 4, 0 ], "output": [ 1, 1, 0, 0, 0 ] }, { "input": [ 0, 3, 0, 1, 0 ], "output": [ 0, 3, 0, 0, 2 ] }, { "input": [ 0, 0, 0, 0, 0 ], "output": [ 1, 1, 1, 1, 0 ] }, { "input": [ 3, 0, 0, 0, 0 ], "output": [ 3, 0, 1, 1, 1 ] }, { "input": [ 1, 1, 0, 3, 0 ], "output": [ 0, 0, 0, 3, 0 ] } ]
[ 0, 3, 0, 0, 0 ]
[ 0, 3, 0, 1, 1 ]
21a17d3e5aba27db8e05adc89ba37d1435d1bdf938c7ef58982102c761a5da57
[ { "input": [ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0 ], "output": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ] }, { "input": [ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "output": [ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] }, { "input": [ 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ], "output": [ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ] }, { "input": [ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], "output": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ] }, { "input": [ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], "output": [ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ] } ]
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ]
[ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
16e008015fc32efa47a064105cb678de0d730020addd129203015e5bc7b07bec
[ { "input": [ 2, 3, 1, 3, 2, 1, 3 ], "output": [ 2, 1, 3, 3, 3, 3, 2 ] }, { "input": [ 0, 1, 0, 0, 2, 0, 0 ], "output": [ 0, 0, 1, 1, 0, 0, 0 ] }, { "input": [ 0, 2, 1, 0, 2, 2, 0 ], "output": [ 0, 1, 1, 2, 2, 1, 0 ] }, { "input": [ 1, 3, 1, 2, 2, 1, 2 ], "output": [ 1, 0, 1, 2, 1, 0, 2 ] }, { "input": [ 3, 0, 0, 0, 1, 0, 0 ], "output": [ 0, 1, 0, 0, 0, 1, 1 ] } ]
[ 0, 0, 0, 2, 2, 1, 3 ]
[ 1, 0, 1, 2, 1, 3, 3 ]
2412ceaee49c6631d82dbdbbc945612a26ec43e8ebc08c98d3cecb0ea368440a
[ { "input": [ 4, 1, 0, 0, 5, 0, 0, 0, 0, 0, 3, 2, 0, 0 ], "output": [ 0, 0, 5, 5, 5, 0, 0, 0, 0, 2, 0, 0, 0, 4 ] }, { "input": [ 0, 1, 3, 0, 1, 0, 3, 0, 2, 2, 0, 1, 0, 0 ], "output": [ 1, 0, 2, 5, 1, 0, 0, 0, 0, 1, 1, 1, 5, 0 ] }, { "input": [ 1, 5, 0, 0, 5, 5, 4, 1, 5, 0, 0, 2, 0, 0 ], "output": [ 0, 1, 0, 5, 0, 1, 3, 0, 1, 0, 3, 0, 0, 5 ] }, { "input": [ 0, 0, 3, 0, 5, 1, 2, 5, 0, 1, 1, 4, 0, 5 ], "output": [ 5, 2, 0, 0, 5, 0, 2, 0, 4, 0, 5, 5, 0, 5 ] }, { "input": [ 5, 1, 0, 2, 5, 1, 5, 0, 0, 0, 5, 0, 5, 0 ], "output": [ 1, 0, 4, 4, 2, 0, 1, 0, 0, 5, 5, 2, 5, 4 ] } ]
[ 5, 0, 5, 2, 0, 0, 0, 0, 4, 1, 3, 0, 1, 1 ]
[ 5, 2, 1, 0, 0, 0, 0, 0, 0, 4, 2, 5, 0, 0 ]
dd565e276c6a0be933878d15d970804d080098ad8781f7cbe04ee91353064a81
[ { "input": [ 0, 4, 0, 0, 4, 0, 3, 3, 3, 0, 4, 0, 0, 3, 3, 0, 4 ], "output": [ 0, 4, 0, 0, 4, 0, 0, 4, 3, 0, 4, 0, 0, 0, 3, 0, 4 ] }, { "input": [ 0, 4, 0, 0, 4, 0, 3, 3, 3, 0, 4, 0, 0, 3, 3, 0, 4 ], "output": [ 0, 4, 0, 0, 4, 0, 0, 4, 3, 0, 4, 0, 0, 0, 3, 0, 4 ] }, { "input": [ 4, 0, 0, 3, 3, 3, 0, 4, 0, 0, 0, 3, 3, 3, 0, 0, 4 ], "output": [ 4, 0, 0, 0, 4, 3, 0, 4, 0, 3, 0, 0, 4, 3, 3, 0, 0 ] }, { "input": [ 4, 1, 0, 4, 2, 0, 4, 3, 0, 4, 4, 1, 1, 1, 2, 1, 1 ], "output": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 2, 0, 4, 2, 1, 3 ] }, { "input": [ 0, 4, 0, 3, 3, 3, 0, 4, 0, 0, 0, 3, 3, 0, 4, 0, 0 ], "output": [ 0, 4, 0, 0, 4, 3, 0, 4, 0, 3, 0, 0, 3, 0, 4, 0, 3 ] } ]
[ 4, 0, 3, 0, 0, 3, 0, 4, 0, 3, 3, 3, 0, 4, 0, 0, 0 ]
[ 4, 0, 0, 3, 0, 0, 0, 4, 0, 0, 4, 3, 0, 4, 0, 3, 0 ]
9c946444f5b7e5aec1f87b8f5bd0d7903119f36fa9fc53cc0be85adcc45704a0
[ { "input": [ 3, 0, 3, 1, 1, 1, 1, 1, 0, 0, 0, 2, 0 ], "output": [ 1, 3, 0, 3, 2, 2, 2, 0, 3, 1, 1, 0, 1 ] }, { "input": [ 0, 0, 0, 2, 3, 3, 2, 0, 2, 3, 2, 0, 2 ], "output": [ 2, 1, 1, 0, 3, 3, 0, 0, 0, 0, 0, 0, 3 ] }, { "input": [ 0, 1, 1, 1, 0, 0, 3, 2, 3, 1, 3, 0, 0 ], "output": [ 3, 0, 2, 0, 3, 2, 0, 0, 1, 1, 0, 2, 1 ] }, { "input": [ 2, 1, 0, 2, 2, 0, 2, 3, 0, 3, 1, 0, 3 ], "output": [ 3, 2, 2, 3, 3, 0, 0, 0, 3, 0, 3, 0, 0 ] }, { "input": [ 0, 3, 1, 2, 1, 2, 3, 3, 3, 2, 1, 1, 3 ], "output": [ 2, 0, 1, 3, 3, 2, 3, 1, 3, 2, 3, 3, 0 ] } ]
[ 2, 2, 0, 2, 3, 0, 3, 1, 0, 3, 2, 0, 3 ]
[ 3, 3, 0, 0, 0, 3, 0, 3, 0, 0, 0, 0, 1 ]