Problem1218--判断满足条件的三位数

1218: 判断满足条件的三位数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求实现一个函数,统计给定区间内的三位数中有两位数字相同的完全平方数(如144、676)的个数。 函数接口定义: int search( int n ); 其中传入的参数int n是一个三位数的正整数(最高位数字非0)。函数search返回[101, n]区间内所有满足条件的数的个数。 裁判测试程序样例: #include #include int search( int n ); int main() { int number; scanf(

Input

其中传入的参数int n是一个三位数的正整数(最高位数字非0)

Output

其中传入的参数int n是一个三位数的正整数(最高位数字非0)

Sample Input Copy

500

Sample Output Copy

count=6

Source/Category