摘要: 已知:1,2元的硬币共n枚,能表示的钱数为[n,2n]。所以,每次去掉5元,如果剩下的钱能用1,2元表示,结果就+1。#include #include using namespace std;const int MAXN=1000000;int main(){ int t,n,m; s... 阅读全文
posted @ 2015-04-25 10:27 纸牌 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 看代码:#include #include #include using namespace std;const int INF=100000000;const int MAXN=1000000;int ans;int pos[11];bool vis[11];int abs(int a,int b... 阅读全文
posted @ 2015-04-25 10:15 纸牌 阅读(153) 评论(0) 推荐(0) 编辑