|
|
Well, tested against that input and the output is identical, but the online judge in which I've been testing my solution (the one I linked to) was giving me WA , well, it would be a little lame if it always said wrong answer when it was actually a MLE.
Edit: Doh, the first time it gave me a WA because I didn't consider negative input correctly, the next few times it was MLE or time out, but I wasn't checking at the status area but at my email and it it was saying Wrong Answer even while in the status area it was really a MLE... |