This commit is contained in:
Zengtudor 2024-10-07 11:29:13 +08:00
parent deb08dc743
commit e2ea70dc1d

View File

@ -30,7 +30,7 @@ std::ostream&operator<<(std::ostream &os,const std::vector<T> &v)noexcept{
}
template<class T>
size_t hashVector1(const std::vector<T>& vec) {
size_t hashVector1(const std::vector<T>& vec) noexcept{
size_t seed = 0;
for (size_t i = 0; i < vec.size(); ++i) {
// 结合元素的值和其索引来生成哈希
@ -40,7 +40,7 @@ size_t hashVector1(const std::vector<T>& vec) {
}
template<class T>
size_t hashVector2(const std::vector<T>& vec) {
size_t hashVector2(const std::vector<T>& vec) noexcept{
size_t seed = 0;
for (size_t i = 0; i < vec.size(); ++i) {
// 结合元素的值和其索引来生成哈希
@ -86,5 +86,5 @@ void dfs(size_t x, size_t y){
int main(){
cin>>n>>m>>k;
dfs(1,1);
cout<<s.size()<<'\n';
cout<<s.size()%MOD<<'\n';
}