Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125976 | 陈华仁星 | 不吉利的数 | C++ | Accepted | 17 MS | 268 KB | 318 | 2025-07-15 17:00:46 |
#include <iostream> using namespace std; char a[1000000],top[2]="4",num[3]="62"; int main() { int n,m,cnt=0,x; scanf("%d%d",&n,&m); for(int i=n;i<=m;i++) { int x=i; while(x!=0) { if(x%10==4||x%100==62) { cnt++; break; } x/=10; } } cout << m-n+1-cnt; return 0; }