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
2020-07-15 08:40:40
import java.util.*;
import java.lang.*;

class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
int sum = 0;
int arr[] = new int[3];
for (int i = 0; i < 3; i++) {
arr[i] = sc.nextInt();
}
for (int n : arr) {
if (n % 2 == 0) {
sum = sum + n;
}
}
System.out.println(sum);
}
}
2020-06-17 10:48:29
package sict.edu;

import java.util.Scanner;

public class ihtoo {

public static void main(String[] args){

Scanner in = new Scanner(System.in);
System.out.println("Toogoo oruulna uu = ");
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int sum=0;

if (a%2==0) {
sum=sum+a;
}
if (b%2==0) {
sum=sum+b;
}
if(c%2==0) {
sum=sum+c;
}

System.out.println(sum);

}
}
2020-03-30 12:14:32
#include <iostream>
using namespace std;

int main() {

int a, b, c, sum = 0;
cin >> a >> b >> c;

if (a % 2 == 0)
sum = sum + a;

if (b % 2 == 0)
sum = sum + b;

if (c % 2 == 0)
sum = sum + c;

cout << sum <<endl;

return 0;
}
2020-01-21 09:32:41
v#include<stdio.h>
main(){
int a,b,c,d,f;
d=0;
scanf("%d%d%d",&a,&b,&c);
if(a%2==0){
d=d+a;
}
if(b%2==0){
d=d+b;
}
if(c%2==0){
d=d+c;
printf("%d",d);
}
2020-01-03 14:03:26
t1 sdakud biti comm dere code shaaj bgch huulad muu zan surgaad sda
2019-10-21 06:34:59
#include<stdio.h>
main(){
int a,b,c,d,f;
d=0;
scanf("%d%d%d",&a,&b,&c);
if(a%2==0){
d=d+a;
}
if(b%2==0){
d=d+b;
}
if(c%2==0){
d=d+c;
printf("%d",d);
}


}
2019-10-18 03:24:53
quote that if you need bitch!!!
2019-02-13 05:54:10
int x,y,z,c,sum;
sum=1;
scanf("%d %d %d %d", &x ,&y, &z,&c);
if(x < 5)
sum=sum*x;
if(y<5)
sum=sum*y;
if(z<5)
sum=sum*z;
if(c<5)
sum=sum*c;
printf("%d", sum);
2019-01-08 06:22:24
#include<bits/stdc++.h>
main(){
int a,b,c,e=0,s;
scanf("%d %d %d",&a,&b,&c);
if (a%2==0) e=e+a;
if (b%2==0) e=e+b;
if (c%2==0) e=e+c;
printf("%d",e);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.