diff --git "a/zinnnn37/202511/8 PGM LV2 \354\271\264\355\216\253.md" "b/zinnnn37/202511/8 PGM LV2 \354\271\264\355\216\253.md" new file mode 100644 index 00000000..a983db87 --- /dev/null +++ "b/zinnnn37/202511/8 PGM LV2 \354\271\264\355\216\253.md" @@ -0,0 +1,16 @@ +```java +public class PGM_LV2_카펫 { + + public int[] solution(int B, int Y) { + int mul = B + Y; + int sum = (B + 4) / 2; + + int sqrt = (int) Math.sqrt(sum * sum - 4 * (B + Y)); + + int a = (sum + sqrt) / 2; + int b = (sum - sqrt) / 2; + + return new int[] { a, b }; + } +} +``` \ No newline at end of file