摘要:
~~我好菜啊~~ A 题意: 定义p 二进制数为2^k p,给出n和p,求用最小个数的p 二进制数来表示n 1=0 显然当k超过30后,如果不满足则之后也不满足 ②p include include include include define fo(a,b,c) for (a=b; a=c; a 阅读全文
摘要:
题目描述 题解 ~~之前做过一次~~ 假设图建好了,设g[i]表示i j(i include include include include define fo(a,b,c) for (a=b; a=c; a ) define min(a,b) (ay) swap(x,y); change(x,1, 阅读全文
摘要:
题目描述 给出n,p,w,d,求(x,y,z)使得 x w+y d=p x+y+z=n 其中d include include include include define fo(a,b,c) for (a=b; a=c; a ) using namespace std; long long n,p 阅读全文
摘要:
不定期更新(×) 定期不更新(√) n div i有2√n个取值 https://blog.csdn.net/gmh77/article/details/88142031 显然n div i最多只有2√n个取值,则s和g最多只有2√n个取值 对于≤√n的数可以直接存,处理也很方便,对于>√n的可以用 阅读全文