- #include<iostream>
- using namespace std;
- int main(){
- int n,x.cnt = 0;
- cin>>n>>s;
- for(int i=100: i<=n: i++){
- ___①___
- int g,s,b;
- g=a%10;
- ___②___
- ___③___
- if(g == x){
- cnt++; }
- if(s == x){
- cnt++; }
- if(b == x){
- cnt++; }
- }
- cout<<cnt<<endl;
- return 0;}
A. int a = i; s=a/10%10; b =a/100;
B. int g = i; s=g%10; b=g%100;
C. int cnt = i; s = cnt%10; b = cnt/100;
D. int a = n; s=a/10; b =a%100;