容器
土方
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu1251-字符前缀查找问题 map容器
1251#include<iostream>#include<string>#include<map>using namespace std;int main(){ string str,str1; map<string, int> map1; while(getline(cin, str)&& str.length() !=0) { for(int i = 1; i != str.size()+1; i++)原创 2016-07-26 21:28:00 · 473 阅读 · 0 评论 -
hdu1113-字符查找问题 map容器
1113#include #include #include #include using namespace std;int main(){ map map1; map ::iterator it; string str1,str,str2; while (cin>>str && str.compare("XXXXXX")!=0) { str1 = str原创 2016-07-26 17:21:37 · 382 阅读 · 0 评论 -
c++map的用法
1. map最基本的构造函数;mapmapstring; mapmapint;mapmapstring; mapmapchar;mapmapchar; mapmapint;2. map添加数据;mapmaplive;1. maplive.insert(pair(102,"aclive"));2. maplive.insert(map::value_type(32转载 2016-07-26 15:12:13 · 365 阅读 · 0 评论 -
hdu2031-进制转换问题 vector容器
2031Problem Description输入一个十进制数N,将它转换成R进制数输出。 Input输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(210)。 Output为每个测试实例输出转换后的数,每个输出占一行。如果R大于10,则对应的数字规则参考16进制(比如,10用A表示,等等)。 Sample Input7 223 12-4 3 Sampl原创 2016-07-23 10:01:04 · 373 阅读 · 0 评论 -
hdu1877-进制转换问题 vector容器
1877Input输入格式:测试输入包含若干测试用例。每个测试用例占一行,给出m和A,B的值。当m为0时输入结束。 Output输出格式:每个测试用例的输出占一行,输出A+B的m进制数。 Sample Input8 1300 482 1 70 Sample Output25041000 A+B之后的值有可原创 2016-07-22 17:31:05 · 287 阅读 · 0 评论
分享