摘要: P1042 乒乓球字符串string的基本使用#include #include #include #include #include using namespace std;static const auto y = []() { std::ios:... 阅读全文
posted @ 2019-01-21 15:30 Sun2Q 阅读(177) 评论(0) 推荐(0) 编辑
摘要: P1563 玩具谜题结论:map在一些情况有种“对象”的意味,在JSON中,对象可以用K-V格式存储;mybatis中参数是map或者对象都可以实现解析。。。k-v格式的数据存储和对象可以相互转换。使用map进行模拟耗时1300ms。。。。不会优化了。。。... 阅读全文
posted @ 2019-01-21 02:23 Sun2Q 阅读(194) 评论(0) 推荐(0) 编辑
摘要: vector的resize与reserve reserve()函数为当前vector预留至少共容纳size个元素的空间.(译注:实际空间可能大于size) resize() 函数( void resize( size_type size, TYPE val ) )改变当前vector的大小为size 阅读全文
posted @ 2019-01-21 01:22 Sun2Q 阅读(2531) 评论(0) 推荐(0) 编辑