April Fools Contest 2017


A. Numbers Joke
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
3
Output
27
----------------------------------------------------------------------------------------------------
B. Kids' Riddle
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
11
Output
2
Input
14
Output
0
Input
61441
Output
2
Input
571576
Output
10
Input
2128506
Output
3
----------------------------------------------------------------------------------------------------
C. INTERCALC
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
4
2 5 3 1
Output
4
----------------------------------------------------------------------------------------------------
D. Touchy-Feely Palindromes
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
373
Output
Yes
Input
121
Output
No
Input
436
Output
Yes
----------------------------------------------------------------------------------------------------
E. Twisted Circuit
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
0
1
1
0
Output
0
----------------------------------------------------------------------------------------------------
F. Crunching Numbers Just for You
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
3 3 1 2
Output
1 2 3 
----------------------------------------------------------------------------------------------------
G. BF Calculator
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
2+3
Output
++>
+++>
<[<+>-]<
++++++++++++++++++++++++++++++++++++++++++++++++.
Input
9-7
Output
+++++++++>
+++++++>
<[<->-]<
++++++++++++++++++++++++++++++++++++++++++++++++.
----------------------------------------------------------------------------------------------------
