{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eZhaoby拥有n个技能,每个技能拥有各自的等级a\u003csub\u003ei\u003c/sub\u003e( 0 - 100 ),Zhaoby的总战斗力是取决于他的技能等级的,每个技能对他的战斗力提升为\u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/dacb30bc233d91bedb7a6f602e4af9f8?v\u003d1657071396\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e,(a\u003csub\u003ei\u003c/sub\u003e/10取下界),总战斗力为每个技能战斗力之和,现在他拥有一些技能点k,可以用来提升他的技能等级(一个技能点可以使技能等级升一级),请问他能达到的最大战斗力为多少。技能点可以不用全部用完,注意每个技能的等级上限是100。 "}},{"title":"Input","value":{"format":"HTML","content":"第一行输入两个整数n和k (1 ≤ n ≤ 10\u003csup\u003e5\u003c/sup\u003e , 0 ≤ k ≤ 10\u003csup\u003e7\u003c/sup\u003e) 分别代表Zhaoby拥有的技能的数量和Zhaoby拥有的技能点的数量。\u003cp\u003e\n第二行输入n个整数a\u003csub\u003ei\u003c/sub\u003e (0 ≤a\u003csub\u003ei\u003c/sub\u003e ≤ 100) 代表Zhaoby所拥有的技能的等级"}},{"title":"Output","value":{"format":"HTML","content":"输出最大战斗力的数值"}},{"title":"Sample 1","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\u003e2 4\n7 9\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Sample 2","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\u003e3 8\n17 15 19\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e5\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Sample 3","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\u003e2 2\n99 100\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e20\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"HTML","content":"对于第一个测试用例,给第一个技能使用三个技能点给第二个技能使用一个技能点,所以战斗力为10/10+10/10\u003d2\u003cp\u003e\n\u003cp\u003e对于第二个测试用例,给第一个技能使用三个技能点给第三个技能使用一个技能点,第二个技能使用四个技能点,所以战斗力为 \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/a5f0cae3a3916344efc196f5591db569?v\u003d1657071396\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e.\u003c/p\u003e\n\u003cp\u003e对于第三个测试用例,给第一个技能使用一个技能点,第二个技能 已经满级 所以无法升级,所以战斗力为\u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/c98f7f10d2cce3217e1c93f44a4dedea?v\u003d1657071396\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e. \u003c/p\u003e"}}]}