#D. 【基础】位数问题

    Type: Default 1000ms 16MiB

【基础】位数问题

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

在所有的N位数中,有多少个数中有偶数个数字3?由于结果可能很大,你只需要输出这个答案对12345取余的值。
比如:在所有的2位数字,包含0个3的数有72个,包含2个3的数有1个,共73个。(请注意:1位数指1~9这9个数,不包含数字0)

输入格式

一个整数N(1<=N<=1000)

输出格式

N位数中含有偶数个数组3的个数

样例

2
73

第三届西南石油大学程序设计竞赛热身赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
4
Start at
2022-5-20 20:00
End at
2022-5-20 21:00
Duration
1 hour(s)
Host
Partic.
58