Modified Kaprekar Numbers】的更多相关文章

Link: https://www.hackerrank.com/challenges/kaprekar-numbers from __future__ import print_function def find_kaprekar(num): num_square = str(num ** 2) if len(num_square) == 1: if num == 1: print (num, end = ' ') return True elif len(num_square) % 2 ==…
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by taking the second number from the first one. Repeat in…
Self Numbers Time Limit: 20000/10000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5392    Accepted Submission(s): 2388 Problem DescriptionIn 1949 the Indian mathematician D.R. Kaprekar discovered a class of number…
Setting Display Formats Using Microsoft Excel: Right-click on any desired cell and select Format Cells option.A dialog appears that allows you to set the display formats of any kind of value. Formatting Cells using Microsoft Excel In the left side of…
Self Numbers Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 22101   Accepted: 12429 Description In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to…
Self Numbers Time Limit: 20000/10000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6227    Accepted Submission(s): 2728 Problem Description In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbe…
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by taking the second number from the first one. Repeat in…
1.链接地址: http://poj.org/problem?id=1316 http://bailian.openjudge.cn/practice/1316 2.题目: 总时间限制: 1000ms 内存限制: 65536kB 描述 In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define…
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by taking the second number from the first one. Repeat in…
If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. Not all numbers produce palindromes so quickly. For example, 349 + 943 = 1292, 1292 + 2921 = 4213 4213 + 3124 = 7337 That is, 349 took three iterations to arrive at a palindrome. Al…