Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148815 黄睿杰 不吉利的数 C++ Accepted 13 MS 272 KB 250 2026-03-01 15:54:18

Tests(10/10):


Code:

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