mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
26a72e347d
2100-2199
30 lines
511 B
C++
30 lines
511 B
C++
#include<iostream>
|
|
#include<cstdio>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
__int64 num;
|
|
int k = 0;
|
|
int sum;
|
|
int yu;
|
|
while(scanf("%I64d", &num) != EOF)
|
|
{
|
|
if(k)
|
|
cout << endl;
|
|
else
|
|
k = 1;
|
|
sum = 0;
|
|
while(num)
|
|
{
|
|
yu = num % 10;
|
|
if(!(yu % 2))
|
|
{
|
|
sum += yu;
|
|
}
|
|
num /= 10;
|
|
}
|
|
cout << sum << endl;
|
|
}
|
|
return 0;
|
|
}
|