September 2021 cohort is finalized with 45 amazing folks. For future cohorts Join the waitlist

UJ Solution



while 1:
	n,s,d=raw_input().partition(' ')
	if n=="0" and d=="0":
		break
	else:
		print (int(n)**(int(d)))

470+ Competitive Programming Solutions

If you like what you read subscribe to my newsletter.

I write essays on various engineering topics and share it through my weekly newsletter 👇