MAXIMAL SCORE PATH - WA

WA has been constantly…poping in my screen

help me out …guys…

http://www.codechef.com/viewsolution/2518591

KOI TO HELP KAROOOOOOO

help me …:(::(:(:frowning:

any body der??

You have at least overflow in your code

see the first line of your output

0 100000000 100000000 100000000 100000000 41 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 25 -1218317952 -1218317952 165449800 -1218317968 24 520 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000

did n’t got u ???
what over flow u r talkng abt??
nd for what input am i suppose to chck the output??

probably you missed the link - there is your code and input and output I was talking about…

bt the output is as givn int the test cases

I do not understand. You thing that those negative values are ok for graph where edges have positive values?

Yes, output is copied from IdeOne, but those negative values are wrong for sure, but values like 41, 24, 25, 520, 165449800 (all that are not multiples of 10^8) are wrong too…

And also those two lines with zeros - it’s connected graph, so there should be zeros only on diagonal…

for which test cases r u taking abut???
in the link that u gave is the test cases which was given on the site nd the output matches with that…
plzzz…clarify which inputs are u taking???

dude open input number 2…!!!

1 Like

Sorry, I’m using IdeOne for a while so I didn’t realize that it can be new for you, there is second test case as @kunal361 said, click “show” next to #2 :wink:

hey could u provide me with the 2 case its not opening nw???