锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久综合亚洲鲁鲁五月天,国产精品一区二区久久国产,亚洲人成无码网站久久99热国产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 GMT60- ural 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闃呰鍏ㄦ枃

]]> - 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;
}


]]> - 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錛屽嵆絎琋浣嶉殢渚垮彉鐨勫嵆鍙?

]]>
99久久精品免费看国产免费|
亚洲国产综合久久天堂|
99麻豆久久久国产精品免费|
久久精品国产69国产精品亚洲|
99久久人妻无码精品系列蜜桃
|
精品久久久无码中文字幕|
中文精品久久久久国产网址|
国产欧美久久久精品影院|
日韩AV无码久久一区二区|
国产精品免费久久久久久久久|
国产一区二区久久久|
亚洲精品高清国产一久久|
久久久久久久免费视频|
亚洲天堂久久精品|
亚洲中文字幕无码久久2017|
国产精品免费久久久久影院|
亚洲伊人久久精品影院|
久久亚洲2019中文字幕|
青青草原1769久久免费播放|
人妻中文久久久久|
久久精品国产亚洲网站|
无码超乳爆乳中文字幕久久|
久久精品中文字幕有码|
久久精品国产精品国产精品污|
无码精品久久久久久人妻中字|
久久国产成人|
久久99亚洲综合精品首页|
国内精品久久久久久野外|
久久男人Av资源网站无码软件|
一本综合久久国产二区|
日韩亚洲国产综合久久久|
国产福利电影一区二区三区,免费久久久久久久精
|
久久中文字幕无码专区|
93精91精品国产综合久久香蕉|
久久久久久午夜成人影院
|
国产福利电影一区二区三区久久老子无码午夜伦不
|
久久久久无码精品国产|
亚洲AV无码一区东京热久久|
久久精品国产亚洲AV不卡|
四虎国产精品成人免费久久|
四虎影视久久久免费|