{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cp\u003e高中物理老师总认为给学生文本形式的问题比给纯计算形式的问题要求更高。毕竟,学生首先得阅读和理解问题。\u003c/p\u003e \n \u003cp\u003e因此,他们描述一个问题不像”U\u003d10V,I\u003d5A,P\u003d?”,而是”有一个含有U\u003d10V 的电池组和灯泡的电路。现在有I\u003d5A 的电流通过灯泡,问灯泡产生的功率是多少?”\u003c/p\u003e \n \u003cp\u003e然而,大多数学生并不在乎题目文本。他们只是从文本中提取出:U\u003d10V,I\u003d5A。然后他们想:”我知道哪个公式呢?哦,对了,P\u003dU\u003cem\u003eI。因此P\u003d10V\u003c/em\u003e5A\u003d50W。搞定。”\u003c/p\u003e \n \u003cp\u003e现在,我们只考虑一个P-U-I 类型的问题。即功率,电压和电流中的两个告诉你,你要求剩下那个。\u003c/p\u003e \n \u003cp\u003e你的任务是写一个程序,从输入文件中读入一些文本问题,然后要你计算剩下那个的值。\u003c/p\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cp\u003e第一行为一个正整数,表示数据组数。\u003c/p\u003e \n \u003cp\u003e每组数据包含一行,为一个包含两个数据区和一些任意单词的字符串。一个数据区具有如下形式:I\u003dxA,U\u003dxV 或P\u003dxW,x 是一个实数。在A,V,W 之前有可能出现前缀m(毫, 千分之一),k(千),M(兆,百万)。以下是几点关于输入的说明:\u003c/p\u003e \n \u003col style\u003d\"list-style-type: decimal\"\u003e \n \u003cli\u003e\u003cp\u003e等号(‘\u003d’)只会在数据区出现,不会在其他地方出现;\u003c/p\u003e\u003c/li\u003e \n \u003cli\u003e\u003cp\u003e数据区内没有空格字符;\u003c/p\u003e\u003c/li\u003e \n \u003cli\u003e\u003cp\u003eP 和U,P 和I,或U 和I 中的一个会给出;\u003c/p\u003e\u003c/li\u003e \n \u003c/ol\u003e \n \u003cp\u003e文本问题长度不超过255,且数据组数不超过3 组。\u003c/p\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cp\u003e对于每组数据输出一行,形式如:P\u003dxW,I\u003dxA 或U\u003dxV(取决于输入数据),x 为一个实数,保留两位小数。在A,V,W 前不要出现前缀。\u003c/p\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e3 \nIf the voltage is U\u003d200V and the current is I\u003d4.5A, which power is generated? \nA light-bulb yields P\u003d100W and the voltage is U\u003d220V. Compute the current, please. \nbla bla bla lightning strike I\u003d2A bla bla bla P\u003d2.5MW bla bla voltage? \n\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003eP\u003d900.00W \nI\u003d0.45A \nU\u003d1250000.00V \n\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\u003c/body\u003e\n\u003c/html\u003e"}}]}