Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Changing bits-Hackerrank

$
0
0

Well I've been trying this question on www.hackerrank.com for the past 3-4 days but am still not getting the perfect score.The problem is that in my code http://ideone.com/kfql6T when I used unsigned short as a chunk which is 16bit it works fine except for 3 test cases where it shows a TLE. So instead of short I used unsigned long long 64 bit.In this case only 2 test cases are right and on ideone I'm getting a SIGSEGV(http://ideone.com/lGkUmN)


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>