Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
计算表达式的值
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 593, Accepted users: 560
Problem 10454 : No special judgement
Problem description
  输入xyz的值,计算下面表达式的值。

(x+1)(y-3)/(x+y+Z)

Input
  输入包含若干组数据,第一行为一个整数n,代表下面共有n组数据。接下来的每一行为一组数据,包括x,y,z,数据间用空格分隔。

Output
  对于每组输入的数据,输出其表达时的值,小数点后面保留四位有效数字。每组数据输出一行。

Sample Input
2
1 2 3
7 8 20
Sample Output
-0.3333
1.1429
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2197 today,16258924 total, since 2010-05-07