• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Yiner的ACM

            成長的痕跡
            <2011年5月>
            24252627282930
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234

            統(tǒng)計

            • 隨筆 - 29
            • 文章 - 0
            • 評論 - 2
            • 引用 - 0

            常用鏈接

            留言簿(1)

            隨筆分類

            隨筆檔案

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            母函數(shù)~Ignatius and the Princess III

            Ignatius and the Princess III

            Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)
            Total Submission(s) : 100   Accepted Submission(s) : 83

            Font: Times New Roman | Verdana | Georgia

            Font Size:

            Problem Description

            "Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says.

            "The second problem is, given an positive integer N, we define an equation like this:
              N=a[1]+a[2]+a[3]+...+a[m];
              a[i]>0,1<=m<=N;
            My question is how many different equations you can find for a given N.
            For example, assume N is 4, we can find:
              4 = 4;
              4 = 3 + 1;
              4 = 2 + 2;
              4 = 2 + 1 + 1;
              4 = 1 + 1 + 1 + 1;
            so the result is 5 when N is 4. Note that "4 = 3 + 1" and "4 = 1 + 3" is the same in this problem. Now, you do it!"

            Input

            The input contains several test cases. Each test case contains a positive integer N(1<=N<=120) which is mentioned above. The input is terminated by the end of file.

            Output

            For each test case, you have to output a line contains an integer P which indicate the different equations you have found.

            Sample Input

            4
            10
            20
            

            Sample Output

            5
            42
            627
            

            Author

            Ignatius.L

            posted on 2011-02-15 18:28 Yiner 閱讀(459) 評論(0)  編輯 收藏 引用 所屬分類: 母函數(shù)

            欧美日韩精品久久久免费观看| 精品久久久久中文字幕一区| 伊人精品久久久久7777| 亚洲级αV无码毛片久久精品| 97r久久精品国产99国产精| 国内精品欧美久久精品| 国产精品久久久久国产A级| 偷窥少妇久久久久久久久| 久久精品视频网| 波多野结衣中文字幕久久| 亚洲伊人久久成综合人影院| 99久久精品费精品国产| 久久精品成人免费网站| 久久久久久亚洲精品成人| 无码八A片人妻少妇久久| 久久综合亚洲色HEZYO国产| 国产亚洲美女精品久久久| 91久久精品视频| 国产成人精品久久免费动漫| 久久精品国产亚洲av水果派| 色偷偷偷久久伊人大杳蕉| 久久亚洲AV成人无码软件| 久久伊人精品一区二区三区| 77777亚洲午夜久久多喷| 久久精品aⅴ无码中文字字幕不卡 久久精品成人欧美大片 | 人妻精品久久久久中文字幕一冢本 | 一本一道久久精品综合| 久久人人爽爽爽人久久久| 国产一区二区精品久久岳| 久久av无码专区亚洲av桃花岛| 精品多毛少妇人妻AV免费久久| 欧美亚洲国产精品久久久久| 久久久久免费视频| 久久精品国产精品亚洲下载| 久久99国产乱子伦精品免费| 无码人妻精品一区二区三区久久| 精品久久久久久久久久中文字幕| 亚洲国产精品无码成人片久久| 青青青青久久精品国产h| 午夜精品久久久久| 日本免费久久久久久久网站|