U E D R , A S I H C RSS

Reverse And Add/이동현

No older revisions available

No older revisions available



소스


~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 2009-05-27 07:09:19
Processing time 0.0882 sec