ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1210. Kind Spirits

WA #9
Posted by Sunkyu Hwang 20 Feb 2017 10:47
I keep getting non-zero return from WA #9 (meaning some of my scanf() fails)
Could you please forward WA #9 problem so that I can check parsing is proper?
Thank you,
Re: WA #9
Posted by Kondarattcev Denis [Ufa] 3 Nov 2017 19:18
Test #9 probably contains upper limit case, when there are max possible levels with max planets in each, I can suggest you to check your array sizes. I also got WA #9 after setting wrong integer value for "unreachable" planets - I've set it too small and it affected the result at this test
Re: WA #9
Posted by Ealham 23 Feb 2019 11:57
You're right...
After changing the values to a higher value for the unreachable nodes, I got AC.
Thanks.