摘要:
#include using namespace std; string a; int expo; int dotPos; int expoPos; int i; int main(){ cin>>a; if(a[0]=='+'||a[0]=='-'){ if(a[0]=='-'){cout0){ if((expoPos-dotPos)<=(expo+1)){ cout<<b... 阅读全文
摘要:
#include #include #include using namespace std; int nc,np; vector vc,vp; int tmp; int i,j; int total; int main(){ cin>>nc; for(i=0;i>tmp; vc.push_back(tmp); } cin>>np; for(int i=0;i>tmp; ... 阅读全文
摘要:
#include #include using namespace std; int n,m; map imgMap; int maxV=0; int v; int main(){ cin>>n>>m; for(int i=0;i>tmp; imgMap[tmp]++; if(imgMap[tmp]>maxV){ maxV=imgMap[tmp]; v=tmp... 阅读全文
摘要:
#include #include using namespace std; int sizeMax,n,k; stack sta; int queueNum; int num; int j;int flag=0; int main(){ cin>>sizeMax>>n>>k; while(k--){ while(!sta.empty()){sta.pop();} queueNu... 阅读全文
摘要:
#include #include using namespace std; int n; string card[54]={"S1","S2","S3","S4","S5","S6","S7","S8","S9","S10","S11","S12","S13", "H1","H2","H 阅读全文
摘要:
#include #include #include using namespace std; struct Student{ string name; string gender; string id; int grade; int idd; }; int n; bool cmp(Student a,Student b){ return a.grade studentSet;... 阅读全文
摘要:
之前不知道怎么判断是不是树,参考了 http://blog.csdn.net/eli850934234/article/details/8926263 但是最后有一个测试点有超时,在bfs里我用了数组拷贝,所以简化成直接访问超时就没有了。 阅读全文