{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\n There is a slope on the 2D plane. The lowest point of the slope is at the origin. There is a small ball falling down above the slope. Your task is to find how many times the ball has been bounced on the slope.\u003cbr\u003e\u003cbr\u003e\n It\u0027s guarantee that the ball will not reach the slope or ground or Y-axis with a distance of less than 1 from the origin. And the ball is elastic collision without energy loss. Gravity acceleration $g \u003d 9.8 m/s^2$.\u003cbr\u003e\n \u003ccenter\u003e\n \u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/4bdecd1062e79b23e75734ce68d652b3?v\u003d1679118172\"\u003e\n \u003c/center\u003e\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"There are multiple test cases. The first line of input contains an integer T (1 $\\le$ T $\\le$ 100), indicating the number of test cases.\u003cbr\u003e\u003cbr\u003e\nThe first line of each test case contains four integers a, b, x, y (1 $\\le$ a, b, -x, y $\\le$ 100), indicate that the slope will pass through the point(-a, b), the initial position of the ball is (x, y)."}},{"title":"Output","value":{"format":"HTML","content":"Output the answer.\u003cbr\u003e\u003cbr\u003e\nIt\u0027s guarantee that the answer will not exceed 50."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e\u003cpre\u003e1\r\n5 1 -5 3\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e\u003cpre\u003e2\r\n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}