본문 바로가기
카테고리 없음

백준#19532 2023-09-15

by 하타라시 2023. 9. 15.

https://rightbellboy.tistory.com/210

        string[] puts = Console.ReadLine().Split();
        int a = int.Parse(puts[0]), b = int.Parse(puts[1]), c = int.Parse(puts[2]);
        int d = int.Parse(puts[3]), e = int.Parse(puts[4]), f = int.Parse(puts[5]);


        int y = (c * d - a * f) / (b * d - a * e);
        int x = (c * e - b * f) / (a * e - b * d);

        Console.Write($"{x} {y}");

참고해서 하였는데, 

크래머의 규칙.......................... ㅎㅎㅎㅎㅎㅎㅎ

GPT놈의 답변..

모르것당... 나중에 유튜브라도 한 번 봐야할거같구먼..