{"trustable":false,"sections":[{"title":"","value":{"format":"PLAIN","content":"有n个死宅,每个死宅需要快乐a[i]点,每分钟死宅会自动快乐1点,但如果喝快乐水就会快乐k点,但是快乐水每分钟只能给一个人喝,问让所有死宅都快乐的最短时间。"}},{"title":"Input","value":{"format":"PLAIN","content":"多组数据\n第一行一个整数n表示死宅数量\n接下来一行n个用空格隔开的整数,表示死宅需要快乐的点数a[i]\n接下来一行一个整数k表示每分钟喝快乐水获得的快乐点"}},{"title":"Output","value":{"format":"PLAIN","content":"一行一个整数,表示你的答案"}},{"title":"Sample Input1","value":{"format":"PLAIN","content":"3\n2 3 9\n5\n"}},{"title":"Sample Output1","value":{"format":"PLAIN","content":"3\n"}},{"title":"Sample Input2","value":{"format":"PLAIN","content":"3\n2 3 6\n5\n"}},{"title":"Sample Output2","value":{"format":"PLAIN","content":"2\n"}},{"title":"数据范围","value":{"format":"PLAIN","content":"1\u003c\u003dn\u003c\u003d100000\n1\u003c\u003dai\u003c\u003d10^9\n1\u003c\u003dk\u003c\u003d10^9"}}]}