解题思路:
注意事项:
参考代码:
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语言代码)浏览:712 |
字符串输入输出函数 (C++代码)(都当成字符串吧hhhhhhhh)浏览:493 |
C语言训练-求素数问题 (C语言代码)浏览:720 |
C语言训练-角谷猜想 (C语言代码)浏览:1705 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:742 |
校门外的树 (C语言代码)浏览:956 |
C语言程序设计教程(第三版)课后习题6.11 (C语言代码)浏览:549 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:326 |
C语言程序设计教程(第三版)课后习题5.5 (C语言代码)浏览:552 |
数组与指针的问题浏览:716 |