test/zalgorithm.test.cpp
Depends on
Code
#define PROBLEM "https://judge.yosupo.jp/problem/zalgorithm"
#include <fastio/base.hpp> // for FASTIO, cin, cout
#include <fastio/char/write.hpp> // for operator<<
#include <fastio/signed/write.hpp> // for operator<<
#include <fastio/string/read.hpp> // for operator>>
#include <fastio/string/write.hpp> // for operator<<
#include <fastio/vector/write.hpp> // for operator<<
#include <string/z_algorithm.hpp> // for Zalgorithm
#include <string> // for basic_string, string
#include <templates/macro/abbrev/endl.hpp> // for endl
#include <templates/template.hpp>
using namespace std;
int main() {
string s;
cin >> s;
auto z = Zalgorithm(s);
cout << z << endl;
}
#line 1 "test/zalgorithm.test.cpp"
#define PROBLEM "https://judge.yosupo.jp/problem/zalgorithm"
#include <fastio/base.hpp> // for FASTIO, cin, cout
#include <fastio/char/write.hpp> // for operator<<
#include <fastio/signed/write.hpp> // for operator<<
#include <fastio/string/read.hpp> // for operator>>
#include <fastio/string/write.hpp> // for operator<<
#include <fastio/vector/write.hpp> // for operator<<
#include <string/z_algorithm.hpp> // for Zalgorithm
#include <string> // for basic_string, string
#include <templates/macro/abbrev/endl.hpp> // for endl
#include <templates/template.hpp>
using namespace std;
int main() {
string s;
cin >> s;
auto z = Zalgorithm(s);
cout << z << endl;
}
Test cases
Env |
Name |
Status |
Elapsed |
Memory |
g++ |
all_same_00 |
AC |
23 ms |
7 MB |
g++ |
all_same_01 |
AC |
24 ms |
7 MB |
g++ |
all_same_02 |
AC |
24 ms |
7 MB |
g++ |
all_same_03 |
AC |
23 ms |
7 MB |
g++ |
all_same_04 |
AC |
23 ms |
7 MB |
g++ |
binary_carry_00 |
AC |
20 ms |
7 MB |
g++ |
binary_carry_01 |
AC |
20 ms |
7 MB |
g++ |
example_00 |
AC |
5 ms |
4 MB |
g++ |
example_01 |
AC |
4 ms |
4 MB |
g++ |
example_02 |
AC |
4 ms |
4 MB |
g++ |
example_03 |
AC |
4 ms |
4 MB |
g++ |
fib_str_00 |
AC |
19 ms |
7 MB |
g++ |
fib_str_01 |
AC |
16 ms |
6 MB |
g++ |
fib_str_02 |
AC |
15 ms |
6 MB |
g++ |
fib_str_03 |
AC |
14 ms |
6 MB |
g++ |
fib_str_04 |
AC |
20 ms |
7 MB |
g++ |
hack606_00 |
AC |
5 ms |
4 MB |
g++ |
max_random_00 |
AC |
18 ms |
7 MB |
g++ |
max_random_01 |
AC |
19 ms |
7 MB |
g++ |
random_00 |
AC |
15 ms |
6 MB |
g++ |
random_01 |
AC |
17 ms |
7 MB |
g++ |
random_02 |
AC |
7 ms |
4 MB |
g++ |
random_03 |
AC |
16 ms |
7 MB |
g++ |
random_04 |
AC |
13 ms |
6 MB |
g++ |
random_05 |
AC |
13 ms |
6 MB |
g++ |
random_06 |
AC |
17 ms |
7 MB |
g++ |
random_07 |
AC |
9 ms |
4 MB |
g++ |
random_08 |
AC |
12 ms |
6 MB |
g++ |
random_09 |
AC |
7 ms |
4 MB |
Back to top page