Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64890 许铭锐 不吉利的数 C++ Accepted 15 MS 272 KB 282 2024-01-22 16:43:40

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int n,m,sum=0; int main(){ cin>>n>>m; 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){ sum++; break; } t/=10; } } cout<<m-n+1-sum; return 0; }