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
2024-01-09 09:52:25
https://www.youtube.com/watch?v=hxOApe1P9dM
2024-01-09 09:52:18
https://youtu.be/_QMEy8SY2OY?si=XJEKZ7TebDU0UGMY
2024-01-09 09:50:37
https://www.youtube.com/watch?v=IxVfeoGXWVU
2023-08-22 04:35:35
#include <iostream>
using namespace std;
int main() {

int a,b,d,f,n,s,q,w,e,t,i,z=0;
cin>>n;
t=0;
while(n!=0){
if(n%10%2==0){
t+=n%10;
}
n=n/10;

}

cout<<t;

}
2023-08-21 05:23:14
#include <cmath>
#include <iostream>

using namespace std;

int main() {
int m,n,i,a,b,c,d,e,f,g,x,y,j;
string ug;
cin>>n;
for (i=0;i<n;i++){
cin>>ug;
m=ug.size();
e=0;
for(j=0;j<m;j++){
if(ug[j]=='0')
e++;

}
x=0;
y=0;
for(j=0;j<m;j++){
if(ug[j]=='1'){
break;
}
else {
x++;
}
}
for(j=m-1;j>=0;j--){
if(ug[j]=='1'){
break;
}
else {
y++;
}
}
e=e-x-y;
if(e<=0){
cout<<0<<endl;
}
else {
cout<<e<<endl;
}
}
}
2023-05-14 07:27:52
#include <iostream>
#include <cmath>
using namespace std;

int main(){
int n,i,t,s;
cin>>n;
t=0;
while(n!=0){
if(n%10%2==0){
t+=n%10;
}
n=n/10;

}

cout<<t;

}
2023-05-01 03:43:19
https://www.youtube.com/watch?v=j5a0jTc9S10&t=4s
2023-05-01 03:43:19
https://www.youtube.com/watch?v=j5a0jTc9S10&t=4s
2022-12-12 11:34:27
#include <iostream> { Б. Азтүшиг }
using namespace std;
int main(){
int n, a, i, s=0;
cin>>n;
while(n>0){
a=n%10;
if(a%2==0)
s=s+a;
n=n/10;
}
cout<<s;
return 0;
}
2022-11-29 08:47:47
#include<bits/stdc++.h>
using namespace std;
main(){
int a,b,s=0;
scanf("%d",&a);
while(a>0){
b=a%10;
a=a/10;
if(b%2==0)
s=s+b;
}
printf("%d",s);
}
huultsgaaa
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.