Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7016 | 黄宜洋 | 不吉利的数 | C++ | Wrong Answer | 16 MS | 264 KB | 518 | 2025-03-29 15:53:36 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,m,a=0; int c=0; cin>>n>>m; for(int i=n;i<=m;i++){ a=i; while(a!=0){ if(a%10==4 || a%100==62){ c++; } a/=10; } } cout<<m-c+n; return 0; }
------Input------
1 999999
------Answer-----
499120
------Your output-----
350000