This documentation is automatically generated by competitive-verifier/competitive-verifier
#define PROBLEM "https://yukicoder.me/problems/no/599"
#include "daylight/base.hpp"
#include "daylight/string/rolling_hash.hpp"
#include "atcoder/modint"
using namespace atcoder;
using mint = modint1000000007;
int main() {
string S;
cin >> S;
int N = SZ(S);
RollingHash rh(S);
auto dp = vector<mint>(N + 1);
dp[0] = 1;
FOR(i, 1, N + 1) {
if(i + i > N) break;
REP(j, i) {
if(rh.query(j, i - j)
== rh.query(N - j - (i - j), i - j)) {
dp[i] += dp[j];
}
}
}
mint ans = 0;
REP(i, N + 1) {
ans += dp[i];
}
cout << ans.val();
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, in resolve
bundled_code = language.bundle(path, basedir=basedir)
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 252, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 482, in update
self.update(
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 477, in update
raise BundleErrorAt(
competitive_verifier.oj.verify.languages.cplusplus_bundle.BundleErrorAt: daylight/base.hpp: line 103: unable to process #include in #if / #ifdef / #ifndef other than include guards
| Env | Name | Status | Elapsed | Memory |
|---|---|---|---|---|
| g++ | 0_0.txt |
|
6 ms | 3 MB |
| g++ | 0_1.txt |
|
6 ms | 3 MB |
| g++ | 0_2.txt |
|
5 ms | 3 MB |
| g++ | 0_3.txt |
|
6 ms | 3 MB |
| g++ | 1_0.txt |
|
5 ms | 3 MB |
| g++ | 1_1.txt |
|
5 ms | 3 MB |
| g++ | 1_2.txt |
|
6 ms | 3 MB |
| g++ | 1_3.txt |
|
5 ms | 3 MB |
| g++ | 1_4.txt |
|
5 ms | 3 MB |
| g++ | 1_5.txt |
|
6 ms | 3 MB |
| g++ | 2_0.txt |
|
39 ms | 4 MB |
| g++ | 2_1.txt |
|
26 ms | 4 MB |
| g++ | 2_2.txt |
|
44 ms | 4 MB |
| g++ | 2_3.txt |
|
28 ms | 4 MB |
| g++ | 2_4.txt |
|
62 ms | 4 MB |
| g++ | 2_5.txt |
|
71 ms | 4 MB |
| g++ | 2_6.txt |
|
75 ms | 4 MB |
| g++ | 2_7.txt |
|
84 ms | 4 MB |
| g++ | 3_0.txt |
|
6 ms | 3 MB |
| g++ | 3_1.txt |
|
5 ms | 3 MB |
| g++ | 3_2.txt |
|
5 ms | 3 MB |
| g++ | evil_0.txt |
|
53 ms | 4 MB |