摘要: /* 坑了 把 重载的#include#include#includeusing namespace std;struct word{ char str[205]; bool operator ='A'&&str[i]='a'&&str[i]='a'&&str[i]<='z'&&i<L){ T[num].str[Len++]=str[i]; i++; } num++; }else i++; } sort(T,T+num); printf("%s\ 阅读全文
posted @ 2014-03-05 20:58 来自大山深处的菜鸟 阅读(329) 评论(0) 推荐(0)
摘要: /* 水题 体现出题目看不懂 额 */#include #include #include #include using namespace std;const int maxn=55;struct card{ char A,B; card(char a=0,char b=0){ A=a;B=b; } bool operator == (const card F){ if(A==F.A||B==F.B) return true; else return false; }};struct stac{ card T[maxn]; int t; void sclea... 阅读全文
posted @ 2014-03-05 15:32 来自大山深处的菜鸟 阅读(135) 评论(0) 推荐(0)
摘要: /* 这题相对比较水 算 用5面值的 货币拼成 固定的面值的 有多少种方法*/#include #include #include using namespace std;long long dp[10000];int C[]={50,25,10,5,1};int main(){ int N; while(scanf("%d",&N)==1){ memset(dp,0,sizeof(dp)); dp[0]=1; for(int i=0;i<5;i++) for(int j=C[i];j<=N;j++) ... 阅读全文
posted @ 2014-03-05 14:21 来自大山深处的菜鸟 阅读(167) 评论(0) 推荐(0)