POJ -2503 Babelfish
来源:互联网 发布:淘宝每日精选怎么加入 编辑:程序博客网 时间:2024/05/18 00:06
//以后对于string就用cin和cout输入输出搞定//
AC代码:
#include<stdio.h>#include<string>#include<iostream>using namespace std;#include<map>map<string,string>M;int main(){ char a[30]; char b[15]; char c[15]; char d[15]; while(gets(a)&&a[0]!='\0') { sscanf(a,"%s %s",&b,&c); M[c]=b; } while(gets(d)&&d[0]!='\0') { if(M[d][0]=='\0') cout<<"eh\n"; else cout<<M[d]<<endl; } return 0;}
0 0
- 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
- poj 2503 Babelfish(二分)
- java数据结构之栈
- 深入了解View(五)—— 视图状态及重绘流程分析
- Basis收藏
- 噩梦射手5 角色血量 死亡 重新加载
- bzoj-3261 最大异或和
- POJ -2503 Babelfish
- 简单贴一下关于控制软键盘的问题吧
- uva 10410 - Tree Reconstruction
- POJ 2635 The Embarrassed Cryptographer(素数筛+高精度求模+同余模)
- C++中对象所占的内存大小
- iOS- NSThread/NSOperation/GCD 三种多线程技术的对比及实现
- 优化gcd
- 二叉树的创建和遍历
- 【从零开始学NGUI 】 (九)分页效果实现