D. 庄园追逐战
庄园追逐战
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.
题目描述
庄园里求生者与监管者展开追逐战,场上有连续编号 1~n 的求生者点位。 监管者追击规则: 1.点位编号为偶数,或者数位总和大于 5 的点位会被追击 2.同时编号不能是 7 的倍数,这类点位监管者直接放弃不计入 求最终被追击的点位总数量。
格式
输入格式
单个整数n(1≤n≤2000)
输出格式
输出符合条件的点位个数
样例
10
6
666
- Status
- Done
- Rule
- XCPC
- Problem
- 88
- Start at
- 2026-6-14 17:30
- End at
- 1970-1-1 8:00
- Duration
- -494841.5 hour(s)
- Host
- Partic.
- 0