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-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---
2019-02-21 10:28:36
231321321321321
2019-02-01 06:25:32

















































2019-01-08 07:15:27
yaj bodoh we
2018-12-19 10:37:01
no comment :)
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.