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 » Wed Apr 23, 2014 7:56 pm

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 » Wed Jun 18, 2014 9:53 pm

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 » Thu Jun 19, 2014 1:42 am

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 » Sun Jan 04, 2015 6:27 pm

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 » Tue Jan 06, 2015 5:54 am

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 » Tue Jan 06, 2015 9:09 pm

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 » Wed Jan 07, 2015 12:24 am

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 » Wed Jan 14, 2015 11:52 pm

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 » Thu Jan 15, 2015 1:14 am

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

Post Reply

Return to “Volume 127 (12700-12799)”