You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
int cnt;
|
|
/*
|
|
110
|
|
10
|
|
*/
|
|
int main() {
|
|
int n;
|
|
cin >> n;
|
|
for (int i = 100; i <= n; i++)
|
|
if (i % 10 != 3 && i % 100 / 10 != 5 && i % 1000 / 100 != 7)
|
|
cnt++;
|
|
printf("%d\n", cnt);
|
|
return 0;
|
|
} |