自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

shen_渊 的博客

只给代码,不给套路

  • 博客(5)
  • 问答 (4)
  • 收藏
  • 关注

原创 multiset与set

set的含义是集合,它是一个有序的容器,里面的元素都是排序好的,支持插入,删除,查找等操作,就   像一个集合一样。所有的操作的都是严格在logn时间之内完成,效率非常高。 set和multiset的区别是:set插入的元素不能相同,但是multiset可以相同。

2017-01-24 12:14:19 173

转载 强大的string :: iterator 和next_permutation

// NYOJ--STL--擅长排列的小明 #include #include #include using namespace std; string a="123456789"; int main() { int n; cin >> n; while(n--) { int n,m; cin >> n >> m; string output

2017-01-24 11:45:35 462

原创 string::npos,一个很大的数

string::npos,这是一个很大的数 npos 是这样定义的: static const size_type npos = -1; 因为 string::size_type (由字符串配置器 allocator 定义) 描述的是 size,故需为无符号整数型别。因为缺省配置器以型别 size_t 作为 size_type,于是 -1 被转换为无符号整数型别,npos 也就成了该

2017-01-24 11:31:01 228

原创 80.NYOJ--STL--一种排序

#include #include #include #include using namespace std; struct rec{ int n; int l;//long int w;//width bool operator if(n>a.n){ return 0; }else if(n return 1; }else { if(l>a.l){ ret

2017-01-24 11:28:05 159

原创 79.NYOJ--STL--求次数

#include #include #include  using namespace std; int main(){ // freopen("input.txt","r",stdin); // freopen("output.txt","w",stdout); map::iterator it; int T; scanf("%d",&T); while(T--){ in

2017-01-24 11:27:33 170

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除