Problem1822--统计某类完全平方数

1822: 统计某类完全平方数

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

Description

本题要求实现一个函数,判断任一给定整数N是否满足条件:它是完全平方数,又至少有两位数字相同,如144、676等。 函数接口定义: int IsTheNumber ( const int N ); 其中N是用户传入的参数。如果N满足条件,则该函数必须返回1,否则返回0。 裁判测试程序样例: #include #include int IsTheNumber ( const int N ); int main() { int n1, n2, i, cnt; scanf(

Input

整数N

Output

如果N满足条件,则该函数必须返回1,否则返回0

Sample Input Copy

105 500

Sample Output Copy

cnt = 6

Source/Category

14