Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64898 周梓易 不吉利的数 C++ Accepted 16 MS 272 KB 309 2024-01-22 16:46:35

Tests(10/10):


Code:

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