## 12754 - Display Problem

Moderator: Board moderators

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### 12754 - Display Problem

Input:

Code: Select all

``````1
..
..
..
*``````
AC output:

Code: Select all

``Case 1: 0``
Check input and AC output for thousands of problems on uDebug!

raj
Learning poster
Posts: 78
Joined: Fri Feb 15, 2013 5:39 pm

### Re: 12754 - Display Problem

Edited..
oops i,m sorry brain fry is right
There is also a tricky case if D<0 then it will be Bad
Last edited by raj on Fri Jun 20, 2014 10:24 am, edited 1 time in total.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### Re: 12754 - Display Problem

Input:

Code: Select all

``````1
.
*
``````
Check input and AC output for thousands of problems on uDebug!

dreamoon
New poster
Posts: 8
Joined: Wed Mar 18, 2009 2:33 am

### Re: 12754 - Display Problem

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?

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### Re: 12754 - Display Problem

That test case is in the judge's input, and to get AC you need to print 0.
Check input and AC output for thousands of problems on uDebug!

dreamoon
New poster
Posts: 8
Joined: Wed Mar 18, 2009 2:33 am

### Re: 12754 - Display Problem

brianfry713 wrote:That test case is in the judge's input, and to get AC you need to print 0.
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.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### Re: 12754 - Display Problem

The problem statement is wrong, to get AC you should print 0.
Check input and AC output for thousands of problems on uDebug!

dreamoon
New poster
Posts: 8
Joined: Wed Mar 18, 2009 2:33 am

### Re: 12754 - Display Problem

brianfry713 wrote:The problem statement is wrong, to get AC you should print 0.
Dose it exist any way to repair the problem statements?

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### Re: 12754 - Display Problem

Check input and AC output for thousands of problems on uDebug!