锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品99久久香蕉国产色戒,精品国产乱码久久久久软件,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鎳掑緱鍔ㄨ剳瀛愪簡(jiǎn)
//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
姹椾簡(jiǎn)錛岀湅鏉ョ‘瀹炶鍏嬫湇鎶婃瘡閬撻褰撴ā鎷熼鍋氱殑緙虹偣錛屽鎯蟲(chóng)兂...
//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鏄嚜鐒?dòng)灱屽洜湄?fù)涓浣嶇殑鏃跺?鏄笉綆楃殑銆?br>f[1]=K*(K-1)錛屽彲浠ヨ繖鏍鋒兂錛屽綋f[1]鍙朘榪涘埗涓煇涓櫎0浠ュ鐨勫肩殑鏃跺欙紝鍚庨潰鐨勯偅浣嶆暟瀛楄嚜宸變笉鏂彉鍖?榪欎釜鏃跺欏悗闈㈢殑閭d綅鏁版槸鍙互鍙?鐨?br>浠庣3浣嶅紑濮嬶紝絎琋浣嶇殑鏃跺欏氨鐩稿綋浜庣N浣嶉殢渚垮彉錛堥櫎0浠ュ錛夛紝鍏堣冭檻鍚嶯-1浣嶏紙絎琋-1浣嶄笉鑳戒負(fù)0錛夈傜劧鍚庤繕鏈塏-1浣嶄負(fù)0錛屽悗N-2浣嶉殢渚垮彉銆傚姞璧鋒潵涔樹(shù)互K-1錛屽嵆絎琋浣嶉殢渚垮彉鐨勫嵆鍙?

]]>
思思久久99热只有频精品66|
成人免费网站久久久|
久久久久免费视频|
久久精品成人欧美大片|
国产精品久久久久蜜芽|
久久久久亚洲av无码专区喷水|
国产成人精品久久一区二区三区|
成人a毛片久久免费播放|
亚洲欧美一级久久精品|
99久久精品午夜一区二区|
久久久久国产|
久久综合香蕉国产蜜臀AV|
久久精品国产精品亚洲下载|
国色天香久久久久久久小说|
99热精品久久只有精品|
中文字幕人妻色偷偷久久|
亚洲午夜精品久久久久久人妖|
久久无码高潮喷水|
久久国产高清一区二区三区|
亚洲精品无码久久久久久|
国产高潮国产高潮久久久91|
久久久久久久亚洲Av无码|
亚洲国产日韩欧美综合久久|
国产精品久久永久免费|
久久久久久伊人高潮影院|
久久国产一片免费观看|
一级做a爰片久久毛片人呢|
久久婷婷成人综合色综合|
国产69精品久久久久观看软件
|
99久久国产综合精品五月天喷水
|
国产精品久久久天天影视|
亚洲国产精品无码久久SM|
亚洲一级Av无码毛片久久精品|
欧美精品一区二区精品久久|
久久精品欧美日韩精品|
色偷偷88888欧美精品久久久|
人妻丰满?V无码久久不卡|
久久精品国产欧美日韩|
久久国产V一级毛多内射|
久久精品国产精品亚洲人人|
久久99精品免费一区二区|