| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64893 | 殷震博 | 不吉利的数 | C++ | Wrong Answer | 2 MS | 276 KB | 275 | 2024-01-22 16:44:31 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,s; cin>>n>>m; for(int i=n;i<=m;i++){ int t=i; while(t!=0){ int g=t%10; int sg=t%100; if(g==4 || sg==62){ s++; break; } t/=10; } } cout<<m-n+1-s; return 0; }
------Input------
4 500
------Answer-----
317
------Your output-----
-4194747