Loading

摘要: 题目链接: https://www.acwing.com/problem/content/1232/ 题解: 这个公式最重要s[r] - s[l-1] % k == 0 等价于 s[r]%k == s[l-1] % k 意思就是说,只要s[n]和s[m]模k的值一样,他们必然可以组成一个k倍区间 边 阅读全文
posted @ 2020-02-07 19:06 Doubest 阅读(107) 评论(0) 推荐(0)
摘要: 题目链接: https://www.acwing.com/problem/content/798/ 代码: #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 100 阅读全文
posted @ 2020-02-07 14:24 Doubest 阅读(145) 评论(0) 推荐(0)