poj3041
来源:互联网 发布:上课玩手机神器淘宝 编辑:程序博客网 时间:2024/05/16 10:16
#include<stdio.h>#include<string.h>#include<string>#include<map>#include<iostream>using namespace std;int main(){ char a[100],b[100],c[100]; map<string,string>map1; while(gets(a)&&a[0]!='\0') { sscanf(a,"%s %s",&b,&c); map1[c]=b; } while(gets(a)&&a[0]!='\0') { if(map1.find(a)==map1.end()) { printf("eh\n"); } else { cout<<map1[a]<<endl; } } return 0;}
0 0
- poj3041
- poj3041
- poj3041
- poj3041
- poj3041
- POJ3041
- POJ3041
- poj3041
- poj3041
- POJ3041
- poj3041
- poj3041
- poj3041
- poj3041
- POJ3041 Asteroids
- poj3041题解
- poj3041 asteroids
- poj3041 Asteroids
- ZooKeeper实现分布式队列Queue
- ListView/RecyclerView的item中有进度条的处理
- poj 1426 Find The Multiple(bfs+同余定理)
- linphone-LinphoneFriendImpl文件对应的JNI层文件分析
- 1.2.3.1 ISO/OSI参考模型
- poj3041
- android之SharedPreferences简介
- (三)、转义字符
- HDU 5800 To My Girlfriend
- A class file was not written解决方法
- hdu 1226(bfs+同余剪枝)
- 图,谱,马尔可夫过程,聚类结构[by林达华]
- HDU-1811-Rank of Tetris【拓扑排序】
- NYOJ 746 整数划分(区间DP)