I'd like to ask whether anybody minds giving me some sample input/output to test my program against, help is appreciated a lot, thanks!

Moderator: Board moderators
Code: Select all
0.5 1
1000 0
My accepted code returnsWei-Ming Chen wrote:I am wandering the output of
Input:Can someone help?Code: Select all
0.5 1 1000 0 0.5 0
Code: Select all
0.00000
1
Code: Select all
0.5 3
0 0
452 0
0 251
.1 0
Code: Select all
-1.00000
0
0.00000
0
1.00000
0