锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国内高清久久久久久,国内精品伊人久久久久影院对白,漂亮人妻被黑人久久精品http://m.shnenglu.com/dqchen/category/3246.html鍐欏嚭涓涓彲浠ュ伐浣滅殑紼嬪簭騫朵笉澶?/description>zh-cnTue, 20 May 2008 11:28:25 GMTTue, 20 May 2008 11:28:25 GMT60鍒楀嚭鎵鏈?浣嶆暟錛屽畠鐨勫墠n浣嶈兘琚玭鏁撮櫎http://m.shnenglu.com/dqchen/archive/2007/04/16/22030.htmlDainDainMon, 16 Apr 2007 09:29:00 GMThttp://m.shnenglu.com/dqchen/archive/2007/04/16/22030.htmlhttp://m.shnenglu.com/dqchen/comments/22030.htmlhttp://m.shnenglu.com/dqchen/archive/2007/04/16/22030.html#Feedback5http://m.shnenglu.com/dqchen/comments/commentRss/22030.htmlhttp://m.shnenglu.com/dqchen/services/trackbacks/22030.html鏈綆鍗曠殑鏄┓涓撅紝涓嶈繃閭e彲瑕丱(9*109)錛屼笉鍙彇 

#include <iostream>
#include 
<vector>
#include 
<algorithm>

using namespace std;

vector
<int> fun(int n)
{
    vector
<int> last,all;
    
int i,j,k;
    
for(i = 1;i < 10;++i)
        all.push_back(i);

    
if(n == 1)
        
return all;

    
int size;
    
int num;
    
for(i = 2;i <= n;++i)
    
{
        last 
= all;
        all.clear();
        size 
= (int)last.size();
        
for(j = 0;j < size;++j)
        
{
            
for(k = 0;k < 10;++k)
            
{
                num 
= last[j] * 10 + k;
                
if(num % i == 0)
                    all.push_back(num);
            }

        }

        last.clear();
    }


    
return all;
}


Dain 2007-04-16 17:29 鍙戣〃璇勮
]]>
鏈澶х殑瀛愬簭鍒楀拰闂http://m.shnenglu.com/dqchen/archive/2007/02/07/18500.htmlDainDainWed, 07 Feb 2007 02:52:00 GMThttp://m.shnenglu.com/dqchen/archive/2007/02/07/18500.htmlhttp://m.shnenglu.com/dqchen/comments/18500.htmlhttp://m.shnenglu.com/dqchen/archive/2007/02/07/18500.html#Feedback6http://m.shnenglu.com/dqchen/comments/commentRss/18500.htmlhttp://m.shnenglu.com/dqchen/services/trackbacks/18500.html姹傝В璇ラ棶棰樼殑鍥涚綆楁硶錛?br /> 鏃墮棿O(N3)錛?/em>綆楁硶涓
int 聽MaxSubsequenceSum( const int 聽A[], int 聽N)
{
聽聽聽聽
int
聽ThisSum,MaxSum,i,j,k;
聽聽聽聽
聽聽聽聽MaxSum聽
= 0
;
聽聽聽聽
for (i聽 = 0 ;i聽 < 聽N;i ++
)
聽聽聽聽聽聽聽聽
for (j聽 = 聽i;j聽 < 聽N;j ++
)
聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽ThisSum聽
= 0
;
聽聽聽聽聽聽聽聽聽聽聽聽
for (k聽 = 聽i;k聽 <= 聽j;k ++ )聽聽聽聽ThisSum聽 +=
聽A[k];聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽
if (ThisSum聽 > 聽MaxSum)聽聽聽聽MaxSum聽 =
聽ThisSum;
聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽
聽聽聽聽
return 聽MaxSum;
}
鏃墮棿O(N2)錛?/em>綆楁硶浜?/strong>
int 聽MaxSubsequenceSum( const int 聽A[], int 聽N)
{
聽聽聽聽
int
聽ThisSum,MaxSum,i,j;
聽聽聽聽
聽聽聽聽MaxSum聽
= 0
;
聽聽聽聽
for (i聽 = 0 ;i聽 < 聽N;i ++
)
聽聽聽聽
{
聽聽聽聽聽聽聽聽ThisSum聽
= 0
;
聽聽聽聽聽聽聽聽
for (j聽 = 聽i;j聽 < 聽N;j ++
)
聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽ThisSum聽
+=
聽A[k];聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽
if (ThisSum聽 > 聽MaxSum)聽聽聽聽MaxSum聽 =
聽ThisSum;
聽聽聽聽聽聽聽聽}

聽聽聽聽}

