poj2503(stl, map ,sscanf)
来源:互联网 发布:mac 重装 编辑:程序博客网 时间:2024/06/05 21:15
#include <iostream>#include <cstring>#include <algorithm>#include <cstdio>#include <map>using namespace std;int main(){ char c1[30], c2[30], c3[30]; string ss; map<string, string>s; while(gets(c1)){ if(strlen(c1) == 0) break; sscanf(c1, "%s %s", c2, c3); s[string(c3)] = c2; } while(cin >> ss){ string r = s[ss]; if(!r.length()) cout << "eh" << endl; else cout << r << endl; } return 0;}
0 0
- poj2503(stl, map ,sscanf)
- poj2503——Babelfish(STL,map)
- poj2503 Babelfish(STL-map)
- STL map的使用 POJ2503
- POJ2503 Babelfish (map)
- Babelfish Poj2503(STL map的使用)
- poj2503用STL的map解决
- poj2503 Babelfish(map,二分)
- POJ2503-map
- poj2503 -Map
- POJ2503 Babelfish (输入格式控制与STL map的使用)
- POJ2503--Babelfish--map映射
- POJ2503 Babelfish map做法
- POJ2503 Babelfish【map】
- Poj2503 map映射使用
- map poj2503 Babelfish
- poj2503 map构建字典树
- poj2503查字典 -map或hash
- 2191救基友记2
- myeclipse四种方式发布项目
- 关于textbackground的问题
- linux环境对各文件的解压操作
- 内部类
- poj2503(stl, map ,sscanf)
- Buffer与cache的区别
- 进程的状态
- 死锁产生的原因及条件、如何避免死锁
- 【error】datatable editor删除过期提示
- HDU 1114
- 学习MVC之租房网站(三)-编写实体类并创建数据库
- [leetCode刷题笔记]2017.04.15
- POJ 2479 Maximum sum 解题报告