解题思路:
注意事项:
参考代码:
import java.util.Scanner;
public class Main1 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int e = sc.nextInt();
int f = sc.nextInt();
int y = (f*a - d*c)/(a*e-d*b);
int x = (c-b*y)/a;
System.out.print(x+" ");
System.out.println(y);
} }
}
0.0分
2 人评分
矩形面积交 (Java代码)浏览:1213 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:450 |
【出圈】 (C语言代码)浏览:553 |
简单的a+b (C语言代码)浏览:335 |
C二级辅导-阶乘数列 (C语言代码)浏览:688 |
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)浏览:535 |
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)浏览:685 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:533 |
1011题解浏览:760 |
C语言程序设计教程(第三版)课后习题5.5 (C语言代码)浏览:553 |