锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国内高清久久久久久,国内精品伊人久久久久影院对白,漂亮人妻被黑人久久精品http://www.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://www.shnenglu.com/dqchen/archive/2007/04/16/22030.htmlDainDainMon, 16 Apr 2007 09:29:00 GMThttp://www.shnenglu.com/dqchen/archive/2007/04/16/22030.htmlhttp://www.shnenglu.com/dqchen/comments/22030.htmlhttp://www.shnenglu.com/dqchen/archive/2007/04/16/22030.html#Feedback5http://www.shnenglu.com/dqchen/comments/commentRss/22030.htmlhttp://www.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://www.shnenglu.com/dqchen/archive/2007/02/07/18500.htmlDainDainWed, 07 Feb 2007 02:52:00 GMThttp://www.shnenglu.com/dqchen/archive/2007/02/07/18500.htmlhttp://www.shnenglu.com/dqchen/comments/18500.htmlhttp://www.shnenglu.com/dqchen/archive/2007/02/07/18500.html#Feedback6http://www.shnenglu.com/dqchen/comments/commentRss/18500.htmlhttp://www.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://www.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://www.shnenglu.com/dqchen/archive/2006/12/25/16812.html</guid><wfw:comment>http://www.shnenglu.com/dqchen/comments/16812.html</wfw:comment><comments>http://www.shnenglu.com/dqchen/archive/2006/12/25/16812.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.shnenglu.com/dqchen/comments/commentRss/16812.html</wfw:commentRss><trackback:ping>http://www.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://www.shnenglu.com/dqchen/aggbug/16812.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/dqchen/" target="_blank">Dain</a> 2006-12-25 10:17 <a href="http://www.shnenglu.com/dqchen/archive/2006/12/25/16812.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>綆楁硶姹傝В(榪樻病鏈変漢鍋氬嚭鏉ワ紝鍞?http://www.shnenglu.com/dqchen/archive/2006/12/21/16679.htmlDainDainThu, 21 Dec 2006 02:58:00 GMThttp://www.shnenglu.com/dqchen/archive/2006/12/21/16679.htmlhttp://www.shnenglu.com/dqchen/comments/16679.htmlhttp://www.shnenglu.com/dqchen/archive/2006/12/21/16679.html#Feedback6http://www.shnenglu.com/dqchen/comments/commentRss/16679.htmlhttp://www.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://www.shnenglu.com/dqchen/archive/2006/12/10/16215.htmlDainDainSun, 10 Dec 2006 05:05:00 GMThttp://www.shnenglu.com/dqchen/archive/2006/12/10/16215.htmlhttp://www.shnenglu.com/dqchen/comments/16215.htmlhttp://www.shnenglu.com/dqchen/archive/2006/12/10/16215.html#Feedback7http://www.shnenglu.com/dqchen/comments/commentRss/16215.htmlhttp://www.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 鍙戣〃璇勮
]]>
国内精品人妻无码久久久影院导航| 99久久99久久久精品齐齐| 一本伊大人香蕉久久网手机| 久久中文娱乐网| 奇米影视7777久久精品人人爽| 久久精品亚洲精品国产色婷| 久久精品男人影院| 国产香蕉久久精品综合网| 97热久久免费频精品99| 无码任你躁久久久久久| 色欲久久久天天天综合网 | 91精品国产91久久久久福利| 99久久精品免费看国产一区二区三区| 久久一区二区免费播放| 91久久精一区二区三区大全| 2021国内精品久久久久久影院| 久久精品国产99国产电影网| 国产69精品久久久久观看软件| 成人精品一区二区久久久| 亚洲午夜久久久久久久久久 | 国内精品九九久久精品 | 激情五月综合综合久久69| 无码超乳爆乳中文字幕久久| 热RE99久久精品国产66热| 激情伊人五月天久久综合| 久久国产欧美日韩精品| 婷婷久久综合九色综合绿巨人 | 久久天天躁狠狠躁夜夜2020一| 四虎国产永久免费久久| 精品久久一区二区三区| 久久久久99精品成人片直播| 精品熟女少妇AV免费久久 | 狠狠色婷婷综合天天久久丁香| 色偷偷91久久综合噜噜噜噜 | 99精品久久精品一区二区| 中文字幕无码av激情不卡久久| 久久精品国产精品亚洲艾草网美妙| 久久精品一区二区| 伊人久久免费视频| 国内精品久久久久国产盗摄| 曰曰摸天天摸人人看久久久|