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)
~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)