#Lutece0656. 小明喜欢A+B
小明喜欢A+B
Migrated from Lutece 656 小明喜欢A+B
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
小明算了很多A+B
但是他时不时会忘记进位(这里是竖式加法),但他的单步计算是正确的,已知和,以及忘记进位的概率,求小明求得结果的期望。
Input
第一行是一个整数表示数据组数
每组测试数据一行,包含两个整数和以及一个不超过五位的小数表示忘记进位的概率
Output
对于每组测试数据,输出包括1行,包括一个小数即所求期望(四舍五入保留两位小数)
Samples
Resources
zhanyl