Problem1727--使用函数判断完全平方数

1727: 使用函数判断完全平方数

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

Description

本题要求实现一个判断整数是否为完全平方数的简单函数。 函数接口定义: int IsSquare( int n ); 其中n是用户传入的参数,在长整型范围内。如果n是完全平方数,则函数IsSquare必须返回1,否则返回0。 裁判测试程序样例: #include #include int IsSquare( int n ); int main() { int n; scanf(

Input

其中n是用户传入的参数,在长整型范围内

Output

如果n是完全平方数,则函数IsSquare必须返回1,否则返回0。

Sample Input Copy

10

Sample Output Copy

NO

Source/Category

314