#include<iostream>
using namespace std;
int main()
{
int x,y;
for( x=1,y=2; x<100; x++)
for( y=x+1; (y+x)*(y-x+1) <= 472; y++)
{
//cout<<x<<" "<<y<<" "<<(y+x)*(y-x+1)<<endl;
if((y+x)*(y-x+1) == 472)
{
cout<<x<<endl;
return 0;
}
using namespace std;
int main()
{
int x,y;
for( x=1,y=2; x<100; x++)
for( y=x+1; (y+x)*(y-x+1) <= 472; y++)
{
//cout<<x<<" "<<y<<" "<<(y+x)*(y-x+1)<<endl;
if((y+x)*(y-x+1) == 472)
{
cout<<x<<endl;
return 0;
}
}
return 0;
}
return 0;
}
264

被折叠的 条评论
为什么被折叠?



