摘要: 自己尝试推 但是没有推出来 太不机智了!后来提交的时候还忘记加‘!’ wa了好几次也没发现=。=///转首先,原式ab+a+b = ab+a+b+1-1 =(a+1)*(b+1)-1令a=(a1+1)*(a2+1)-1;b=(b1+1)*(b2+1)-1;代入原式中可得:n=(a1+1)*(b1+1... 阅读全文
posted @ 2015-02-02 09:33 江豚 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ///题解 : 找规律,大菲波数Problem DescriptionYou will be given a string which only contains ‘1’; You can merge two adjacent ‘1’ to be ‘2’, or leave the ‘1’ ther... 阅读全文
posted @ 2015-02-01 21:53 江豚 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 题意 :十进制转换为十六进制学姐的代码------实在太机智和万万没想到了#include#include#includechar a[100000];void dfs(int x)//递归{if(x<=0)return;x--;dfs(x/26);printf("%c",x%26+'A');}in... 阅读全文
posted @ 2015-01-30 11:22 江豚 阅读(102) 评论(0) 推荐(0) 编辑