mirror of
https://github.com/danog/ton.git
synced 2024-12-12 09:09:37 +01:00
7 lines
163 B
Plaintext
7 lines
163 B
Plaintext
(int, int) f(int a, int b, int c, int d, int e, int f) {
|
|
int D = a * d - b * c;
|
|
int Dx = e * d - b * f;
|
|
int Dy = a * f - e * c;
|
|
return (Dx / D, Dy / D);
|
|
}
|