首页 > TAG信息列表 > 1867

mac 终端查看端口命令

查看 端口所在线程 lsof -i:81COMMAND  PID     USER   FD   TYPE             DEVICE SIZE/OFF NODE NAMEjava    1867 pengxuan  189u  IPv6 0x3a47bb02362d2d59      0t0  TCP *:hosts2-ns (LISTEN)java    1867 pengxuan  196u  IPv6 0x

A + B for you again(最长公共前缀和后缀)HDU - 1867

Generally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two strings, such as “asdf” and “sdfg”, the result of the addition between them is “asdfg”, for “sdf” is the tail subst

BZOJ 1867 [Noi1999]钉子和小球 DP

想状态和钉子的位置如何匹配想了半天。。。后来发现不是一样的吗$qwq$   思路:当然是$DP$啦 提交:>5次(以为无故$RE$,实则是先乘后除爆了$long\space long$) 题解: 若有钉子,左右各乘$\frac{1}{2}$转移,否则,向下两层直接转移。 对于分数,分别维护分子和分母,然后加起来的时候,记着一定要写成