01 2021 档案
摘要:多重背包II中的二进制拆分 for(int i=1;i<=n;i++) { int a,b,s;cin>>a>>b>>s;//体积、价值、数量 int k=1; while(k<=s) { w[++cnt]=a*k,v[cnt]=b*k; s-=k; k*=2; } // cout<<"s=="<<
        阅读全文
                
摘要:###A #include<iostream> #include<algorithm> using namespace std; typedef pair<int,int>PII; const int N=5100; int main() { int t;cin>>t; while(t--) { i
        阅读全文
                
摘要:##0.A - Simple Math 2 $ 让我非常自闭的一道题,当时题还读反了,要求输出\lfloor \frac{10N} \rfloor%M\ 1<=N<=10{18}\ 1<=M<=104\ 已知\lfloor \frac{\lfloor \frac \rfloor } \rfloor 
        阅读全文
                

 浙公网安备 33010602011771号
浙公网安备 33010602011771号