看到题目就可以想到hash 然后很自然的联想到可持久化权值线段树 WA:base取了偶数 这道题还可以用莫队做,比线段树快一些 可持久化线段树: #include<bits/stdc++.h> #define ll long long #define uint unsigned int #define ull unsigned long long #define inf 4294967295 #define N 100005 #define M 100005 #define base 1000…
Billboard Time Limit: 20000/8000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 18408 Accepted Submission(s): 7716 Problem Description At the entrance to the university, there is a huge rectangular billboard of s…