文件名称:pro9
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
如果一个数从左往右读和从右往左读都是一样,那么这个数就叫做“回文数”。例如,12321就是一个回文数,而77778就不是。当然,回文数的首和尾都应是非零的,因此0220就不是回文数。
事实上,有一些数(如21),在十进制时不是回文数,但在其它进制(如二进制时为10101)时就是回文数。
编一个程序,从文件读入两个十进制数N (1 <= N <= 15)S (0 < S < 10000)然后找出前N个满足大于S且在两种或两种以上进制(二进制至十进制)上是回文数的十进制数,输出到文件上。-If a number is read from left to right and right to left reading are the same, then this number is called the " palindrome." For example, the 12321 is a palindrome, while 77778 is not. Of course, the first palindrome and tail should be non-zero, so 0220 is not a palindrome. In fact, there are some number (eg 21), when the decimal is not a palindrome, but in the other band (such as binary when 10101) When is a palindrome. Compile a program from a file read two decimal number N (1 < = N < = 15) S (0 < S < 10000) and then meet more than before to find the N and S in two or more hexadecimal ( binary to decimal) numbers on the decimal number is a palindrome, and output to the file.
事实上,有一些数(如21),在十进制时不是回文数,但在其它进制(如二进制时为10101)时就是回文数。
编一个程序,从文件读入两个十进制数N (1 <= N <= 15)S (0 < S < 10000)然后找出前N个满足大于S且在两种或两种以上进制(二进制至十进制)上是回文数的十进制数,输出到文件上。-If a number is read from left to right and right to left reading are the same, then this number is called the " palindrome." For example, the 12321 is a palindrome, while 77778 is not. Of course, the first palindrome and tail should be non-zero, so 0220 is not a palindrome. In fact, there are some number (eg 21), when the decimal is not a palindrome, but in the other band (such as binary when 10101) When is a palindrome. Compile a program from a file read two decimal number N (1 < = N < = 15) S (0 < S < 10000) and then meet more than before to find the N and S in two or more hexadecimal ( binary to decimal) numbers on the decimal number is a palindrome, and output to the file.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pro9
....\bin
....\...\Debug
....\...\.....\pro9.exe
....\dual.out.txt
....\dualpal.in.txt
....\dualpal.out.txt
....\main.cpp
....\main.zip
....\obj
....\...\Debug
....\...\.....\main.o
....\pro9.cbp
....\pro9.depend
....\pro9.layout
....\pro9.workspace