聽聽聽聽聽聽聽聽
聽聽聽聽
return 聽MaxSum;
}
鏃墮棿O(NlogN)錛岀畻娉曚笁
static int 聽MaxSubSum( const int 聽A[], int 聽Left, int 聽Right)
{
聽聽聽聽
int
聽MaxLeftSum,MaxRightSum;
聽聽聽聽
int
聽MaxLeftBorderSum,MaxRightBorderSum;
聽聽聽聽
int
聽LeftBorderSum,RightBorderSum;
聽聽聽聽
int
聽Center,i;
聽聽聽聽
聽聽聽聽
if (Left聽 ==
聽Right)
聽聽聽聽聽聽聽聽
if (A[left]聽 > 0 )聽聽聽聽 return
聽A[left];
聽聽聽聽聽聽聽聽
else 聽聽聽聽 return 0
;
聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽Center聽
= 聽(Left聽 + 聽Right)聽 / 2
;
聽聽聽聽MaxLeftSum聽
=
聽MaxSubSum(A,Left,Center);
聽聽聽聽MaxRightSum聽
= 聽MaxSubSum(A,Center聽 + 1
,Right);
聽聽聽聽
聽聽聽聽MaxLeftBorderSum聽
= 0
;
聽聽聽聽LeftBorderSum聽
= 0
;
聽聽聽聽
for (i聽 = 聽Center;i聽 >= 聽Left;i --
)
聽聽聽聽
{
聽聽聽聽聽聽聽聽LeftBorderSum聽
+=
聽A[i];
聽聽聽聽聽聽聽聽
if (LeftBorderSum聽 > 聽MaxLeftBorderSum)聽聽聽聽MaxLeftBorderSum聽 =
聽LeftBorderSum;
聽聽聽聽}

聽聽聽聽
聽聽聽聽MaxRightBorderSum聽
= 0 ;
聽聽聽聽RightBorderSum聽
= 0
;
聽聽聽聽
for (i聽 = 聽Center聽 + 1 ;i聽 <= 聽Right;i ++
)
聽聽聽聽
{
聽聽聽聽聽聽聽聽RightBorderSum聽
+=
聽A[i];
聽聽聽聽聽聽聽聽
if (RightBorderSum聽 > 聽MaxRightBorderSum)聽聽聽聽MaxRightBorderSum聽 =
聽RightBorderSum;
聽聽聽聽}

聽聽聽聽
聽聽聽聽
return 聽Max3(MaxLeftSum,MaxRightSum,MaxLeftBorderSum聽 + 聽MaxRightBorderSum);
}


int 聽MaxSubsequenceSum( const int聽A[],int 聽N)
{
聽聽聽聽
return 聽MaxSubSum(A, 0 ,N聽 - 1
);聽聽聽聽
}
鏃墮棿O(N)錛岀畻娉曞洓
intMaxSubsequenceSum( const int 聽A[], int 聽N)
{
聽聽聽聽
int 聽ThisSum,MaxSum,i;
聽聽聽聽
聽聽聽聽ThisSum聽
= 聽MaxSum聽 = 0 ;
聽聽聽聽
for (i聽 = 0 ;i聽 < 聽N;i ++ )
聽聽聽聽
{
聽聽聽聽聽聽聽聽ThisSum聽
+= 聽A[i];
聽聽聽聽聽聽聽聽
if (ThisSum聽 > 聽MaxSum)
聽聽聽聽聽聽聽聽聽聽聽聽MaxSum聽
= 聽ThisSum;
聽聽聽聽聽聽聽聽
else
聽聽聽聽聽聽聽聽聽聽聽聽ThisSum聽
= 0 ;
聽聽聽聽}

聽聽聽聽
聽聽聽聽
return 聽MaxSum;
}


