From 51126fe45698990355b734a7fcb7c6147d183427 Mon Sep 17 00:00:00 2001 From: Daniel Falbo <39460524+danielfalbo@users.noreply.github.com> Date: Thu, 17 Oct 2024 20:16:41 +0200 Subject: [PATCH] define mod for substring hash segment tree --- source/substring_hash_segment_tree.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/substring_hash_segment_tree.h b/source/substring_hash_segment_tree.h index 6d954a5..129cb2f 100644 --- a/source/substring_hash_segment_tree.h +++ b/source/substring_hash_segment_tree.h @@ -1,6 +1,8 @@ #pragma once #include "common.h" +#define mod (ll)(1e9 + 7) + struct Node { ll h, p; Node(char ch) { h = ch; p = 26; }