create dev channel
This commit is contained in:
18
zeta/c/completed/19532.c
Normal file
18
zeta/c/completed/19532.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main() {
|
||||
int a, b, c, d, e, f;
|
||||
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
|
||||
for (int x = -999; x <= 999; x++) {
|
||||
for (int y = -999; y <= 999; y++) {
|
||||
if (a * x + b * y == c && d * x + e * y == f) {
|
||||
printf("%d %d\n", x, y);
|
||||
goto finish;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
finish:
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user