• 2023-04-12UVa 10004 Bicoloring (DFS&二分图)
    10004-BicoloringTimelimit:3.000secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=945In1976the``FourColorMapTheorem"wasprovenwiththeassistanceofacomput
  • 2022-11-15道长的算法笔记:基础最短路模型
    #include<bits/stdc++.h>usingnamespacestd;typedefpair<int,int>ii;//移动轨迹向量化intadd[3]={+1,-1,0};intmul[3]={0,0,1};intvist[10000
  • 2022-10-14笔记:Debian下为sublime text建立软链接[像vi一样到处使用]
    先查询sublime-text安装路径:~$dpkg-Lsublime-text/./opt/opt/sublime_text.../opt/sublime_text/sublime_text建立软链接sudoln-s/opt/sublime_text/sub
  • 2022-10-14733. 图像渲染
    733.图像渲染来自<https://leetcode.cn/problems/flood-fill/>classSolution{public://bfsintdx[4]={-1,0,1,0};intdy[4]={0,1,0,-1};ve
  • 2022-10-05LCCUP 22秋季编程大赛
    ​​LCCUP22秋季编程大赛​​总结:交的时候,460名然后慢慢得掉到最后580。第三题一开始没读好题,浪费了很长时间。四五题没有什么思路,直接就没写了。(横向对比,比春季进步了
  • 2022-09-25P7368 [USACO05NOV]Asteroids G
    题面贝茜想在\(N\timesN\)的网格中驾驶她的宇宙飞船。网格中有\(K\)个小行星。要使驾驶过程愉快,就必须把这些小行星全部消除。贝茜有一个武器,可以以一个单位代价消