1 条题解
-
0
C++ :
#include <bits/stdc++.h> using namespace std; int main() { int m,n,ans = 0; cin>>m>>n; for(int i = m;i <= n;i++){ int t = i,x; while(t != 0){ x = t % 10; if(x == 0 || x == 4 || x == 6 || x == 9){ ans++; }else if(x == 8){ ans += 2; } t /= 10; } } cout<<ans; return 0; }
- 1
信息
- ID
- 998
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 10
- 标签
- 递交数
- 3
- 已通过
- 3
- 上传者