12669 - Blogger language

All about problems in Volume 126. 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
creativeminds
New poster
Posts: 1
Joined: Fri Nov 22, 2013 6:53 am

Re: 12669 - Blogger language

Post by creativeminds » Fri Nov 22, 2013 6:59 am

Can anyone tell my why I'm getting constant WA's for this problem? My program produces correct outputs for all the sample inputs. It seems to me that the input terminating condition is the culprit. For this problem, the number of test cases is not definite, so program should continue till there are valid inputs, am I right? Also should there any new line be printed between the cases? Also should I need to take of any tricky cases? Thanks in advance.

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

Re: 12669 - Blogger language

Post by brianfry713 » Fri Nov 22, 2013 10:10 pm

Yes the code you posted at:
http://pastebin.com/EhaB75h6
is getting WA, but I think it should be getting TLE. It is taking a long time to judge and coming back with a 0 second runtime, so maybe that is an issue with the judge.
Read the input as long as there is a value N.
No new line between cases.
Try solving it using segment trees and lazy propagation.
Check input and AC output for thousands of problems on uDebug!

emmasam
New poster
Posts: 1
Joined: Wed Sep 17, 2014 7:14 pm

Re: 12669 - Blogger language

Post by emmasam » Thu Sep 18, 2014 7:00 am

The judge seems to be working now, sometimes it goes down or gets slow.
emma

Post Reply

Return to “Volume 126 (12600-12699)”