摘要:
引子 早上想试试java写点题,写重载排序比较接口的时候突然报了一个错误。 No enclosing instance of type demo is accessible. Must qualify the allocation with an enclosing instance of type 阅读全文
摘要:
The Lakes 本质上是个染色问题,太久没写搜索,出现了错误。 最初做法 int main() { for (int i = 1; i <= n; i++) { for (int j = 1; j <= m; j++) { if (vis[i][j] == false && a[i][j] != 阅读全文
摘要:
越界问题处理 这题本身很简单,二分答案就行。 但是数据很大,提前开了ULL还是越界。 short check(ll x, vector<ll> a) { ll sum = 0; for (int i = 1; i <= n; i++) { sum = sum + (a[i] + x) * (a[i] 阅读全文