Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68934 万隽宇 不吉利的数 C++ Accepted 16 MS 268 KB 341 2024-03-28 18:46:00

Tests(10/10):


Code:

# include<iostream> using namespace std; int main(){ int a,b,c=0,d=0; cin>>a>>b; d=b-(a-1); for(int i=a;i<=b;i++){ c=i; while(c!=0){ if(c%10==4||c%100==62){ d--; break; } c=c/10; } } cout<<d; return 0; }