結果
問題 |
No.1175 Simultaneous Equations
|
ユーザー |
![]() |
提出日時 | 2020-08-24 22:03:44 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 169 ms / 2,000 ms |
コード長 | 455 bytes |
コンパイル時間 | 2,629 ms |
コンパイル使用メモリ | 76,640 KB |
実行使用メモリ | 55,100 KB |
最終ジャッジ日時 | 2024-11-06 10:47:24 |
合計ジャッジ時間 | 5,974 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextInt(); double b = sc.nextInt(); double c = sc.nextInt(); double d = sc.nextInt(); double e = sc.nextInt(); double f = sc.nextInt(); double x = (c * e - b * f) / (a * e - b * d); double y = (c * d - a * f) / (b * d - a * e); System.out.println(x + " " + y); } }