{"problem":{"name":"Bitter Alchemy","description":{"content":"Akaki, a patissier, can make $N$ kinds of doughnut using only a certain powder called \"Okashi no Moto\" (literally \"material of pastry\", simply called Moto below) as ingredient. These doughnuts are cal","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc095_b"},"statements":[{"statement_type":"Markdown","content":"Akaki, a patissier, can make $N$ kinds of doughnut using only a certain powder called \"Okashi no Moto\" (literally \"material of pastry\", simply called Moto below) as ingredient. These doughnuts are called Doughnut $1$, Doughnut $2$, $...,$ Doughnut $N$. In order to make one Doughnut $i$ $(1 ≤ i ≤ N)$, she needs to consume $m_i$ grams of Moto. She cannot make a non-integer number of doughnuts, such as $0.5$ doughnuts.\nNow, she has $X$ grams of Moto. She decides to make as many doughnuts as possible for a party tonight. However, since the tastes of the guests differ, she will obey the following condition:\n\n*   For each of the $N$ kinds of doughnuts, make at least one doughnut of that kind.\n\nAt most how many doughnuts can be made here? She does not necessarily need to consume all of her Moto. Also, under the constraints of this problem, it is always possible to obey the condition.\n\n## Constraints\n\n*   $2 ≤ N ≤ 100$\n*   $1 ≤ m_i ≤ 1000$\n*   $m_1 + m_2 + ... + m_N ≤ X ≤ 10^5$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$ $X$\n$m_1$\n$m_2$\n$:$\n$m_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc095_b","tags":[],"sample_group":[["3 1000\n120\n100\n140","9\n\nShe has $1000$ grams of Moto and can make three kinds of doughnuts. If she makes one doughnut for each of the three kinds, she consumes $120 + 100 + 140 = 360$ grams of Moto. From the $640$ grams of Moto that remains here, she can make additional six Doughnuts $2$. This is how she can made a total of nine doughnuts, which is the maximum."],["4 360\n90\n90\n90\n90","4\n\nMaking one doughnut for each of the four kinds consumes all of her Moto."],["5 3000\n150\n130\n150\n130\n110","26"]],"created_at":"2026-03-03 11:01:14"}}