Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148814 Kevin 不吉利的数 C++ Accepted 13 MS 272 KB 325 2026-03-01 15:37:04

Tests(10/10):


Code:

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