hdu1075-What Are You Talking About
来源:互联网 发布:vnr翻译软件 编辑:程序博客网 时间:2024/05/22 00:38
点击打开链接
恰好看到几个STL的题目,练习练习,但是苦于正在装系统,没有编译器,下面这个就是结果
#include<iostream>#include<cstdio>#include<algorithm>#include<string>#include<map>#include<string.h>using namespace std ; map<string,string>mp;int main(){mp.clear();string str1,str2;cin >> str1 ;while( cin >> str1 ){if(str1=="END")break;cin >> str2 ;mp[ str2 ] = str1 ;}cin >> str1 ;char ch ;ch = getchar() ;str1 = "";while(1){while(1){scanf("%c",&ch);if( !( ( ch >= 'a' & ch <= 'z') || (ch >= 'A' && ch <= 'Z' ) ) )break;str1 += ch ;}if( str1 == "END" )break;if( mp.find( str1 ) == mp.end())cout << str1;elsecout << mp[ str1 ] ;str1 = "";cout << ch;}return 0;}
- What are you talking about(HDU1075)
- What Are You Talking About hdu1075
- hdu1075 What Are You Talking About
- hdu1075-What Are You Talking About
- HDU1075:What Are You Talking About
- HDU1075 What Are You Talking About
- hdu1075 What Are You Talking About
- HDU1075 What Are You Talking About 【STL】
- What Are You Talking About hdu1075
- hdu1075 What Are You Talking About
- HDU1075 What Are You Talking About
- HDU1075 What Are You Talking About
- HDU1075 What Are You Talking About
- HDU1075 What Are You Talking About
- HDU1075-What Are You Talking About
- HDU1075 What Are You Talking About【MAP】
- hdu1075 What Are You Talking About-字典树
- 【字典树】 hdu1075 What Are You Talking About
- POJ 2886: Who Gets the Most Candies?
- java环境变量设置
- setsockopt()用法(参数详细说明)
- MPEG4码流简单分析
- 快速排序
- hdu1075-What Are You Talking About
- 关于MPEG4 码流(mpeg4 raw data)的格式分析
- 贝叶斯分类器的matlab实现
- 网页调用百度地图,创建3d地图
- asp.net连接数据库三种方法总结
- WEB应用中读取资源文件的方式有三种
- 《Qt for Symbian》序言
- 经销商问题(zkw费用流不适用稠密图) [新-柯黑的提醒]
- C++之异常处理