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

NZEC in Python

$
0
0

I am getting NZEC runtime error, please help me for this following code:

ch1 = input("")

ch = int(ch1[:1])

while (ch > 0):

kk = input("")
inp = kk[:3]
a, b = [int(i) for i in inp.split(' ')]
x = a**a
y = str(x)
x1 = y[:b]
x2 = y[-b:]
print x1, x2
ch = ch - 1

Viewing all articles
Browse latest Browse all 40121

Trending Articles



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