08 2024 档案
摘要:aewgsehrehrehreherhhjnrtjtrjuretsegdfh
阅读全文
摘要:A - Primary Task 给一个数 ,判断其是否形如 满足 且无前导零。 模拟判断即可。 code #include<bits/stdc++.h> using namespace std; con
阅读全文
摘要:点分治 以树的重心为根,对子树内的问题分治求解,时间复杂度可以做到 ,其中 是解决经过根的问题所需要的处理。 P3806 模板 给一棵有边权的树,多次询问树上是否存在距离为 的点对。 \(n\le 10^4,m\le 1
阅读全文
摘要:After printing a query do not forget to output the end of line and flush the output. Otherwise, you may get Idleness limit exceeded verdict. To do this, use:
fflush(stdout) or cout.flush() in C++;
System.out.flush() in Java;
flush(output) in Pascal;
stdout.flush() in Python;
see the documentation for other languages.
阅读全文