Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
|||||||||||
2021-11-18 06:24:02
hhe Last edit: 2021-12-01 08:39:44 |
|||||||||||
2021-10-26 08:51:24
UNTMAAR BAIVAL UNTAJ BAIGAARAI |
|||||||||||
2021-09-20 09:48:17
#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; } Dulguun |
|||||||||||
2021-08-08 11:39:37
#include <iostream> int main(){ int a,b,c; scanf("%d%d%d" ,&a,&b,&c); if( a % 2 == 0){ a = a; } else{ a = 0; } if(b % 2 == 0){ b = b; } else{ b = 0; } if(c % 2 == 0){ c = c; } else{ c = 0; } printf("%d" ,a+b+c); } |
|||||||||||
2021-08-02 13:33:19
Hi saikhnaa was here |
|||||||||||
2021-07-09 17:10:29
mrc academy hud3 |
|||||||||||
2021-05-05 11:59:22
amjiltijin ur shim hicheen zutgelees eheln |
|||||||||||
2021-03-03 07:34:14
#include <stdio.h> int main () { int a,b,c,d,f=0; scanf("%d %d %d",&a,&b,&c ); if(a%2==0) { f=f+a; } if(b%2==0) { f=f+b; } if(c%2==0) { f=f+c; } printf("%d", f); } bat |
|||||||||||
2020-10-02 14:32:59
bolohgu ch bh shig |
|||||||||||
2020-08-05 09:21:47
yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet Last edit: 2020-08-05 09:22:17 |