diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -9,7 +9,7 @@
         for j in range(M):
             Asum[i][j] += Asum[i - 1][j]
 ans = 0
-for m in range(1, 6):  # 最小値
+for m in range(1, 301):  # 最小値
     histo = [0] * M
     for imax in range(N):
         for j in range(M):
