poj 3096 (STL map)
来源:互联网 发布:apache 压力测试教程 编辑:程序博客网 时间:2024/06/06 01:47
对STL的map的考察
不懂得map的童鞋请出门左转http://blog.csdn.net/code_kk/article/details/50591943
#include <iostream>#include <cstring>#include <cstdio>#include <cstdlib>#include <cmath>#include <queue>#include <stack>#include <set>#include <map>#include <list>#include <vector>#include <algorithm>#include <iomanip>#define RR freopen("in.txt","r"m,stdin)#define WW freopen("out.txt","w",stdout)#define LL long long//#pragma comment(linker, "/STACK:1024000000,1024000000")using namespace std;const int INF = 0x3f3f3f3f;const int MAXN = 1e6;const double eps = 1e-9;int main(){ string str; while(cin>>str && str != "*") { cout<<str<<" is "; bool flag = false; for(int i=0; i<str.length() && !flag; i++) { map<string, int>Map; for(int j=0; j+i+1<str.length() && !flag; j++) { char str_tmp[] = {str[j],str[j+i+1],'\0'}; Map[str_tmp]++; if(Map[str_tmp] > 1) flag = true; } } if(!flag) cout<<"surprising."<<endl; else cout<<"NOT surprising."<<endl; } return 0;}
1 0
- poj 3096 (STL map)
- POJ 3096 surprising_string (coding with STL <map> )
- POJ 3096 Surprising Strings(STL map)
- poj 1002 stl map
- POJ—2153(STL<map>)
- POJ 2503 (STL map)
- POJ 2503 Babelfish(STL-map)
- POJ训练计划3096_Surprising Strings(STL/map)
- poj 3096 Surprising Strings(stl map的使用)
- [poj 3481]Double Queue[set || map][STL]
- POJ 2643 Election ——STL map
- poj 3481 Double Queue(使用STL map)
- poj 2418 Hardwood Species(使用STL map)
- poj 1002 487-3279(使用STL map)
- poj 2503 Babelfish(STL map写法)
- POJ 3087 - STL(map)+滚动数组
- POJ 2503 Babelfish STL-map容器
- POJ 2503-Babelfish(STL-map)
- 韩顺平 javascript教学视频_学习笔记21_js内部类_js系统函数 重点重点
- layoutSubviews在什么情况下调用
- Oracle内存结构
- C++:const限定符基本解析
- 贪心 HDU 2037 今年暑假不AC
- poj 3096 (STL map)
- poj-2983 Is the Information Reliable? 差分约束+判负环
- 从HelloWorld来看Go语言的基本面貌
- oc的基础知识
- JMeter
- 关于我,关于本blog,关于本blog的正确打开方式
- 最长递增子序列(三种方法求解)
- 曹操让张辽一战成名的取胜密函
- mysql 语句中带变量