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

ABR0002 - Илэрхийлэл

x, y хоёр бодит тоо өгөгдөв. Илэрхийллийн утгыг ол:
(|x|-|y|)/(1+|xy|)

Input

x болон у тоонууд хоорондоо зайгаар тусгаарлагдан өгөгдөнө.

Output

Илэрхийллийн утгыг таслалаас хойш нэг орны нарийвчлалтайгаар гаргана

Example

Input:
-3.1 12.24

Output:
-0.2

Нэмсэн:sw40
Огноо:2007-10-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ADA95 ASM64 BASH BF C++ 4.3.2 C99 CLPS CLOJURE D ERL FSHARP GO ICON ICK JS-RHINO LUA NEM NICE NODEJS OCAML PERL6 PIKE PRLG-swi SCALA SCM guile SCM qobi SED ST TCL WHITESPACE
Эх сурвалж:Абрамов С. А.

hide comments
2016-11-29 08:31:37
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
//(|x|-|y|)/(1+|xy|)
float x,y;
cin >> x >> y;
cout.setf(ios::fixed|ios::showpoint);
cout.precision(1);
cout << (abs(x)-abs(y))/((1+abs(x*y)));
return 0;
}


Last edit: 2016-11-29 08:32:43
2014-10-09 08:29:04 battulga
#icnlude<stdio.h>
#include<math.h>
#include<conio.h>
main(){
float x,y;
scanf("%f%f",&x,&y);
printf("%.1f",(abs(x)-abs(y)) / (float)(1+abs(x*y)));
getch();
}


Last edit: 2014-10-09 08:29:41
2011-09-08 03:08:48 Nasa
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
main() {
float x, y;
scanf("%f%f", &x, &y);
printf("%.1f", (abs(x)-abs(y))/(1+abs(x*y)));
system("pause");
return 0;
}
2009-11-06 05:13:07 soft*IT
#include <stdio.h>
#include <stdlib.h>

int main(){
float x,y;
scanf("%f %f",&x,&y);
printf("%.1f",(abs(x)-abs(y)) / (float)(1+abs(x*y)));
return 0;
}
2009-09-09 03:47:49 bat erdene
hey
2009-09-08 07:30:22 sw08d409


Last edit: 2009-09-08 07:40:12
2009-06-19 04:52:09 Munkhbat
#include <stdio.h>
#include <stdlib.h>

int main(){
double x,y,p;
scanf("%lf %lf",&x,&y);
if(x<0) x=x*(-1);
if(y<0) y=y*(-1);
p=(x-y)/(1+(x*y));
printf("%.1lf",p);
return 0;
}


Last edit: 2009-06-19 04:53:32
2009-06-01 12:50:16 Davaa
#include<stdio.h>

main()
{
float x,y,i,j,k,s;
scanf("%f %f",&x,&y);

if (x<0)
x=x*(-1);
if (y<0)
y=y*(-1);

s=(x-y)/(float)(1+x*y);
printf("%0.1f",s);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.