Two digits
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
How many -digit numbers can be created using only digits and , where no three identical digits stand side by side?
Input
One number .
Output
The amount of -digit numbers.
Examples
Input #1
Answer #1
Submissions 22K
Acceptance rate 48%