AC

LyingOnTheSofa  •  3个月前


include<bits/stdc++.h>

using namespace std; int n=0,m,b,c,d,e; string a;

int main(void){

cin>>a;
for(int i=0;i<a.length();i++){
	switch(a[i]){
		case '4':
		case '6':
		case '0':
		case '9':
			n++;
			break;
		case '8':
			n+=2;
			
	}
}
cout<<n;
return 0;

}


评论:

请先登录,才能进行评论