Docoding OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
4360: 【入门】小丽找数?
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:55
Solved:24
Submit
Submit Record
Statistics
ShowOff!
Description
小丽同学想在1~n中找出这样的数,这个数的各个位的和不能被2整除也不能被5整除,比如3、12、25、30、100。这些数都满足各个位的和不能被2和5整除。 请你编程找出1~n中这些数有多少个?
Input
一个整数n(n<=9999)
Output
1~n中满足条件的数的个数
Sample Input
Copy
50
Sample Output
Copy
20
Source/Category
循环
求和计数
Submit
Submit Record
Statistics
ShowOff!