Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7303 - Тэгш цифрүүдийн нийлбэр

Өгөгдсөн тоон дахь тэгш цифрүүдийн нийлбэрийг ол.

Input

Бүхэл тоо өгөгдөнө.

Output

Тэгш цифрүүдийн нийлбэр.

Example

Input:
34567

Output:
10

Нэмсэн:Bataa
Огноо:2013-01-09
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2022-11-16 05:56:52
#include<bits/stdc++.h> //698069
using namespace std;
int main(){
long n,s,a;
s=0;
cin>>n;
while (n>0){
a=n%10;
if(n%2==0) s=s+a;
n=n/10;
}
cout<<s<<endl;
}
2022-11-16 05:56:30
bti huul


































saihanaa helj bn





























ygd odo hurtel






















unshad bga




















mal










ve
2022-11-11 03:27:56
#include<bits/stdc++.h>
main(){
int a,b=0,c;
scanf("%d",&a);
while(a>0){
c=a%10;
a=a/10;
if(c%2==0) b=b+c;
}printf("%d",b);
}
2022-11-11 03:27:19
#include<bits/stdc++.h>
main(){
int a,b=0,c;
scanf("%d",&a);
while(a>0){
c=a%10;
a=a/10;
if(c%2==0) b=b+c;
}printf("%d",b);
}
2022-11-11 03:21:12
https://www.youtube.com/watch?v=dQw4w9WgXcQ
2022-06-20 13:30:09
#include <iostream>
using namespace std;

int main() {

// your code here
int a, b, c, d, e, f, n=0;
cin>>a;

while(a > 0){
if(a % 2 == 0)
n = n + a % 10;
a = a / 10;
}

cout<<n;
return 0;
}khandmaa to tusa
2022-05-20 07:33:24
tooj huulahgui sdanuud min
2022-04-26 07:57:58
#include <bits/stdc++.h>
using namespace std;
int main (){
int n,s,m;
cin >>n;
s=0;
while (n>0){m=n%10;n=n/10;if(m%2==0)s=s+m;}
cout <<s;
return 0;
}-orgil 8-1
2022-04-05 08:47:16



za huulooonclude <iostream>
using name space std;









































gol ni oilgoj huulyoo
































































































za huulooovnclude <iostream>
using name space std;
int main ()
{ //doosho guulge














































ich chi





















































































































































































gol ni oilgoj huulyoo
































































































za huulooonclude <iostream>
using name space std;
int main ()
{ //doosho guulge














































ich chi





















































































































































































gol ni oilgoj huulyoo
































































































za huulooonclude <iostream>
using name space std;
int main ()
{ //doosho guulge














































ich chi





















































































































































































gol ni oilgoj huulyoo
































































































za huulooonclude <iostream>
using name space std;
int main ()
{ //doosho guulge














































ich chi





















































































































































































gol ni oilgoj huulyoo





















2022-04-04 10:01:13
#include<iostream>
using namespace std;
int main()
{
int a,b=0,h;
cin >> a;
while (a > 0)
{
h = (a % 10);
a = (a / 10);
if(h%2==0) b=b+h;
}
cout << b << endl;
}
<33
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.