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
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
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);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.