鍙傝冦婃暟鎹粨鏋勪笌綆楁硶鍒嗘瀽銆?/font>



Dain 2007-02-07 10:52 鍙戣〃璇勮
]]>
鍏ㄦ帓鍒?/title><link>http://m.shnenglu.com/dqchen/archive/2006/12/25/16812.html</link><dc:creator>Dain</dc:creator><author>Dain</author><pubDate>Mon, 25 Dec 2006 02:17:00 GMT</pubDate><guid>http://m.shnenglu.com/dqchen/archive/2006/12/25/16812.html</guid><wfw:comment>http://m.shnenglu.com/dqchen/comments/16812.html</wfw:comment><comments>http://m.shnenglu.com/dqchen/archive/2006/12/25/16812.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/dqchen/comments/commentRss/16812.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/dqchen/services/trackbacks/16812.html</trackback:ping><description><![CDATA[ <p> <font size="2"> <font color="#008000"> <strong>棣栧厛錛岀粰鍑虹畻娉曠殑鎬濊礬</strong> </font> <br />璁綬={r<sub>1</sub>,r<sub>2</sub>,...,r<sub>n</sub>}鏄榪涜鎺掑垪鐨刵涓厓绱狅紝R<sub>i</sub>=R-{r<sub>i</sub>}銆?br />闆嗗悎X涓厓绱犵殑鍏ㄦ帓鍒楄涓簆ermutation(X)錛?ri)permutation(X)琛ㄧず鍦ㄥ叏鎺掑垪permutation(X)鐨勬瘡涓涓帓鍒楀墠鍔犱笂鍓嶇紑r<sub>i</sub>寰楀埌鐨勬帓鍒椼?br />R鐨勫叏鎺掑垪鍙綊綰沖畾涔夊涓嬶細(xì)<br />褰搉=1鏃訛紝permutation(R)={r},r鏄泦鍚圧涓敮涓鐨勫厓绱狅紱<br />褰搉>1鏃訛紝permutation(R)鐢?r<sub>1</sub>)permutation(R<sub>1</sub>)錛?r<sub>2</sub>)permutation(R<sub>2</sub>)錛屸︹︼紝(r<sub>n</sub>)permutation(R<sub>n</sub>)鏋勬垚銆?br /><br /><font color="#0000ff">姝ょ畻娉曡姹傚緟鎺掑垪鐨勬暟鎹槸浜掑紓鐨勶紝鍥犱負(fù)璇ョ畻娉曚笉鑳芥嫻嬪悓縐嶆帓鍒楁槸鍚﹀凡緇忚緭鍑猴紝濡傦細(xì)<br />1, 1, 2<br />閭d箞錛屽叏鎺掑垪鏈熸湜杈撳嚭鏄細(xì)<br />1, 1, 2<br />1, 2, 1<br />2, 1, 1<br /></font></font> <font size="2"> <font color="#0000ff">浣嗘槸璇ョ畻娉曠殑杈撳嚭錛?br /></font> </font> <font size="2"> <font color="#008000"> <font color="#0000ff"> <span style="COLOR: #000000"> <font color="#0000ff">1, 1, 2<br />1, 2, 1<br />2, 1, 1<br /></font> <font color="#ff0000">1, 1, 2<br />1, 2, 1<br />2, 1, 1</font> <br /> </span> </font> <font color="#0000ff">榪欐槸璇ョ畻娉曠殑緙虹偣錛屼篃闄愬埗浜?jiǎn)瀹冪殑閫傜敤鑼冨洿銆?br /></font> <br /> </font>紼嬪簭鎻忚堪濡備笅錛?/font> </p> <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)"> <span style="COLOR: rgb(0,0,0)">#include聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">iostream</span> <span style="COLOR: rgb(0,0,0)">></span> <span style="COLOR: rgb(0,0,0)"> <br />#include聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">algorithm</span> <span style="COLOR: rgb(0,0,0)">></span> <span style="COLOR: rgb(0,0,0)">聽<br /><br /></span> <span style="COLOR: rgb(0,0,255)">using</span> <span style="COLOR: rgb(0,0,0)">聽</span> <span style="COLOR: rgb(0,0,255)">namespace</span> <span style="COLOR: rgb(0,0,0)">聽std;聽<br /><br /></span> <span style="COLOR: rgb(0,128,0)">//</span> <span style="COLOR: rgb(0,128,0)">聽閫掑綊浜х敓R[k:n]鐨勬墍鏈夌殑鎺掑垪錛?strong><font color="#ee82ee">鍏冪礌鏄簰寮傜殑</font></strong></span> <span style="COLOR: rgb(0,128,0)"> <br /> </span> <span style="COLOR: rgb(0,0,0)">template聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,255)">class</span> <span style="COLOR: rgb(0,0,0)">聽Type</span> <span style="COLOR: rgb(0,0,0)">></span> <span style="COLOR: rgb(0,0,0)"> <br /> </span> <span style="COLOR: rgb(0,0,255)">void</span> <span style="COLOR: rgb(0,0,0)">聽permutation(Type聽</span> <span style="COLOR: rgb(0,0,0)">*</span> <span style="COLOR: rgb(0,0,0)">R,</span> <span style="COLOR: rgb(0,0,255)">int</span> <span style="COLOR: rgb(0,0,0)">聽k,</span> <span style="COLOR: rgb(0,0,255)">int</span> <span style="COLOR: rgb(0,0,0)">聽n)<br />{<br />聽聽聽聽</span> <span style="COLOR: rgb(0,0,255)">if</span> <span style="COLOR: rgb(0,0,0)">(k</span> <span style="COLOR: rgb(0,0,0)">==</span> <span style="COLOR: rgb(0,0,0)">n)<br />聽聽聽聽{<br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: rgb(0,0,255)">for</span> <span style="COLOR: rgb(0,0,0)">(</span> <span style="COLOR: rgb(0,0,255)">int</span> <span style="COLOR: rgb(0,0,0)">聽i</span> <span style="COLOR: rgb(0,0,0)">=</span> <span style="COLOR: rgb(0,0,0)">0</span> <span style="COLOR: rgb(0,0,0)">;i</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">n;</span> <span style="COLOR: rgb(0,0,0)">++</span> <span style="COLOR: rgb(0,0,0)">i)<br />聽聽聽聽聽聽聽聽聽聽聽聽cout聽</span> <span style="COLOR: rgb(0,0,0)"><<</span> <span style="COLOR: rgb(0,0,0)">聽R[i]聽</span> <span style="COLOR: rgb(0,0,0)"><<</span> <span style="COLOR: rgb(0,0,0)">聽</span> <span style="COLOR: rgb(0,0,0)">"</span> <span style="COLOR: rgb(0,0,0)">\t</span> <span style="COLOR: rgb(0,0,0)">"</span> <span style="COLOR: rgb(0,0,0)">;<br />聽聽聽聽聽聽聽聽cout聽</span> <span style="COLOR: rgb(0,0,0)"><<</span> <span style="COLOR: rgb(0,0,0)">聽endl;<br />聽聽聽聽}<br />聽聽聽聽</span> <span style="COLOR: rgb(0,0,255)">else</span> <span style="COLOR: rgb(0,0,0)"> <br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: rgb(0,0,255)">for</span> <span style="COLOR: rgb(0,0,0)">(</span> <span style="COLOR: rgb(0,0,255)">int</span> <span style="COLOR: rgb(0,0,0)">聽i</span> <span style="COLOR: rgb(0,0,0)">=</span> <span style="COLOR: rgb(0,0,0)">k;i</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">n;</span> <span style="COLOR: rgb(0,0,0)">++</span> <span style="COLOR: rgb(0,0,0)">i)<br />聽聽聽聽聽聽聽聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽swap(R[k],R[i]);<br />聽聽聽聽聽聽聽聽聽聽聽聽permutation(R,k</span> <span style="COLOR: rgb(0,0,0)">+</span> <span style="COLOR: rgb(0,0,0)">1</span> <span style="COLOR: rgb(0,0,0)">,n);<br />聽聽聽聽聽聽聽聽聽聽聽聽swap(R[k],R[i]);<br />聽聽聽聽聽聽聽聽}<br />}</span> </div> <p> <font size="2"> <font color="#008000"> <strong>榪樻湁涓縐嶅緢綆鍗曠殑鏂規(guī)硶錛屼嬌鐢℅P涓殑鏂規(guī)硶<br /><br /></strong> </font> <font color="#0000ff">璇ョ畻娉曟槸STL涓殑鑼冨瀷綆楁硶錛屽綋鐒舵晥鏋滄槸寰堝ソ鐨勶紝涓嶄細(xì)鍑虹幇涓婇潰鐨勭畻娉曠殑鎯呭喌銆?br /><br /></font>紼嬪簭鎻忚堪濡備笅錛?/font> </p> <font size="2"> <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)"> <span style="COLOR: rgb(0,128,0)">//</span> <span style="COLOR: rgb(0,128,0)">聽浣跨敤娉涘瀷綆楁硶next_permutation()</span> <span style="COLOR: rgb(0,128,0)"> <br /> </span> <span style="COLOR: rgb(0,0,0)">#include聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">iostream</span> <span style="COLOR: rgb(0,0,0)">></span> <span style="COLOR: rgb(0,0,0)"> <br />#include聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">vector</span> <span style="COLOR: rgb(0,0,0)">></span> <span style="COLOR: rgb(0,0,0)"> <br />#include聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">algorithm</span> <span style="COLOR: rgb(0,0,0)">></span> <span style="COLOR: rgb(0,0,0)">聽<br /><br /></span> <span style="COLOR: rgb(0,0,255)">using</span> <span style="COLOR: rgb(0,0,0)">聽</span> <span style="COLOR: rgb(0,0,255)">namespace</span> <span style="COLOR: rgb(0,0,0)">聽std;聽<br /><br /></span> <span style="COLOR: rgb(0,128,0)">//</span> <span style="COLOR: rgb(0,128,0)">聽浜х敓R[k:n]鐨勬墍鏈夌殑鎺掑垪</span> <span style="COLOR: rgb(0,128,0)"> <br /> </span> <span style="COLOR: rgb(0,0,0)">template聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,255)">class</span> <span style="COLOR: rgb(0,0,0)">聽Type</span> <span style="COLOR: rgb(0,0,0)">></span> <span style="COLOR: rgb(0,0,0)">聽<br /><br /></span> <span style="COLOR: rgb(0,0,255)">void</span> <span style="COLOR: rgb(0,0,0)">聽pernutation(Type聽</span> <span style="COLOR: rgb(0,0,0)">*</span> <span style="COLOR: rgb(0,0,0)">R,</span> <span style="COLOR: rgb(0,0,255)">int</span> <span style="COLOR: rgb(0,0,0)">聽k,</span> <span style="COLOR: rgb(0,0,255)">int</span> <span style="COLOR: rgb(0,0,0)">聽n)<br />{<br />聽vector</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">Type</span> <span style="COLOR: rgb(0,0,0)">></span> <span style="COLOR: rgb(0,0,0)">聽myVec;<br />聽</span> <span style="COLOR: rgb(0,0,255)">int</span> <span style="COLOR: rgb(0,0,0)">聽i,size聽</span> <span style="COLOR: rgb(0,0,0)">=</span> <span style="COLOR: rgb(0,0,0)">聽n聽</span> <span style="COLOR: rgb(0,0,0)">-</span> <span style="COLOR: rgb(0,0,0)">聽k;<br />聽</span> <span style="COLOR: rgb(0,0,255)">for</span> <span style="COLOR: rgb(0,0,0)">(i聽</span> <span style="COLOR: rgb(0,0,0)">=</span> <span style="COLOR: rgb(0,0,0)">聽k;i聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">聽n;i</span> <span style="COLOR: rgb(0,0,0)">++</span> <span style="COLOR: rgb(0,0,0)">)<br />聽聽myVec.push_back(R[i]);<br />聽</span> <span style="COLOR: rgb(0,128,0)">//</span> <span style="COLOR: rgb(0,128,0)">聽浣跨敤next_permutation()鍑芥暟蹇呴』鏄湁搴忕殑鏁版嵁</span> <span style="COLOR: rgb(0,128,0)"> <br /> </span> <span style="COLOR: rgb(0,0,0)">聽sort(myVec.begin(),myVec.end());<br />聽聽<br />聽</span> <span style="COLOR: rgb(0,0,255)">do</span> <span style="COLOR: rgb(0,0,0)"> <br />聽{<br />聽聽</span> <span style="COLOR: rgb(0,0,255)">for</span> <span style="COLOR: rgb(0,0,0)">(i聽</span> <span style="COLOR: rgb(0,0,0)">=</span> <span style="COLOR: rgb(0,0,0)">聽</span> <span style="COLOR: rgb(0,0,0)">0</span> <span style="COLOR: rgb(0,0,0)">;i聽</span> <span style="COLOR: rgb(0,0,0)"><</span> <span style="COLOR: rgb(0,0,0)">聽size;i</span> <span style="COLOR: rgb(0,0,0)">++</span> <span style="COLOR: rgb(0,0,0)">)<br />聽聽聽cout聽</span> <span style="COLOR: rgb(0,0,0)"><<</span> <span style="COLOR: rgb(0,0,0)">聽myVec[i]聽</span> <span style="COLOR: rgb(0,0,0)"><<</span> <span style="COLOR: rgb(0,0,0)">聽</span> <span style="COLOR: rgb(0,0,0)">"</span> <span style="COLOR: rgb(0,0,0)">\t</span> <span style="COLOR: rgb(0,0,0)">"</span> <span style="COLOR: rgb(0,0,0)">;<br />聽聽cout聽</span> <span style="COLOR: rgb(0,0,0)"><<</span> <span style="COLOR: rgb(0,0,0)">聽endl;<br />聽}<br />聽</span> <span style="COLOR: rgb(0,0,255)">while</span> <span style="COLOR: rgb(0,0,0)">(next_permutation(myVec.begin(),myVec.end()));<br />}</span> </div> <p>娉細(xì)榪欓噷鐨勫緟鍏ㄦ帓鐨勬暟鎹槸瀛樺湪鏁扮粍鎴栬呭悜閲忎腑鐨勩?/p> </font> <img src ="http://m.shnenglu.com/dqchen/aggbug/16812.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/dqchen/" target="_blank">Dain</a> 2006-12-25 10:17 <a href="http://m.shnenglu.com/dqchen/archive/2006/12/25/16812.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>綆楁硶姹傝В(榪樻病鏈変漢鍋氬嚭鏉ワ紝鍞?http://m.shnenglu.com/dqchen/archive/2006/12/21/16679.htmlDainDainThu, 21 Dec 2006 02:58:00 GMThttp://m.shnenglu.com/dqchen/archive/2006/12/21/16679.htmlhttp://m.shnenglu.com/dqchen/comments/16679.htmlhttp://m.shnenglu.com/dqchen/archive/2006/12/21/16679.html#Feedback6http://m.shnenglu.com/dqchen/comments/commentRss/16679.htmlhttp://m.shnenglu.com/dqchen/services/trackbacks/16679.html a containing n numbers, return the result of the following expression:   闃呰鍏ㄦ枃

