上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
  2015年3月10日
摘要: #include#include#include#includeusing namespace std;bool check(char a) //判断是否为有效字符{ if(isdigit(a) || isalpha(a)) return true; return fal... 阅读全文
posted @ 2015-03-10 23:33 Evence 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;const int MAX=0x3fffffff;int main(){ int m,n; map count; //数字与出现次数的map映射 scanf("%d%d",&m,&n); for(int i... 阅读全文
posted @ 2015-03-10 22:47 Evence 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #includeint main(){ int m,n,ans,tmp,times=0; scanf("%d%d",&m,&n); for(int i=0 ; i<n ; ++i) //【思维】题目找出现次数最多的一个,找到不同的,次数减少1,减少到0就换成输入的数字。找到相同的数字,次... 阅读全文
posted @ 2015-03-10 22:24 Evence 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int n;string deal(string s,int &e) //【思维】1:吸收多余0:。2:找到“.”判断与1的大小。3:去除“.”的同时统计10的指数(正负与st... 阅读全文
posted @ 2015-03-10 21:58 Evence 阅读(178) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;const int MAX=40010;int n,k; //n个人,k门课char name[MAX][5]; //存n个人的名字vector course[MAX]... 阅读全文
posted @ 2015-03-10 18:34 Evence 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;const int MAX=40010;const int H=26*26*26*10+10;int n,k; //n个人,k门课vector HAR[H];int getID(... 阅读全文
posted @ 2015-03-10 18:04 Evence 阅读(230) 评论(0) 推荐(0) 编辑
摘要: #include#includeconst int MAX=510;using namespace std;int n,m,le=0; //节点数,非叶子节点数,最深层叶层数vector child[MAX]; //存储孩子情况int number[MAX]; //... 阅读全文
posted @ 2015-03-10 16:29 Evence 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;struct moomcake{ double store; //【cation】这个可能是小数! double sumPrice; double solePrice;}M[1010];bool ... 阅读全文
posted @ 2015-03-10 13:01 Evence 阅读(147) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;char alp[7][5]={"MON","TUE","WED","THU","FRI","SAT","SUN"};int main(){ /*char test='E'; printf("... 阅读全文
posted @ 2015-03-10 11:48 Evence 阅读(174) 评论(0) 推荐(0) 编辑
  2015年3月9日
摘要: #include#include#includeusing namespace std;const int MAXV=510;const int INF=0x3fffffff;int n,m,c1,c2;bool vis[MAXV];int G[MAXV][MAXV]; //城市间距离in... 阅读全文
posted @ 2015-03-09 22:46 Evence 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页