
字符串处理
码农同学
爱动漫,爱AC,立志成为攻城师!
展开
-
hdu 1004 Let the Balloon Rise
http://acm.hdu.edu.cn/showproblem.php?pid=1004枚举遍历,字符串排序。#include #include #include using namespace std;int main(){ int n; int col[1000]; string s[1010]; int flag; while(cin>>n&&n){原创 2012-08-11 17:41:39 · 756 阅读 · 0 评论 -
hdu 1219 AC Me
http://acm.hdu.edu.cn/showproblem.php?pid=1219#include using namespace std;int main(){ char buf[100010]; int n[26]; //freopen("G:/in.txt", "r", stdin); while(gets(buf)){ memset(n,0,s原创 2012-09-12 18:02:52 · 1039 阅读 · 0 评论 -
neuq 1024 万能遥控器
http://ncc.neuq.edu.cn/oj/problem.php?id=1024需要注意的几种代表性情况:1)双冒号 双冒号在中间,冒号不超过6个; 双冒号在两边,冒号不超过7个; 如果不存在双冒号那冒号的个数就是固定的了。2)不存在多个双冒号的情况,如 ::: 是不符合标准的。采用逆序读取简化字符串,逆原创 2012-10-07 20:09:12 · 1435 阅读 · 0 评论