Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138780 王丞杰 不吉利的数 C++ Accepted 14 MS 272 KB 266 2025-11-29 17:40:43

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m,k,sum=0; scanf("%d%d",&n,&m); for(int i=n;i<=m;i++){ k = i; while(k>0){ if(k%10==4 || k%100==62){ sum++; break; } k/=10; } } cout<<m-n+1-sum; return 0; }