The specified data output format is not used for most of the test cases.
Most test cases required surroinding the output with square brackets, as was used in the CTU FEE contest. However, the sample test data does NOT have the brackets...making it generally impossible to solve.
To account for this, the output format was toggled on the size of the input, which was able to resolve the two data sources.
The data should be adjusted to be consistent, and the problem statement updated accordingly.
uh_no 1년 전
The specified data output format is not used for most of the test cases.
Most test cases required surroinding the output with square brackets, as was used in the CTU FEE contest. However, the sample test data does NOT have the brackets...making it generally impossible to solve.
To account for this, the output format was toggled on the size of the input, which was able to resolve the two data sources.
The data should be adjusted to be consistent, and the problem statement updated accordingly.
https://www.acmicpc.net/source...
The specific output function used is included.