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-28 05:49:35
thughunter.com
2023-11-27 11:26:47

#include<iostream>
using namespace std;
int main(){
long long x,y,c,d;
cin>>x>>y;
y=y+2;
if (x==2){
if (y>28) {x++; y=y-28;}
}
else {
if (x==1 || x==3 || x==5 || x==7 || x==8 || x==10 || x==12) {
if (y>31) { y-=31; x++;x=(x-1)%12+1; }
} else {
if (y>30){ x++; y-=30;}
}
}
cout<<x<<' '<<y; }
2023-11-27 11:15:46

#include<iostream>
using namespace std;
int main(){
long long x,y,c,d;
cin>>x>>y;
y=y+2;
if (x==2){
if (y>28) {x++; y=y-28;}
}
else {
if (x==1 || x==3 || x==5 || x==7 || x==8 || x==10 || x==12) {
if (y>31) { y-=31; x++;x=(x-1)%12+1; }
} else {
if (y>30){ x++; y-=30;}
}
}
cout<<x<<' '<<y; }
2023-11-27 11:08:39

#include<iostream>
using namespace std;
int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
if (abs(a-c)==2 && abs(b-d)==1 || abs(a-c)==1 && abs(b-d)==2)
cout<<1;
else
cout<<0;
}
2023-11-27 10:45:57
uilsjargalisgay.aternos.me:26101
2023-11-27 10:34:56
#include<iostream>
using namespace std;
int main(){ int Sn,a,b,c,x,d,w,y,z,i,j,k,l,n=0,m=0; cin>>n>>m>>a>>b;
if (m*a<=b)
cout<<n*a;
else { c=n/m; d=n%m;
cout<<c*b+d*a;
}
}
2023-11-27 10:34:14

#include<iostream>
using namespace std;
int main(){ int a,b,n,c,d;
cin>>n>>a>>b;
if (b<0) { b=b*(-1); b=n-b%n;}
a=(a+b-1)%n+1;
cout<<a;
}
2023-11-27 10:19:52
#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-27 10:17:04
guerza.aternos.host:26101
2023-11-23 10:10:05
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int a,b,c,k[1234],h,g,i;
for(i=0 ; i<6 ; i++){
cin>>k[i];
}
cout<<(k[1]+k[2]+k[0])*(k[1]+k[2]+k[0])-k[0]*k[0]-k[2]*k[2]-k[4]*k[4];
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.