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
2019-12-09 07:31:38
#include <iostream>
using namespace std;

int main() {

int x;
int i=0;
cin>>x;
while(x>0){
if((x%10)%2==0){
i=i+x%10;
}

x=x/10;
}
cout<<i;

return 0;
}
2019-12-03 08:04:26
#include <iostream>
using namespace std;
int main()
{
int a,s=0;
cin>>a;
while(a>0)
{
if(a%2==0) s=s+a%10;
a/=10;
}
cout<<s;
}
2019-11-16 07:41:06










































































































































2019-11-16 07:40:50
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,s=0;
cin>>a;
while(a>0){
if(a%2==0) s=s+a%10;
a/=10;
}
cout<<s;
}
2019-10-19 13:40:21
#include <cstdio>
int main()
{
int a, s = 0;
scanf ("%d", &a);
while(a > 0){
if(a % 2 ==0) s = s + a % 10;
a /= 10;
}
printf("%d\n", s);
}
2019-10-16 11:08:51
#include <cstdio>
using namespace std;
int main(){
int n,a,b,s=0;
scanf("%d",&n);
while(0<n){
a=n%10;
if(a % 2 == 0){
s=s+a;
}
n=n/10;
}
printf("%d",s);
}
2019-10-12 07:55:38
baaka
2019-10-11 08:19:55
stupid


Last edit: 2019-10-11 08:20:45
2019-05-31 13:29:30
#include<stdio.h>
#include<string.h>
int main()
{
int a,b,c,d,e,f=0,g,h,i,j;
scanf("%d", &a);
i=a/10000;
j=a%10000;
g=j/1000;
h=j%1000;
b=h/100;
c=h%100;
d=c/10;
e=c%10;
if(i%2==0) {
f=f+i;
}
if(g%2==0) {
f=f+g;
}
if(b%2==0) {
f=f+b;
}
if(d%2==0) {
f=f+d;
}
if(e%2==0) {
f=f+e;
}
printf("%d", f);
}
2019-03-05 13:50:30
#include<bits/stdc++.h>
using namespace std;

int main(){
int n,a,b,s=0;
cin>>n;

while(0<n){
a=n%10;
n=n/10;
if(a%2==0)
s=s+a;

}
cout<<s;
}
---odna---
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.