diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -27,7 +27,7 @@
 
 # 判定用関数
 def judge(d):
-    if solve(X, d) + solve(Y, d) < K:
+    if solve(X, d) + solve(Y, d) <= K:
         return False
     else:
         return True
