提交时间:2024-05-14 21:56:19

运行 ID: 47303

#include<bits/stdc++.h> using namespace std; inline bool pd(int x){ while(x!=0){ if(x%10%2==0) return 0; x/=10; } return 1; } int main() { int n,m,cnt=0; cin>>n>>m; for(int i=n;i<=m;i++) if(pd(i)) cnt++; cout<<cnt; return 0; }