提交时间:2025-10-26 18:02:43

运行 ID: 71651

#include<bits/stdc++.h> using namespace std; int main(){ int L,R,i,i0,cnt=0; cin>>L>>R; for(i=L;i<=R;i++){ i0=i; while(i!=0){ if(i%10==2){ cnt++;; } i/=10; } i=i0; } return 0; }