409707: GYM103688 I Equal Sum Arrays
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
I. Equal Sum Arraystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Define function $$$f(n)$$$ to be the number of different arrays $$$a$$$ of positive integers, such that the sum of the elements in array $$$a$$$ equals to $$$n$$$.
For example, $$$f(3)=4$$$, and the four different arrays are $$$\{1,1,1\},\{1,2\},\{2,1\},\{3\}$$$.
You are given a positive integer $$$k$$$. Please find the answer of $$$f(k)$$$.
InputThere is only one line in the input containing a single integer $$$k\ (1\leq k\leq 20)$$$.
OutputPrint a single integer: the answer of $$$f(k)$$$.
ExamplesInput3Output
4Input
4Output
8