Dain 2006-12-21 10:58 鍙戣〃璇勮
]]>
string鍜宨nt闂寸殑綾誨瀷杞崲http://m.shnenglu.com/dqchen/archive/2006/12/10/16215.htmlDainDainSun, 10 Dec 2006 05:05:00 GMThttp://m.shnenglu.com/dqchen/archive/2006/12/10/16215.htmlhttp://m.shnenglu.com/dqchen/comments/16215.htmlhttp://m.shnenglu.com/dqchen/archive/2006/12/10/16215.html#Feedback7http://m.shnenglu.com/dqchen/comments/commentRss/16215.htmlhttp://m.shnenglu.com/dqchen/services/trackbacks/16215.html int 杞崲 string
string 聽int2str( int 聽num)
{
聽聽聽
if (num聽 == 0 )
聽聽聽聽聽聽
return " 0 " ;
聽聽聽
聽聽聽
string 聽str聽 = "" ;
聽聽聽
int 聽num_聽 = 聽num聽 > 0 ? 聽num聽:聽 - 1 * 聽num;

聽聽聽
while (num_)
聽聽聽
{
聽聽聽聽聽聽str聽
= 聽( char )(num_聽 % 10 + 48 )聽 + 聽str;
聽聽聽聽聽聽num_聽
/= 10 ;
聽聽聽 }


聽聽聽
if (num聽 < 0 )
聽聽聽聽聽聽str聽
= " - " + 聽str;

聽聽聽
return 聽str;
}
string 杞崲 int
int 聽str2int( string 聽str)
{
聽聽聽
int 聽i,len聽 = 聽str.size(),num聽 = 0 ;

聽聽聽 i聽
= 0 ;聽聽聽
聽聽聽
if (str[ 0 ]聽 == ' - ' )
聽聽聽聽聽聽i聽
= 1 ;
聽聽聽
聽聽聽
while (i聽 < 聽len)
聽聽聽
{
聽聽聽聽聽聽num聽
= 聽num聽 * 10 + 聽( int )(str[i]聽 - ' 0 ' );
聽聽聽聽聽聽i
++ ;
聽聽聽 }


聽聽聽
if (str[ 0 ]聽 == ' - ' )
聽聽聽聽聽聽num聽
*= - 1 ;

聽聽聽
return 聽num;
}

