• <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年2月>
            303112345
            6789101112
            13141516171819
            20212223242526
            272812345
            6789101112

            統計

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

            常用鏈接

            留言簿(1)

            隨筆分類

            隨筆檔案

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            母函數~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)  編輯 收藏 引用 所屬分類: 母函數

            欧美日韩精品久久免费| 国产精品18久久久久久vr | 精品无码久久久久久国产| 精品久久人妻av中文字幕| 四虎国产永久免费久久| 久久婷婷五月综合97色直播| 久久精品国产色蜜蜜麻豆| 91精品国产高清91久久久久久| 狠狠人妻久久久久久综合蜜桃| 久久中文字幕人妻丝袜| 18岁日韩内射颜射午夜久久成人| 久久受www免费人成_看片中文| 国产精品久久影院| 777午夜精品久久av蜜臀| 免费观看成人久久网免费观看| 久久人人爽人人爽人人片AV不| 99re这里只有精品热久久| 香蕉久久久久久狠狠色| 久久www免费人成精品香蕉| 久久精品国产亚洲AV麻豆网站 | 久久久久亚洲av无码专区喷水| 久久AⅤ人妻少妇嫩草影院| 久久精品国产半推半就| 久久青青草原精品国产| 亚洲精品乱码久久久久久按摩| 午夜精品久久久久久影视777| 久久93精品国产91久久综合| 久久综合欧美成人| 久久91精品久久91综合| 国内精品久久久久影院优| 久久久久久午夜成人影院| 三上悠亚久久精品| 久久精品一本到99热免费| 狠狠精品久久久无码中文字幕| 亚洲国产成人久久综合区| 少妇被又大又粗又爽毛片久久黑人| 久久精品亚洲乱码伦伦中文| 国产AⅤ精品一区二区三区久久| 久久最新精品国产| 久久人人爽人人精品视频| 香蕉久久影院|