The output for https://codeforces.com/contest/1797/problem/C is supposed to be two integers. But in the test cases output, it shows 3 values.
Another interactive problem I attempted recently, https://codeforces.com/contest/1807/problem/E , expects a single value and the test cases show a single value.
So why there are 3 values for 1797/C ? It confused me during the contest making me think I was doing something wrong.
Three questions were asked and three answers were given, what's wrong about that?
The final output is just the cell of the king which is just r and c coordinates, just two integers. But the output format in the test cases shows 3 values. What is the 3rd value?
What do you not understand?
2
3 4
1 A
2 B
5 3
3 C
1 D
2 E
================================
? 2 3 A
? 2 4 B
! 2 2
? 2 2 C
? 5 2 D
? 5 3 E
! 5 1
Go to https://codeforces.com/contest/1797/submission/201311011 and click on the link that says "Click" to see test details. There in the output you would see 3 values instead of 2.
Why would you even focus on that? It's literally an interactive problem.
But the output format for 1807/E doesn't have the number of queries at the end in the test cases output.
It may have or may not have, because in interactive problem you do not need to care about the input and output. It is generated by the interactor to determine the verdict.
My submission failed for the pretest as the logic was incorrect but the three value output caused me confusion. That too, the first answer was "2 2" and locally that's what I got (due to incorrect testing) but the output in the test case was "1 2 2". I was wondering where the 1 came from rather than realizing the system was recognizing it as "1 2" due to the flaw with my logic during the context.
So what's the problem? You should have tested correctly.