Skip to content

Commit

Permalink
add yosupo_suffixarray
Browse files Browse the repository at this point in the history
  • Loading branch information
idat50me committed Oct 3, 2024
1 parent 71b9273 commit 27308bb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/yosupo_suffixarray.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/suffixarray

#ifndef call_include
#define call_include
#include <bits/stdc++.h>
using namespace std;
#endif

#include "string/suffix_array.cpp"

int main() {
string S;
cin >> S;
vector<int> sa = SuffixArray(S).get_array();
for(int i = 0; i < S.length(); i++) cout << sa[i] << (i == S.length() - 1 ? '\n' : ' ');
}

0 comments on commit 27308bb

Please sign in to comment.