摘要: #include<bits/stdc++.h> using namespace std; const int N=10; int a[N][N],ans[N][N],vis[3][N][N],b[82],maxn,flag; struct Row; int h,zero_cnt; }row[N];/ 阅读全文
posted @ 2021-06-02 21:18 阿山早 阅读(128) 评论(0) 推荐(0)
摘要: 如果她选择购买第一种包装,那么她需要购买29份,共计2×29=58支,需要花费的钱为2×29=58。 实际上,P老师会选择购买第三种包装,这样需要买22份。虽然最后买到的铅笔数 量更多了,为30×2=60支,但花费却减为27×2=54,比第一种少。 对于第二种包装,虽然每支铅笔的价格是最低的,但要够 阅读全文
posted @ 2021-05-28 21:22 阿山早 阅读(249) 评论(0) 推荐(0)
摘要: 虽然这是我第一次写博客,但是我会做到最好的。 好的废话不多说,下面就是答案 ↓ (仅供参考) #include<cstdio> #include<algorithm> #include<cstring> using namespace std; const int N=101000; int b[N 阅读全文
posted @ 2021-05-23 09:48 阿山早 阅读(127) 评论(0) 推荐(0)