시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 | 512 MB | 47 | 37 | 32 | 88.889% |
Palapa Number of N (4 <= N <= 100) is an N digits decimal number where the sum of the first two digits is even, or the last two digits is a prime number, or both. No leading zero allowed.
For example,
Given N, output the number of Palapa Number of N, modulo by 9973.
The first line of input contains an integer T, the number of test cases follow.
Each test case contains an integer N (4 <= N <= 100).
For each test case, output the number of Palapa Number of N exists modulo by 9973.
2 4 5
5625 6385
ICPC > Regionals > Asia Pacific > Indonesia > Indonesia National Contest > INC 2009 E번