{"problem":{"name":"A. A Very Hard Question","description":{"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. Husam deci","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10150A"},"statements":[{"statement_type":"Markdown","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## Input\n\nThe 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.\n\n## Output\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.*It is guaranteed that all answers are integer numbers. Do not print any floating-point values.*\n\n[samples]","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**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.*","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10150A","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}