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

SO204 - Солбисон зэрэг

a, b хоёр натурал тоо өгөгдөв. Тэгвэл a^b-b^a илэрхийллийн утгыг ол.

Input

a,b  натурал тоонууд өгөгдөнө. (1≤a,b≤32).

Output

Үр дүнг хэвлэ.

Example

Input:
2 3

Output:
-1

Нэмсэн:munkhbat
Огноо:2013-03-20
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM64 NCSHARP JULIA PYPY3

hide comments
2023-01-17 08:07:26
#include<bits/stdc++.h>
using namespace std;
main()
{
int u,f,p,o,s,a,i,n;
cin>>n>>a;
if(n>0)
{
if(a>0)
{
s=0;
f=0;
for (i=1;i<=a;i++)
{
o=n*n;
s=s+o;
}
for (u=1;u<=n;u++)
{
p=a*a;
f=f+p;
}
s=s-f;
cout<<s;
}
else
{
return 0;
}
}
else
{
return 0;
}

}
2023-01-17 08:07:01
ystoi fuck bodlogo bna
2022-10-31 05:49:39
#include<stdio.h>
#include<math.h>
int main(){
int a,b,c;
scanf("%d %d",&a,&b);
c=a-b;
printf("%d",c);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.