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

RGB8001 - 2 тооны нийлбэр

Өгөгдсөн хоёр бүхэл тооны нийлбэр ол.

Input

Зайгаар тусгаарлагдан 2 тоо өгөгдөнө. (Integer төрөл)

Output

Нийлбэр

Example

Input:
2 3

Output:
5

Нэмсэн:Bataa
Огноо:2010-01-04
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 ASM64 BASH BF C CSHARP C++ 4.3.2 CPP CPP14 C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON RUBY SCALA SCM guile SCM qobi ST TCL TEXT WHITESPACE

hide comments
2014-03-27 03:43:57 Bayr.temuulen
hooy ada-gaaaa
c++4.3.2 bolgo
2014-01-11 03:10:34 baysaa
#include <iostream>
#include <conio.h>
using namespace std;
int main () {
int a,b,c;
cin >> a;
cin >> b;
c=a+b;
cout << c;
getch () ;
}
2013-04-02 10:53:42 tuvshin-od
#include<stdio.h>
#include<stdlib.h>
int main()
{
long int a[100][100];
long int i,j,m,n,k;
scanf("%ld%ld",&n,&m);
for(i=0;i<n;i++) for(j=0;j<m;j++) scanf("%ld",&a[i][j]);
for(i=0;i<n;i++){
for(j=0;j<m;j++) if(i==0 && j==0) a[i][j]=a[i][j];
else if(j==0) a[i][j]=a[i][j]+a[i-1][j];
else if(i==0) a[i][j]=a[i][j]+a[i][j-1];
else if(a[i][j-1]>a[i-1][j]) a[i][j]=a[i][j]+a[i-1][j];
else a[i][j]=a[i][j]+a[i][j-1];
}
printf("%ld",a[n-1][m-1]);
system("pause");
}

2012-12-18 13:34:32 tost
tamiraa helee soliod ilgee
2012-10-29 05:54:28 Battogtokh


Last edit: 2012-10-29 05:54:43
2012-03-21 08:41:13 chinsanaa
#include<iostream.h>
#include<stdio.h>
main()
{int a,b,c;
cin>>a>>b;
cout<<c<<l;
for(;;);
}
2012-03-21 08:19:54 chinsanaa
#include<iostream.h>
main()
{int 2,3,s;
cin>>2>>3;
s=2+3;
cout <<s<<endl;
for(;;);
}
2012-03-21 08:18:36 chinsanaa
#include<iostream.h>
main()
{int a,b,s;
cin>>a>>b;
s=a+b;
cout <<s<<endl;
for(;;);
}
2011-12-24 16:22:16 NOMIN_0702
#include<stdio.h>
main<>
{ int a,b,niil;
clrscr();
printf("a=");
scanf("%d",&a);
printf("b=");
scanf("%d",&b);
niil=a+b;
printf("niil=%d",niil);
}
2011-10-13 13:35:53 baagii


Last edit: 2011-10-13 13:36:58
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.