public class A
{ 
  public static void main(String[] args)
     {  
        int x,y,z;
       for(x=0;x<100;x++)
         { for(y=0;y<100;y++)
             {for(z=0;z<100;z++)
                { if( 5x+3y+(1/3)z=100 && x+y+z=100 )
                   { System.out.println("x="+x);
                     System.out.println("y="+y);
                     System.out.println("z="+z); 
                   }
                }
             }
         }
     }
}
为什么运行时总说不对呢?
还有这个代码是不是太麻烦了?能不能请高手帮忙优化一下?
谢谢。



											
	    

	

