This documentation is automatically generated by competitive-verifier/competitive-verifier
#define PROBLEM "https://yukicoder.me/problems/no/430"
#include "daylight/base.hpp"
#include "daylight/string/rolling_hash.hpp"
int main() {
string S;
cin >> S;
map<uint64_t, ll> mp;
RollingHash rh(S);
int N = SZ(S);
REP(i, N) {
REP(j, min(10, N - i))
mp[rh.query(i, j + 1)]++;
}
int M;
cin >> M;
ll ans = 0;
REP(i, M) {
string C;
cin >> C;
RollingHash rh2(C);
ans += mp[rh2.query(0, SZ(C))];
}
cout << ans << endl;
}
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++ | challenge01.txt |
|
6 ms | 3 MB |
| g++ | challenge02.txt |
|
173 ms | 27 MB |
| g++ | challenge03.txt |
|
12 ms | 5 MB |
| g++ | challenge04.txt |
|
12 ms | 5 MB |
| g++ | sample1.txt |
|
5 ms | 3 MB |
| g++ | sample2.txt |
|
5 ms | 3 MB |
| g++ | sample3.txt |
|
5 ms | 3 MB |
| g++ | sample4.txt |
|
5 ms | 3 MB |
| g++ | test1.txt |
|
194 ms | 27 MB |
| g++ | test10.txt |
|
14 ms | 5 MB |
| g++ | test2.txt |
|
6 ms | 3 MB |
| g++ | test3.txt |
|
16 ms | 6 MB |
| g++ | test4.txt |
|
63 ms | 8 MB |
| g++ | test5.txt |
|
63 ms | 8 MB |
| g++ | test6.txt |
|
63 ms | 8 MB |
| g++ | test7.txt |
|
48 ms | 7 MB |
| g++ | test8.txt |
|
36 ms | 6 MB |
| g++ | test9.txt |
|
15 ms | 5 MB |