Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
125978 王金檐 不吉利的数 C++ Time Limit Exceeded 1000 MS 264 KB 247 2025-07-15 17:01:09

Tests(0/10):


Code:

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