UVA online judge, input/output mistake

Правка en1, от 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()
{
    ios_base::sync_with_stdio(false);
	cin.tie(0), cout.tie(0);
}

Any explanations ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский X-O__O-X 2019-08-07 02:40:33 717 Initial revision (published)