You are viewing a single comment's thread. Return to all comments →
Give bitwise OR a try. It did the job for me, slowest test is #4 with 2.16s and I did it in Ruby, not is some ultra-performance lang.
Seems like cookies are disabled on this browser, please enable them to open this website
ACM ICPC Team
You are viewing a single comment's thread. Return to all comments →
Give bitwise OR a try. It did the job for me, slowest test is #4 with 2.16s and I did it in Ruby, not is some ultra-performance lang.