摘要:
#include#include#include#includeusing namespace std;bool check(char a) //判断是否为有效字符{ if(isdigit(a) || isalpha(a)) return true; return fal... 阅读全文
摘要:
#include#includeusing namespace std;const int MAX=0x3fffffff;int main(){ int m,n; map count; //数字与出现次数的map映射 scanf("%d%d",&m,&n); for(int i... 阅读全文
摘要:
#includeint main(){ int m,n,ans,tmp,times=0; scanf("%d%d",&m,&n); for(int i=0 ; i<n ; ++i) //【思维】题目找出现次数最多的一个,找到不同的,次数减少1,减少到0就换成输入的数字。找到相同的数字,次... 阅读全文
摘要:
#include#include#include#includeusing namespace std;int n;string deal(string s,int &e) //【思维】1:吸收多余0:。2:找到“.”判断与1的大小。3:去除“.”的同时统计10的指数(正负与st... 阅读全文
摘要:
#include#include#include#includeusing namespace std;const int MAX=40010;int n,k; //n个人,k门课char name[MAX][5]; //存n个人的名字vector course[MAX]... 阅读全文
摘要:
#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(... 阅读全文
摘要:
#include#includeconst int MAX=510;using namespace std;int n,m,le=0; //节点数,非叶子节点数,最深层叶层数vector child[MAX]; //存储孩子情况int number[MAX]; //... 阅读全文
摘要:
#include#include#includeusing namespace std;struct moomcake{ double store; //【cation】这个可能是小数! double sumPrice; double solePrice;}M[1010];bool ... 阅读全文
摘要:
#include#include#include#includeusing namespace std;char alp[7][5]={"MON","TUE","WED","THU","FRI","SAT","SUN"};int main(){ /*char test='E'; printf("... 阅读全文