12754 - Display Problem

All about problems in Volume 127. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

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

12754 - Display Problem

Post by brianfry713 »

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

Post 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 :)
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

Post by brianfry713 »

Input:

Code: Select all

1
.
*
Output Bad
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

Post 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?
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 12754 - Display Problem

Post 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.
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

Post 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.
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 12754 - Display Problem

Post by brianfry713 »

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

Post 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?
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 12754 - Display Problem

Post by brianfry713 »

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

Return to “Volume 127 (12700-12799)”