diff --git a/zeta_C/completed/19532.c b/zeta_C/completed/19532.c new file mode 100644 index 0000000..432fd2b --- /dev/null +++ b/zeta_C/completed/19532.c @@ -0,0 +1,18 @@ +#include +#include + +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; +} \ No newline at end of file diff --git a/zeta_C/run.sh b/zeta_C/run.sh new file mode 100644 index 0000000..ef3a298 --- /dev/null +++ b/zeta_C/run.sh @@ -0,0 +1,4 @@ +#!/bin/bash +if [ -z "$*" ]; then echo "No args"; exit 0; fi +clang-18 -std=c17 $1 +./a.out < stdin.txt \ No newline at end of file