摘要: #include #include #include struct news{ int lev; int num; bool operator lev==a.lev?this->num>a.num:this->lev>n) { int cut=0; priority_queue q[4]; for(int i... 阅读全文
posted @ 2017-02-09 16:00 朤尧 阅读(265) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int main() { string str; while(getline(cin,str)){ stack s; for(char c:str){ if(!s.empty() &&s.top()=='(' && c==')'... 阅读全文
posted @ 2017-02-09 16:00 朤尧 阅读(255) 评论(2) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; int main() { double a; while(cin>>a) { char ch; if(a == 0){ if((ch=getchar())== '\n')break; }else getchar(); stack s; while(!s.... 阅读全文
posted @ 2017-02-09 15:58 朤尧 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 题目链接 阅读全文
posted @ 2017-02-09 15:54 朤尧 阅读(202) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int main() { int N; while(cin>>N && N!=0) { string str; map bal; for(int i=0;i>str; bal[str]++; ... 阅读全文
posted @ 2017-02-09 15:52 朤尧 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int main() { int c; cin>>c; while(c--){ int n,v,w; cin>>n>>v>>w; vector vec; for(int i=0;i>temp; ... 阅读全文
posted @ 2017-02-09 15:48 朤尧 阅读(264) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int main() { int n; while(cin>>n){ vector vec; for(int i=0;i>temp; vec.push_back(temp); } vector boom; ... 阅读全文
posted @ 2017-02-09 15:46 朤尧 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 主要思路: 十进制为例个位:10百位:10*10千位:10^3 那么这个题就是:个位:2百位:2*3千位:2*3*5 算法: 1.将输入转化为10进制 2.计算 3.转化为火星文输出 4.over 阅读全文
posted @ 2017-02-09 15:10 朤尧 阅读(335) 评论(0) 推荐(0) 编辑