
STL
QiHang_QiHang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU1263 二维映射
Input第一行正整数N(0每组测试数据的第一行是一个整数M(0 Output对于每一组测试数据,请你输出一份排版格式正确(请分析样本输出)的水果销售情况明细表.这份明细表包括所有水果的产地,名称和销售数目的信息.水果先按产地分类,产地按字母顺序排列;同一产地的水果按照名称排序,名称按字母顺序排序.两组测试数据之间有一个空行.最后一组测试数据之后没有空行.原创 2017-10-17 22:12:07 · 361 阅读 · 0 评论 -
string里find()函数,判断字符串是否包含某个子串
使用 string 的 find 成员函数。 #include #include using namespace std;int main(){string str = "afdsdfs_hello_sdfas#@!";string str1 = "hello";string::size_type idx = str.find( str1 );if ( idx != stri原创 2017-11-19 13:28:49 · 4997 阅读 · 0 评论 -
Gym - 101502B. Linear Algebra Test
Dr. Wail is preparing for today's test in linear algebra course. The test's subject isMatrices Multiplication.Dr. Wail has n matrices, such that the size of theith matrix is(ai × bi), wherea原创 2018-03-23 19:59:01 · 387 阅读 · 0 评论