Rating changes for the last round are temporarily rolled back. They will be returned soon. ×

UVA online judge, input/output mistake

Revision en1, by X-O__O-X, 2019-08-07 02:40:33

I have two solutions first, second for this problem You probably don't have to read all of this. The two solutions are identical except for the following:

I got wrong answer in one case: when I invoke function PLAY() and use cout like this

cout << "Impossible.\n";

but when I use cout but not call PLAY() or use printf(), answer is accepted.

void PLAY()
	cin.tie(0), cout.tie(0);

Any explanations ?


  Rev. Lang. By When Δ Comment
en1 English X-O__O-X 2019-08-07 02:40:33 717 Initial revision (published)