level 11
a的n次方 : pow(a,n)
使用pow()需要#include <math.h>
2018年11月06日 12点11分
2
#include <stdio.h> #
include int main() {int a,b; scanf("%d",&a); b=(int)sqrt(a); if(a=pow(b,2)) printf("Y"); else printf("N")}
2018年11月06日 15点11分
大佬(紧紧抱住),还是不行啊,能帮我再看看吗_(:з」∠)_
2018年11月06日 15点11分
谢谢大佬(^∇^)
2018年11月06日 17点11分
level 6
大佬们早点睡呀
万分感谢_(:з」∠)_
问题解决了(≧∇≦)/
2018年11月06日 17点11分
6
level 6
最终版本[感谢帮忙]
#include <stdio.h>
#include<math.h>
int main()
{
int a,b;
scanf("%d",&a);
b=(int)sqrt(a);
if(a==pow(b,2))
printf("Y");
else printf("N");
return 0;
}
2018年11月06日 17点11分
7