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.|

RGB7107 - Тэгш тоонуудын нийлбэр

Өгөгдсөн 3 тоон дахь тэгш тоонуудын нийлбэрийг ол. Ядаж 1 тэгш тоо бий. 

Input

Нэг мөрөнд Int төрлийн 3 тоо зайгаар тусгаарлагдан өгөгдөнө.

Output

Нийлбэр

Example

Input:
10 3 5
Output:
10

Нэмсэн:Bataa
Огноо:2011-05-24
Хугацааны хязгаарлалт:0.202s
Эх кодын хэмжээний хязгаарлалт: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-04-22 17:49:53
#python
a, b, c = (int(x) for x in input().split())
if a % 2 == 0:
if b % 2 == 0:
if c % 2 == 0:
print(a+b+c)
else:
print(a+b)
elif c % 2 == 0:
print(a+c)
else:
print(a)
elif b % 2 == 0:
if c % 2 == 0:
print(b+c)
else:
print(b)
elif c % 2 == 0:
print(c)
2022-03-23 06:07:43
#include<stdio.h>
int main()
{
int a, b, c, l, k, j, t;
scanf("%d %d %d", &a, &b, &c);
if(a%2==0) l=a;
else l=0;
if(b%2==0) k=b;
else k=0;
if(c%2==0) j=c;
else j=0;

t=l+k+j;
printf("%d", t);

return 0; bibibibibibibibi
2022-03-23 05:51:16
#include<stdio.h>
int main()
{
int a,b,c,n=0;
scanf("%d %d %d",&a,&b,&c);
if(a%2==0) n=n+a;
if(b%2==0) n=n+b;
if(c%2==0) n=n+c;
printf("%d",n);

return 0;
}

Last edit: 2022-03-23 06:10:04
2022-03-23 05:13:57
bitii hudlaa bodlogo taviad bgch haha
2022-03-04 01:23:27
8=====================================================D

2022-03-01 15:17:25
#include <iostream>
using namespace std;

int main() {

int a, b, c, n=0;
cin >> a >> b >> c;
if ( a % 2 == 0 ) n = n + a;
else if ( a % 2 == 1 ) n = n;
if ( b % 2 == 0 ) n = n + b;
else if ( b % 2 == 1 ) n = n;
if ( c % 2 == 0 ) n = n + c;
else if ( c % 2 == 1 ) n = n;
cout << n << endl;

return 0;
} life
2022-02-09 18:48:57
#include<stdio.h>
int main()
{
int a,s,d,f=0;
scanf("%d %d %d",&a,&s,&d);
int x[]={a,s,d,f};
for(int i = 0; i < 3; i++)
{
if(x[i]%2==0)
{
f=f+x[i];}
}
printf("%d",f);

}
//mike was here
2022-01-21 09:23:58
.

Last edit: 2022-01-21 10:37:25
2022-01-06 05:26:30
tilterlee
2021-12-01 02:46:45
untmaaar bwl untaj baigaara
hey
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.