UOJ Logo 黑暗爆炸OJ

DARKBZOJ

#4073. [Wf2014]Buffed Buffet

Statistics 下载数据

Description

Input

Output

Sample Input

2 15
D 4 10 1
C 6 1

Sample Output

40.500000000

Hint

Source