|
|
#2
skyer002010-01-13 23:23
|
我的算法如下,用的是java,请不吝赐教:
程序代码:public class cMath{
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
double a ,b ,c,d=1;
//int x =1,y =1,z = 1;
for (a = 1 ; a<=71100; a++)
{
for(b = 1 ; b <=71100 ; b++)
{
c = 711 - a - b ;
if (a*b*c == 71100) {
System.out.println("That's answer!\n a=" + a +" b=" + b +" c=" + c);
break;
}
}
}
}