U E D R , A S I H C RSS

Reverse And Add/이동현

소스


~cpp 
def reverse(n, count):
	if(count ==1000):
		print "회문을 찾을 수 없는수?"
	if(str(n) != str(n)[::-1]):
		reverse(n+int(str(n)[::-1]), count+1)
	else:
		print n

~cpp 
reverse(195,0)
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:27:54
Processing time 0.0132 sec