algorithm_2024
Go to file
2024-10-12 12:30:58 +08:00
src update 2024-10-12 12:30:58 +08:00
.gitignore update 2024-10-11 05:38:08 +00:00
CMakeLists.txt update 2024-10-11 05:38:08 +00:00
LICENSE update 2024-10-11 05:38:08 +00:00
README.md update 2024-10-11 17:02:47 +08:00
test.cpp update 2024-10-11 05:38:08 +00:00

algorithm_2024

algorithm_2024

错题本

Luogu某题

数组越界导致变量异常更改

OJ4980:拯救行动

未考虑无答案(特殊情况)时输出

优先对联是从大到小排序重载运算符时需反向或者std::greater

struct Status{
    Point now;
    ll step;
    bool operator<(const Status &that)const noexcept{
        return this->step > that.step;
    }
};

std::priority_queue<Status> q;