1014 - Binary String
Time Limit : 1 Second
Memory Limit : 128 MB
- In binary world, everything is formed by several 0s and 1s. We define bad binary strings as which contains 110 and 101. Now, we hope you can find all the good binray strings.
Given an integer N, it is clear that there will be 2N different strings. Your task is to find how many binary strings are good.
- Only one integer N(1 <= N <= 109), which indicates the length of the strings.
- For each test case, output the number of good binary strings of the given length.
Ovbiously, the number will be too large, so you just output the number moded by 9973.
- sample input
- sample output