POJ 2503 Babelfish G++
来源:互联网 发布:儿童读书软件 编辑:程序博客网 时间:2024/05/24 05:39
#include <cstdio>#include <string>#include <map>#include <cstring>using namespace std;//谢谢博友程序 map<string, string> da;int main(){while(1){char e[200];char f[200];char g[400];memset(e,0,sizeof(char));memset(f,0,sizeof(char));memset(g,0,sizeof(char));gets(g);if(g[0]=='\0'){break;}sscanf(g,"%s %s",e,f);da[f]=e;}while(1){char t[200];memset(t,0,sizeof(char));//scanf("%s",t);gets(t);//更符合题意if(t[0]=='\0'){break;}if(da.find(t)!=da.end()){printf("%s\n",da[t].c_str());}else{printf("eh\n");}}return 0;}
对照字典翻译单词。没找到的单词输出eh。
阅读全文
0 0
- POJ 2503 Babelfish G++
- poj 2503 Babelfish
- POJ 2503 Babelfish(HASH)
- poj 2503 Babelfish
- POJ 2503 Babelfish
- POJ 2503 Babelfish
- poj 2503 Babelfish
- POJ 2503 Babelfish
- poj 2503 Babelfish 【hash】
- poj 2503 Babelfish【trie】
- POJ 2503 Babelfish
- poj-2503 Babelfish
- poj-2503 Babelfish
- poj 2503 Babelfish
- poj 2503 Babelfish
- POJ 2503 Babelfish
- POJ 2503 Babelfish (Hash)
- POJ 2503 Babelfish
- 请写一个C函数,若处理器是Big_endian的,则返回0;若是Little_endian的,则返回1
- V型积木(dp)
- 【七日牧函】来一次属灵交谈
- CentOS 7上安装Tomcat
- js获取url指定得参数值
- POJ 2503 Babelfish G++
- JavaScript RegExp 对象
- tf教程(四):Adding a frame
- IO流之Commons IO 2.5-IOUtils
- 【Kotlin开发Android】开始一个新项目
- CentOS安装JDK
- C++__程序设计初步
- eclipse调试快捷键
- 编写一个js函数用来求一个数组中各元素之积