随笔分类 -  c++标准模板库

Surprising Strings(map类)
摘要:http://poj.org/problem?id=3096题意容易理解,开始直接暴力,还是用map写下吧,熟练一下; 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 char s[100];10 char t[5];11 int n,i;12 map mymap;13 14 while(~scanf("%s",s))15 {16 if(s[0] == '*')17 break... 阅读全文
posted @ 2013-10-15 20:28 straw_berry 阅读(187) 评论(0) 推荐(0)