One is More
Statement
Goal
With only numbers 1, get the highest score using only the operations +, *Example: with two 1 you can reach 2.
Input
Line 1: N the number of number 1 you have
Output
Line 1: the highest value possible to reach
Constraints
1 ≤ N ≤ 60
Example
Input
1
Output
1
Game modes
Fastest, Shortest
Test cases
Test 1 Test
Input
1
Output
1
Validator 1 Validator
Input
2
Output
2
Test 2 Test
Input
5
Output
6
Validator 2 Validator
Input
6
Output
9
Test 3 Test
Input
10
Output
36
Validator 3 Validator
Input
13
Output
108
Test 4 Test
Input
16
Output
324
Validator 4 Validator
Input
22
Output
2916
Test 5 Test
Input
45
Output
14348907
Validator 5 Validator
Input
53
Output
258280326
Solution language
Solution
Stub generator input