#include<stdio.h>
int main()
{
int k=1;
int n;
int sum;
int m;
while(scanf("%d",&n)!=EOF)
{
sum=0;
while(n!=0)
{
m=n%10;
n=n/10;
if(m%2==0)
sum=sum+m;
}
if(k==1)
printf("%d\n",sum);
if(k!=1)
printf("\n%d\n",sum);
k++;
}
return 0;
}
hdu 2113 Secret Number
最新推荐文章于 2019-03-18 20:48:45 发布