Warning: session_start(): open(/tmp/sess_f678bd771e623f7f60e323a977931243, O_RDWR) failed: No space left on device (28) in /data/wiki/inc/init.php on line 239

Warning: session_start(): Failed to read session data: files (path: ) in /data/wiki/inc/init.php on line 239

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/auth.php on line 430

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/actions.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/lib/tpl/dokuwiki/main.php on line 12
2020-2021:teams:legal_string:后缀数组_lgwza [CVBB ACM Team]

用户工具

站点工具


2020-2021:teams:legal_string:后缀数组_lgwza

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
2020-2021:teams:legal_string:后缀数组_lgwza [2020/07/24 16:13]
lgwza [从字符串首尾取字符最小化字典序]
2020-2021:teams:legal_string:后缀数组_lgwza [2020/07/24 16:17] (当前版本)
lgwza [一些常数优化]
行 43: 行 43:
 参考代码: 参考代码:
  
 +<​hidden>​
 <code cpp> <code cpp>
 #include <​algorithm>​ #include <​algorithm>​
行 86: 行 87:
 } }
 </​code>​ </​code>​
 +</​hidden>​
 ==== $O(n\log n)$ 做法 ==== ==== $O(n\log n)$ 做法 ====
  
行 97: 行 98:
 参考代码: 参考代码:
  
 +<​hidden>​
 <code cpp> <code cpp>
 #include <​algorithm>​ #include <​algorithm>​
行 147: 行 149:
 } }
 </​code>​ </​code>​
 +</​hidden>​
 ==== 一些常数优化 ==== ==== 一些常数优化 ====
  
行 158: 行 161:
  
 实际上,像这样就可以了: 实际上,像这样就可以了:
 +
  
 <code cpp> <code cpp>
行 183: 行 187:
 参考代码: 参考代码:
  
 +<​hidden>​
 <code cpp> <code cpp>
 #include <​algorithm>​ #include <​algorithm>​
行 228: 行 233:
 } }
 </​code>​ </​code>​
 +</​hidden>​
 ==== $O(n)$ 做法 ==== ==== $O(n)$ 做法 ====
  
行 267: 行 273:
 参考代码: 参考代码:
  
-<code cpp><hidden>+<hidden> 
 +<code cpp>
 #include <​cctype>​ #include <​cctype>​
 #include <​cstdio>​ #include <​cstdio>​
行 321: 行 328:
   return 0;   return 0;
 } }
-</​code></​hidden>​+</​code>​ 
 +</​hidden>​
  
 ===== height 数组 ===== ===== height 数组 =====
2020-2021/teams/legal_string/后缀数组_lgwza.1595578411.txt.gz · 最后更改: 2020/07/24 16:13 由 lgwza