我哪里类型错误了 acm1407 网址http://acm.hdu.edu.cn/showproblem.php?pid=1407

[复制链接]
查看11 | 回复3 | 2010-12-17 20:53:47 | 显示全部楼层 |阅读模式
#include
#include
int main()
{

int k,a,b;

double c,n;

while(scanf("%lf",&n)!=EOF)

{

k=int(sqrt(n));

for(a=0;a#includeint main(){int x,y,z,n,t;start:while(scanf("%d",&n)!=EOF)
{
t=sqrt(n)+1;
for(x=1;x<=t;x++)
for(y=1;y<=t;y++)
for(z=1;z<=t;z++)
if(x*x+y*y+z*z==n)
{
printf("%d %d %d\n",x,y,z);
goto start;
}
}r
回复

使用道具 举报

千问 | 2010-12-17 20:53:47 | 显示全部楼层
编程不懂,希望你找到满意答案。
回复

使用道具 举报

千问 | 2010-12-17 20:53:47 | 显示全部楼层
你要说的是什么?
回复

使用道具 举报

千问 | 2010-12-17 20:53:47 | 显示全部楼层
没有
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行