12669 - Blogger language
Moderator: Board moderators
-
- New poster
- Posts: 1
- Joined: Fri Nov 22, 2013 6:53 am
Re: 12669 - Blogger language
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.
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 12669 - Blogger language
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.
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!
Re: 12669 - Blogger language
The judge seems to be working now, sometimes it goes down or gets slow.
emma