HDU 1075 What Are You Talking About
来源:互联网 发布:nature数据库 东南大学 编辑:程序博客网 时间:2024/04/28 10:38
还是map
#include<bits/stdc++.h>using namespace std;map<string,string>m;int main(){ string s1,s2,s; char c; cin>>s1; while(cin>>s1) { if(s1=="END") break; cin>>s2; m[s2]=s1; } cin>>s1; scanf("\n"); while(1) { scanf("%c",&c); if(c<='z'&&c>='a') s+=c; else if(c=='\n') printf("\n"); else if(c=='E') break; else { if(m[s]=="") cout<<s; else cout<<m[s]; s=""; printf("%c",c); } } return 0;}
0 0
- hdu 1075 What Are You Talking About
- HDU 1075 What Are You Talking About
- HDU 1075 What Are You Talking About
- HDU-1075 What Are You Talking About
- hdu 1075 What Are You Talking About
- hdu 1075 What Are You Talking About
- hdu 1075 What Are You Talking About
- HDU-1075-What Are You Talking About
- HDU 1075 What Are You Talking About
- HDU 1075 What Are You Talking About
- hdu 1075 What Are You Talking About
- Hdu 1075 What Are You Talking About
- hdu 1075 What Are You Talking About
- hdu 1075 What Are You Talking About
- HDU 1075 What Are You Talking About
- hdu-1075-What Are You Talking About
- hdu 1075 What Are You Talking About
- hdu 1075 What Are You Talking About
- 递归入门(二) -- 斐波那契数列
- 使用dtd制作XML约束
- unity3d 混淆
- C++ 中的赋值运算符重载和复制构造函数
- ECMS(帝国CMS)下创建表单实现客户端用户信息的录入
- HDU 1075 What Are You Talking About
- 全栈JavaScript之路(十八)HTML5 自定义数据属性
- 这世界为什么有这么一个妖孽
- andoird --- XmlPullParser 的使用
- Delphi的结构体用法2
- python 多线程与线程池
- OSX下MySQL学习基础环境搭建
- 这世界为什么有这么一个妖孽
- timeb 的使用