随笔分类 -  大数相加

摘要:题意 从1开始 1变为01 0变为10 计数变换多少次后连续0序列的个数。题解 找规律(菲波数)+大数相加a[i]=a[i-1]+a[i-2]*2; 1 #include 2 #include 3 #include 4 #define N 1001 5 using namespace std; 6... 阅读全文
posted @ 2015-02-02 11:21 江豚 阅读(219) 评论(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 江豚 阅读(165) 评论(0) 推荐(0)