pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …
传送门
分析x,y的范围-1e8~1e8,需要离散化。定义f[i][j]是左上角(ci,cj)右下角(c(i+1),c(j+1))染色情况代码实现
#include<bits/stdc++.h>
using namespace std;
#define MAXN 4010
int n, btop, ctop;
int…
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …