Page 1 of 1

12754 - Display Problem

Posted: Wed Apr 23, 2014 7:56 pm
by brianfry713
Input:

Code: Select all

1
..
..
..
*
AC output:

Code: Select all

Case 1: 0

Re: 12754 - Display Problem

Posted: Wed Jun 18, 2014 9:53 pm
by raj
Edited..
oops i,m sorry brain fry is right
There is also a tricky case if D<0 then it will be Bad :)

Re: 12754 - Display Problem

Posted: Thu Jun 19, 2014 1:42 am
by brianfry713
Input:

Code: Select all

1
.
*
Output Bad

Re: 12754 - Display Problem

Posted: Sun Jan 04, 2015 6:27 pm
by dreamoon
brianfry713 wrote:Input:

Code: Select all

1
..
..
..
*
AC output:

Code: Select all

Case 1: 0
The statement says: "The degree of a display is a positive integer D".
Why the output is 0 for this test case?

Re: 12754 - Display Problem

Posted: Tue Jan 06, 2015 5:54 am
by brianfry713
That test case is in the judge's input, and to get AC you need to print 0.
Instead of positive integer it should read non-negative.

Re: 12754 - Display Problem

Posted: Tue Jan 06, 2015 9:09 pm
by dreamoon
brianfry713 wrote:That test case is in the judge's input, and to get AC you need to print 0.
Instead of positive integer it should read non-negative.
So if according the statement of this problem correctly, I should print "Bad".
But I get WA just because the testdata of this problem in UVa is wrong.

Can I understand it as above?
I'm afraid that I get WA because I misunderstand the statement.

Re: 12754 - Display Problem

Posted: Wed Jan 07, 2015 12:24 am
by brianfry713
The problem statement is wrong, to get AC you should print 0.

Re: 12754 - Display Problem

Posted: Wed Jan 14, 2015 11:52 pm
by dreamoon
brianfry713 wrote:The problem statement is wrong, to get AC you should print 0.
Dose it exist any way to repair the problem statements?

Re: 12754 - Display Problem

Posted: Thu Jan 15, 2015 1:14 am
by brianfry713