摘要: 注意要把map[0]设置为1,因为根据题意,长度为1 的区间也要算进来 完整代码: #include <iostream> #include <map> #define int long long using namespace std; map <int, int> mp; //记录每个余数出现个 阅读全文
posted @ 2024-01-11 22:30 Gold_stein 阅读(17) 评论(0) 推荐(0) 编辑