string鍜宨nt闂存槸鍙互鑷繁鍐欏嚱鏁板疄鐜扮被鍨嬭漿鎹㈢殑錛屼絾鏄痵tring鍜宒ouble灝變笉澶柟渚夸簡(jiǎn)錛宻tirng杞崲double鍙互鑷畾涔夊嚱鏁板疄鐜幫紝浣嗘槸錛宒ouble杞崲string灝遍渶瑕佷嬌鐢ㄥ簱鍑芥暟浜?jiǎn)锛屽sprintf


Dain 2006-12-10 13:05 鍙戣〃璇勮
]]>
久久国产高清字幕中文| 精品综合久久久久久88小说| 久久精品国产99国产精品亚洲| 欧美与黑人午夜性猛交久久久| 久久天天躁狠狠躁夜夜avapp| 久久精品青青草原伊人| 久久超碰97人人做人人爱| 97久久精品人人澡人人爽| 内射无码专区久久亚洲| 亚洲欧美日韩中文久久| 免费观看久久精彩视频| 人妻无码久久精品| 99精品久久精品| 久久亚洲精品无码观看不卡| 久久久久久伊人高潮影院| 久久精品草草草| 一级女性全黄久久生活片免费 | 亚洲中文字幕久久精品无码喷水| 久久AV高清无码| 国产69精品久久久久观看软件 | 午夜福利91久久福利| 久久精品国产AV一区二区三区| 狠狠色丁香久久综合婷婷| 久久久国产99久久国产一| 国内精品久久久久久久97牛牛| 久久只有这精品99| 国产一区二区精品久久凹凸| 久久久久亚洲AV成人片| 久久中文字幕精品| 无夜精品久久久久久| 久久久久99精品成人片三人毛片| 久久久精品2019免费观看| 精品一二三区久久aaa片| 四虎亚洲国产成人久久精品| 99久久亚洲综合精品成人| 国产精品久久久久9999| 亚洲中文久久精品无码| 久久人人爽人人爽人人片AV高清 | 久久精品国产亚洲综合色| 久久久久久午夜成人影院| 久久香蕉超碰97国产精品|