daylight-library

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub daylight-pro/daylight-library

:heavy_check_mark: test/yukicoder/430.test.cpp

Depends on

Code

#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

Test cases

Env Name Status Elapsed Memory
g++ challenge01.txt :heavy_check_mark: AC 6 ms 3 MB
g++ challenge02.txt :heavy_check_mark: AC 173 ms 27 MB
g++ challenge03.txt :heavy_check_mark: AC 12 ms 5 MB
g++ challenge04.txt :heavy_check_mark: AC 12 ms 5 MB
g++ sample1.txt :heavy_check_mark: AC 5 ms 3 MB
g++ sample2.txt :heavy_check_mark: AC 5 ms 3 MB
g++ sample3.txt :heavy_check_mark: AC 5 ms 3 MB
g++ sample4.txt :heavy_check_mark: AC 5 ms 3 MB
g++ test1.txt :heavy_check_mark: AC 194 ms 27 MB
g++ test10.txt :heavy_check_mark: AC 14 ms 5 MB
g++ test2.txt :heavy_check_mark: AC 6 ms 3 MB
g++ test3.txt :heavy_check_mark: AC 16 ms 6 MB
g++ test4.txt :heavy_check_mark: AC 63 ms 8 MB
g++ test5.txt :heavy_check_mark: AC 63 ms 8 MB
g++ test6.txt :heavy_check_mark: AC 63 ms 8 MB
g++ test7.txt :heavy_check_mark: AC 48 ms 7 MB
g++ test8.txt :heavy_check_mark: AC 36 ms 6 MB
g++ test9.txt :heavy_check_mark: AC 15 ms 5 MB
Back to top page