摘要: 这道题乍一看不能hash实际上最多sqrt(1e5)种长度,所以1e4*sqrt(1e5)就可以了 但这种hash第一次见 #include <bits/stdc++.h> using namespace std; #define ull unsigned long long #define for 阅读全文
posted @ 2019-09-20 03:06 AlexPanda 阅读(138) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/325824#overview 只有后4题和H题和I题的题解,其他题只挂了代码。不会的同学去群里问问过的同学。 N题 思维题 题解:没魔法的时候:按顺序来,用一个cnt来计数,遇到左括号++,右括号就消耗一个–,中间有一次cnt<0那么代表这个串 阅读全文
posted @ 2019-09-20 02:20 AlexPanda 阅读(205) 评论(0) 推荐(0) 编辑