OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
973b913
)
Update sparse-table.md
author
Xeonacid
<h.dwwwwww@gmail.com>
Mon, 9 Sep 2019 00:23:03 +0000
(08:23 +0800)
committer
GitHub
<noreply@github.com>
Mon, 9 Sep 2019 00:23:03 +0000
(08:23 +0800)
docs/ds/sparse-table.md
patch
|
blob
|
history
diff --git
a/docs/ds/sparse-table.md
b/docs/ds/sparse-table.md
index
c454fa3
..
4a474af
100644
(file)
--- a/
docs/ds/sparse-table.md
+++ b/
docs/ds/sparse-table.md
@@
-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("%
ll
d\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;
}