摘要: 二维前缀和。 const int N = 610; int g[N][N], sum[N][N]; int n,l,r,t; int main() { cin >> n >> l >> r >> t; for(int i = 1; i <= n; i++) for(int j = 1; j <= n 阅读全文
posted @ 2021-06-20 19:20 Dazzling! 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: 开个桶记录出现次数。 const int N = 260; int cnt[N]; int n,m,l; int main() { cin >> n >> m >> l; for(int i = 0; i < n; i++) for(int j = 0; j < m; j++) { int x; c 阅读全文
posted @ 2021-06-20 18:59 Dazzling! 阅读(55) 评论(0) 推荐(0) 编辑