解题思路:
注意事项:
参考代码:
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 人评分
最小公倍数 (C语言代码)浏览:861 |
C语言程序设计教程(第三版)课后习题11.8 (C语言代码)浏览:869 |
剪刀石头布 (C语言代码)浏览:748 |
sizeof的大作用 (C语言代码)浏览:1447 |
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:581 |
图形输出 (C语言代码)浏览:1374 |
Tom数 (C语言代码)浏览:552 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:467 |
输入输出格式练习 (C语言代码)浏览:743 |
简单的a+b (C语言代码)浏览:415 |