Interactive Array Guessing
Time limit3sMemory limit512 MB
Given n hidden arrays of up to 10 distinct values each, find all arrays using queries that return concatenated contents of chosen arrays, without delimiters.
- Level
Hard8 of 10
- Topics
- Implementation, Divide and conquer, Math
- Solved
- No attempts yet
문제
Time limit: 3000 ms. Memory limit: 512 MB.
This is an interactive problem.
The jury has prepared non-empty integer arrays . Each array consists of at most 10 positive integers not exceeding 1000. The elements of each array are pairwise distinct.
You can make queries of the following kind: choose several indices , where and . These indices do not have to be distinct. The testing system tells you the contents of arrays in the same order. However, these contents are concatenated without any delimiters.
Your task is to find the contents of all arrays.