Files
python/TangDou/LanQiaoBei/LanQiao14STEMA202208/2.cpp

17 lines
286 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}