WA in Arigeom Beats

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
2 Likes

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 :slight_smile:

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.

After switching to long long http://ideone.com/Ma5ws1 still getting wa.

1 Like