为防止广告,目前nocow只有登录用户能够创建新页面。如要创建页面请先登录/注册(新用户需要等待1个小时才能正常使用该功能)。

UVA/537

来自NOCOW
< UVA
跳转到: 导航, 搜索

计算P=UI

读入多组数据

每行有一个字符串

会告诉你P,U,I其中两个的值,求第三个;

(后面还有单位‘m(10的负3次方)','K(10的3次方)','M(10的6次方)',)


[编辑] Sample Input

3

If the voltage is U=200V and the current is I=4.5A, which power is generated?

A light-bulb yields P=100W and the voltage is U=220V. Compute the current, please.

bla bla bla lightning strike I=2A bla bla bla P=2.5M(因为这个M,p就等于2.5* 10的6次方)W bla bla voltage?


[编辑] Sample Output

Problem #1

P=900.00W


Problem #2

I=0.45A


Problem #3

U=1250000.00V

[编辑] 题解

UVA/537 c 题解

个人工具