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

nzec error

$
0
0

why this code is giving runtime error(nzec) in python... plese help!!

import math
test = input()
while test>0:
    n=input()
    if n==0:
        print '0'
    else:
        j = int(math.log(n,2))
        print int(pow(2,j))
    test-=1

Viewing all articles
Browse latest Browse all 39796

Trending Articles



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