{"raw_statement":[{"iden":"statement","content":"Husam was preparing himself for the Graduate Record Examinations (GRE). Yesterday, he read a very hard question, but he could not find a solution for it, so he did not sleep all the night.\n\nHusam decided to tell you about the question, so you can help him to find the solution. The question is: _If the price of the orange was increased by x%. How many oranges can be bought for the amount that used to buy y oranges?_\n\nCan you help Husam to solve this question?\n\nThe first line contains an integer T (1  ≤  T  ≤  104), where T is the number of test cases.\n\nThen T lines follow, each line contains two integers y and x (1  ≤  y  ≤  106) (0  ≤  x  ≤  100), where y is the number of oranges, and x is the percentage increase in price.\n\nFor each test case, print a single line containing the number of oranges that can be bought for the same amount of money that used to buy y oranges before the price increased.\n\n*It is guaranteed that all answers are integer numbers. Do not print any floating-point values.*\n\n"},{"iden":"input","content":"The first line contains an integer T (1  ≤  T  ≤  104), where T is the number of test cases.Then T lines follow, each line contains two integers y and x (1  ≤  y  ≤  106) (0  ≤  x  ≤  100), where y is the number of oranges, and x is the percentage increase in price."},{"iden":"output","content":"For each test case, print a single line containing the number of oranges that can be bought for the same amount of money that used to buy y oranges before the price increased.*It is guaranteed that all answers are integer numbers. Do not print any floating-point values.*"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ T \\in \\mathbb{Z} $ be the number of test cases.  \nFor each test case $ k \\in \\{1, \\dots, T\\} $:  \n- Let $ y_k \\in \\mathbb{Z}^+ $ be the original number of oranges.  \n- Let $ x_k \\in \\mathbb{Z} $ be the percentage price increase, $ 0 \\leq x_k \\leq 100 $.  \n\n**Constraints**  \n1. $ 1 \\leq T \\leq 10^4 $  \n2. For each $ k $:  \n   - $ 1 \\leq y_k \\leq 10^6 $  \n   - $ 0 \\leq x_k \\leq 100 $  \n\n**Objective**  \nFor each test case $ k $, compute the number of oranges that can be bought after the price increase, given the same total expenditure:  \n$$\n\\text{Answer}_k = \\left\\lfloor \\frac{y_k}{1 + \\frac{x_k}{100}} \\right\\rfloor\n$$  \n*It is guaranteed that the result is an integer.*","simple_statement":"You can buy y oranges before.  \nPrice increases by x%.  \nHow many oranges can you buy now with the same money?  \n\nAnswer: y * 100 / (100 + x)","has_page_source":false}