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

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

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

Input

2 бүхэл тоо зайгаар тусгаарлагдан нэг мөрөнд өгөгдөнө.

Output

2 тооны нийлбэр.

Example

Input:
12 23

Output:
35

Нэмсэн:Bataa
Огноо:2011-01-15
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт: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
2023-11-22 10:38:26
#include<iostream>
using namespace std;
int main(){
long long a,b,c,d,x,y;
cin>>a>>b>>c>>d;
x=a-c;
y=b-d;
if(x<0) x=-x;
if(y<0) y=-y;
if(x>y)
cout<<x;
else
cout<<y;
}
2023-11-22 10:35:39
hake.aternos.host:21268
2023-11-22 10:30:19
hake.aternos.host:21268
2023-11-21 11:14:19
#include <iostream>
using namespace std;

int main() {

int a,b,c;
cin>>a>>b>>c;
if(a>0 && b>0){
cout<<"I";
}
if(a>0 && b<0){
cout<<"IV";
}
if(a<0 && b<0){
cout<<"III";
}
if(a<0 && b>0){
cout<<"II";
}
return 0;
}
2023-11-21 10:35:36
#include <iostream>
using namespace std;

int main() {

long long a,b,c,d=3,x=1,ch=2;
cin>>a>>b;
if(a==x && b==ch){
cout<<"second";
}
if(a==x && b==d){
cout<<"first";
}
if(a==x && b==x){
cout<<"-1";
}
if(a==d && b==ch){
cout<<"first";
}
if(a==d && b==d){
cout<<"-1";
}
if(a==d && b==x){
cout<<"second";
}
if(a==ch && b==ch){
cout<<"-1";
}
if(a==ch && b==x){
cout<<"first";
}
if(a==ch && b==d){
cout<<"second";
}
return 0;
}
2023-11-20 10:34:00
#include<iostream>
using namespace std;
int main(){
int n,t,a,b,c,d,k;
cin>>a>>b;
k=a-b;
d=b-a;
if (a>b){
cout<<b<<" "<<k/2;
}
else{
cout<<a<<" "<<d/2;
}
}
2023-11-16 10:18:07
#include<iostream>
using namespace std;
int main(){
int k,n,w,a=0,i,b;
cin>>k>>n>>w;
for(i=1;i<=w;i++){
a=a+i;
}
b=a*k;
if(b<=n){
cout<<0;
}
else{
cout<<b-n;
}
}
2023-11-09 13:20:35 Janlavchariv
Пайтон код
a,b = input().split(" ")
c = int(a) + int(b)
print(c)
2023-11-03 04:37:08
#include<bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b;
c=a+b;
cout<<c<<endl;
return 0;
}
2023-10-30 11:20:04
78
#include<iostream>
using namespace std;
int main () {
int a, n, m=1, e, b, x, c, d;
cin>>a>>b>>c>>d>>e;
cout<<a-((b*70)+(c*80)+(d*19)+(e*24));
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.