摘要: 1 /* 2 Name: NYOJ--2--括号配对问题 3 Author: shen_渊 4 Date: 18/04/17 21:15 5 Description: 先入栈个‘#’ 就好做了 6 */ 7 #include 8 using namespace std; 9 bool cmp(char,char) ; 10 int main... 阅读全文
posted @ 2017-04-18 21:21 朤尧 阅读(286) 评论(0) 推荐(0)
摘要: /* Name: HDU-2017-字符串统计 Date: 18/04/17 20:19 Description: 水过 */ #include using namespace std; int main(){ int n;cin>>n; while(n--){ string str;cin>>str; int ct =... 阅读全文
posted @ 2017-04-18 20:19 朤尧 阅读(260) 评论(0) 推荐(0)
摘要: /* Name: NYOJ--241--字母统计 Date: 18/04/17 17:12 Description: 水过,C++11特性不能用,尴尬 */ #include using namespace std; int main(){ // freopen("in.txt","r",stdin) ; int t;cin>>t; while(... 阅读全文
posted @ 2017-04-18 17:16 朤尧 阅读(201) 评论(0) 推荐(0)
摘要: /* Name: NYOJ--113--字符串替换 Author: shen_渊 Date: 18/04/17 15:41 Description: 字符串水题,秒过 */ #include using namespace std; int main(){ ios::sync_with_stdio(false); string str; ... 阅读全文
posted @ 2017-04-18 15:42 朤尧 阅读(261) 评论(0) 推荐(0)
摘要: dfs水过: 学到图论了,用并查集+欧拉做一次: 阅读全文
posted @ 2017-04-18 15:28 朤尧 阅读(387) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h>包含了目前c++所包含的所有头文件!!!! 测试结果POJ不支持HDU,NYOJ支持 阅读全文
posted @ 2017-04-18 14:55 朤尧 阅读(366) 评论(0) 推荐(0)