Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125986 | 田子熙 | 不吉利的数 | C++ | Accepted | 14 MS | 272 KB | 278 | 2025-07-15 17:02:59 |
#include<iostream> using namespace std; int main(){ int n,m; cin>>n>>m; int sum=m-n+1; int k=0; cin>>n; for(int i=n;i<=m;i++){ int x=i; while(x>0){ if(x%10==4 || x%100==62){ k++; break; } x=x/10; } } cout<<sum-k; return 0; }