锘??xml version="1.0" encoding="utf-8" standalone="yes"?>麻豆免费精品视频,欧美黄色一区,亚洲理论在线观看http://m.shnenglu.com/7words/category/9435.htmlC++,ACM,College lifezh-cnSun, 01 Feb 2009 21:36:44 GMTSun, 01 Feb 2009 21:36:44 GMT60ural 1022 鎷撴墤鎺掑簭http://m.shnenglu.com/7words/archive/2009/01/31/72756.html7words7wordsSat, 31 Jan 2009 14:52:00 GMThttp://m.shnenglu.com/7words/archive/2009/01/31/72756.htmlhttp://m.shnenglu.com/7words/comments/72756.htmlhttp://m.shnenglu.com/7words/archive/2009/01/31/72756.html#Feedback0http://m.shnenglu.com/7words/comments/commentRss/72756.htmlhttp://m.shnenglu.com/7words/services/trackbacks/72756.html闃呰鍏ㄦ枃

7words 2009-01-31 22:52 鍙戣〃璇勮
]]>
ural 1068http://m.shnenglu.com/7words/archive/2009/01/30/72690.html7words7wordsThu, 29 Jan 2009 16:28:00 GMThttp://m.shnenglu.com/7words/archive/2009/01/30/72690.htmlhttp://m.shnenglu.com/7words/comments/72690.htmlhttp://m.shnenglu.com/7words/archive/2009/01/30/72690.html#Feedback0http://m.shnenglu.com/7words/comments/commentRss/72690.htmlhttp://m.shnenglu.com/7words/services/trackbacks/72690.html鎳掑緱鍔ㄨ剳瀛愪簡
//edited by Eddy
//from BUAA SoftWare College
//any question:oeddyo@gmail.com

#include 
<iostream>
using namespace std;

int main()
{
    
int N;
    cin
>>N;
    
long long sum=0;

    
if(N>0)
    
{
        
for(int i=1;i<=N;i++)
        
{
            sum
+=i;
        }

    }

    
if(N==0)
    
{
        sum
=1;
    }

    
if(N<0)
    
{
        
for(int i=N;i<=1;i++)
        
{
            sum
+=i;
        }

    }


    cout
<<sum;


return 0;
}



7words 2009-01-30 00:28 鍙戣〃璇勮
]]>
ural 1009http://m.shnenglu.com/7words/archive/2009/01/30/72689.html7words7wordsThu, 29 Jan 2009 16:27:00 GMThttp://m.shnenglu.com/7words/archive/2009/01/30/72689.htmlhttp://m.shnenglu.com/7words/comments/72689.htmlhttp://m.shnenglu.com/7words/archive/2009/01/30/72689.html#Feedback0http://m.shnenglu.com/7words/comments/commentRss/72689.htmlhttp://m.shnenglu.com/7words/services/trackbacks/72689.html
姹椾簡錛岀湅鏉ョ‘瀹炶鍏嬫湇鎶婃瘡閬撻褰撴ā鎷熼鍋氱殑緙虹偣錛屽鎯蟲兂...

//edited by Eddy
//from BUAA SoftWare College
//any question:oeddyo@gmail.com

#include 
<iostream>
#include 
<cmath>
using namespace std;


int main()
{
    
int N,K;
    cin
>>N>>K;
    
int f[30];
    f[
0]=K-1;
    f[
1]=K*(K-1);
    
int i;
    
for(i=2;i<N;i++)
    
{
        f[i]
=(K-1)*(f[i-1]+f[i-2]);
    }

    cout
<<f[N-1];

return 0;
}


綺懼崕灝卞湪f[i]=(K-1)*(f[i-1]+f[i-2])榪欒
f[0]=K-1鏄嚜鐒訛紝鍥犱負(fù)涓浣嶇殑鏃跺?鏄笉綆楃殑銆?br>f[1]=K*(K-1)錛屽彲浠ヨ繖鏍鋒兂錛屽綋f[1]鍙朘榪涘埗涓煇涓櫎0浠ュ鐨勫肩殑鏃跺欙紝鍚庨潰鐨勯偅浣嶆暟瀛楄嚜宸變笉鏂彉鍖?榪欎釜鏃跺欏悗闈㈢殑閭d綅鏁版槸鍙互鍙?鐨?br>浠庣3浣嶅紑濮嬶紝絎琋浣嶇殑鏃跺欏氨鐩稿綋浜庣N浣嶉殢渚垮彉錛堥櫎0浠ュ錛夛紝鍏堣冭檻鍚嶯-1浣嶏紙絎琋-1浣嶄笉鑳戒負(fù)0錛夈傜劧鍚庤繕鏈塏-1浣嶄負(fù)0錛屽悗N-2浣嶉殢渚垮彉銆傚姞璧鋒潵涔樹互K-1錛屽嵆絎琋浣嶉殢渚垮彉鐨勫嵆鍙?

7words 2009-01-30 00:27 鍙戣〃璇勮
]]>
亚洲综合精品香蕉久久网97| 欧美大香线蕉线伊人久久| 久久不见久久见免费影院www日本| 久久99亚洲综合精品首页| 精品国产日韩久久亚洲| 久久97精品久久久久久久不卡| 日本欧美国产精品第一页久久| 99久久人妻无码精品系列 | 亚洲综合久久久| 精品久久久久久久久午夜福利| 人妻中文久久久久| 久久国产精品成人免费| 亚洲精品乱码久久久久久蜜桃图片| 国产999精品久久久久久| 性欧美大战久久久久久久久| 久久综合狠狠综合久久97色| AV色综合久久天堂AV色综合在 | 久久国产香蕉视频| 久久国产欧美日韩精品| 久久精品国产免费观看| 久久精品国产亚洲av瑜伽| 久久精品成人国产午夜| 欧美黑人激情性久久| 精品久久久一二三区| 久久这里都是精品| 热久久国产欧美一区二区精品| 99久久久久| 久久人人爽人人爽人人片AV麻豆| 88久久精品无码一区二区毛片| 久久免费高清视频| 日韩精品国产自在久久现线拍| 99国产欧美久久久精品蜜芽| 精品少妇人妻av无码久久| 久久久久亚洲Av无码专| 999久久久无码国产精品| 精品国产VA久久久久久久冰| 国产美女久久精品香蕉69| 久久精品一区二区国产| 国产亚洲成人久久| 久久强奷乱码老熟女| 久久人人添人人爽添人人片牛牛|