2015年3月6日
摘要: #include#include#includeusing namespace std;stack str; int putin[1010]; //暂存查询的序列int main(){ int m,n,k; //栈容量m,栈序列1-n,查询k次 scanf("%d%... 阅读全文
posted @ 2015-03-06 21:09 Evence 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;set str[51]; //最大51个集合 void compare(int s1,int s2){ int different=str[s1].size(),same=0; //初始化并集元素为s1元素个数... 阅读全文
posted @ 2015-03-06 18:59 Evence 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #include#includechar n[1010]; //暂存输入的大整数字符串int num[1010]; //暂存可以运算的各位数字int cnt=0; //记录数字个数int chu; //除数int main(){ scanf("%s %d",n,&c... 阅读全文
posted @ 2015-03-06 17:06 Evence 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int D[111]; //存放拆解的数字int DI=0; //D的数组下标bool isPrime(int n){ if(n<=1) return 0; int ... 阅读全文
posted @ 2015-03-06 11:48 Evence 阅读(105) 评论(0) 推荐(0) 编辑