I’m following the [Editorial][1], Please if someone could figure out whats the error in my code.
[2]
[1]: http://discuss.codechef.com/questions/4440/arigeom-editorial
[2]: http://ideone.com/aLVrzy
I’m following the [Editorial][1], Please if someone could figure out whats the error in my code.
[2]
[1]: http://discuss.codechef.com/questions/4440/arigeom-editorial
[2]: http://ideone.com/aLVrzy
I tried submitting after adding a “else assert(false);” at the end of your checking all cases block, and got runtime error, meaning you are unable to tag some case in any of the 6 cases. Although not a great help, hope it helps
Also, my own AC code misses some cases (cannot classify correctly) if I use int instead of long long for intermediary operations. You might want to switch to that too.