https://www.acmicpc.net/problem/19532
μνμ λΉλλ©΄ κ°μꡬλ... λΆλ½λ€...
[1] λ¬Έμ
[2] μ λ΅
#pragma warning(disable:4996)
#include <stdio.h>
int main() {
int x1, y1, z1, x2, y2, z2;
int i, j;
scanf("%d %d %d %d %d %d", &x1, &y1, &z1, &x2, &y2, &z2);
for (i = -999; i <= 999; i++) {
for (j = -999; j <= 999; j++) {
if (x1 * i + y1 * j == z1 && x2 * i + y2 * j == z2) {
printf("%d %d\n", i, j);
return 0;
}
}
}
return 0;
}
[3] λλ μ
λ°λ³΅λ¬Έμ ν΅ν΄ λ°©μ μμ λ΅μ μ°Ύμλ΄λ μκ³ λ¦¬μ¦μ μ²μ μ ν΄λ΄€λ€.
μμΌλ‘ μΈ μΌμ΄ μμν λ κΈ°μ΅ν΄λμ!
[4] μΆκ° νμ΅
https://blog.naver.com/cra2yboy/222107448550
'SWLUG > λ°±μ€ BEAKJOON' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[C] λ°±μ€ BAEKJOON 11866λ²: μμΈνΈμ€ λ¬Έμ 0 (0) | 2023.09.30 |
---|---|
[C] λ°±μ€ BAEKJOON 28278λ²: μ€ν 2 (0) | 2023.09.30 |
[C] λ°±μ€ BEAKJOON 2164λ²: μΉ΄λ2 (0) | 2023.09.27 |
[C] λ°±μ€ BEAKJOON 10773λ²: μ λ‘ (0) | 2023.09.20 |
[C] λ°±μ€ BEAKJOON 1978λ²: μμ μ°ΎκΈ° (0) | 2023.09.19 |