소스


~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)
Retrieved from http://wiki.zeropage.org/wiki.php/ReverseAndAdd/이동현
last modified 2021-02-07 05:27:54