Run ID:64242
提交时间:2024-01-21 10:25:53
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; int s=0; for(int i=n;i<=m;i++){ int t=i; while(t>0){ int g=t%10; int sg=t%100; if(g==4||sg==62){ s++; break; } t=t/10; } } cout<<m-n+1-s; return 0; }