So Random : HackerEarth Problem Solution

So Random : HackerEarth Problem Solution


Input
2
0 10
.5 720

Output
0.0000
0.2929
 
Implementation: