OSDN Git Service

Update sparse-table.md
authorXeonacid <h.dwwwwww@gmail.com>
Mon, 9 Sep 2019 00:23:03 +0000 (08:23 +0800)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 00:23:03 +0000 (08:23 +0800)
docs/ds/sparse-table.md

index c454fa3..4a474af 100644 (file)
@@ -86,7 +86,7 @@ int main() {
   for (int i = 1; i <= m; i++) {
     int x = read(), y = read();
     int s = Logn[y - x + 1];
-    printf("%lld\n", max(f[x][s], f[y - (1 << s) + 1][s]));
+    printf("%d\n", max(f[x][s], f[y - (1 << s) + 1][s]));
   }
   return 0;
 }