Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
ABR0000 - Нийлбэр(жишээ) |
a, b хоёр бүхэл тоо өгөгдөв. Нийлбэрийг нь ол.
Input
a, b хоёр бүхэл тоог зайгаар тусгаарлан өгнө.
Output
нийлбэрийг нь хэвлэнэ.
Example
Input: 1 2 Output: 3 Жишээ бодолт 1(Java): import java.util.*; public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); System.out.println(a + b); } } Жишээ бодолт 2(C++): #include "iostream.h" main(){ int a, b; cin >> a >> b; cout << a+b; return 0; } Жишээ бодолт 3(Turbo C): #include "stdio.h" main(){ int a, b; scanf("%d%d", &a, &b); printf("%d", a+b); return 0; }
Нэмсэн: | sw40 |
Огноо: | 2007-11-01 |
Хугацааны хязгаарлалт: | 1s |
Эх кодын хэмжээний хязгаарлалт: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Програмчлалын хэлүүд: | Бүгд дараах хэлүүдээс бусад: ASM32-GCC MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR ERL FANTOM FORTH GOSU GRV JS-RHINO JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PERL6 PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET |
Эх сурвалж: | TOJ |
hide comments
|
||||||
2011-10-18 12:54:26 sw40
You can use www.bolor-toli.com |
||||||
2011-09-25 08:20:51 lhagwa-ochir
mair amarhan bodlogo |
||||||
2011-09-01 12:18:27 HW10D401
#include"stdion.h" main(){ inta.b; scanf("%d,%d"%a,%b); printf("%d"a+b); return0; } |
||||||
2011-04-09 07:56:38 oyundelger
#include<iostream.h> void main() { int a,b; cout<<"a="; cin>>a; cout<<"b="; cin>>b; if(a>=0&&b>=0) cout<<a+b; cin.get(); ---x----- } |
||||||
2011-03-07 10:39:57 haku
chi yu bodtson ym be |
||||||
2011-01-19 11:42:34 sw40
www.bolor-toli.com |
||||||
2011-01-03 05:36:41 enhtuguldur
#include <stdio.h> #include <stdlib.h> main() { float x, y, z; scanf("%f%f%f", &x, &y, &z); if((x<(y+z)) && (y<(x+z)) && (z<(x+y))) printf("YES"); else printf("NO"); system("pause"); return 0; } |
||||||
2010-11-09 17:23:30 Piotr KÄ…kol
Is there any Mongolian->English translator so that I would be able to translate some tasks myself? |
||||||
2010-09-03 14:47:02 hw10d328
jishee ogson bj dahiad adilhan tostei bodlogo hiij bolohgui umu? |
||||||
2010-09-02 09:36:58 hw10d014
pro Last edit: 2010-09-02 09:37:46 |