最新文章列表

poj 3400 Dropping the stones

  错了很久,终于明白了,原来题意理解错了,总以为输入的第一个球一定投入A, 原来第一个投的球不一定是输入的第一个。      用 next_permutation 写的: #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespac ...
zhouxiaojie 评论(0) 有795人浏览 2012-09-28 23:23

【STL】next_permutation的原理和使用

1、碰到next_permutation(permutation:序列的意思) 今天在TC上碰到一道简单题(SRM531 - Division Two - Level One),是求给定数组不按升序排列的最小字典序列(Sequence of numbers A is lexicographically smaller than B if A contains a smaller number on ...
leonard1853 评论(0) 有61733人浏览 2012-03-11 02:08

最近博客热门TAG

Java(141747) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54918) .net(54785) Web(54513) 工作(54116) Linux(50906) Oracle(49876) 应用服务器(43288) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37268) 数据结构(36423)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics