""" 读取json数据到list """
def read_json_list(json_file):if not (os.path.exists(json_file) and os.path.isfile(json_file)):with open(json_file, w) as f:f.write([])with open(json_file, r, encodingutf-8) as f:try:school_list jso…
DP单调队列优化 E One hundred layer 题意:n*m的矩形,从第一层x位置往下走,每一层都可以往左或往右移动最多k步再往下走,问走到n层时所走路径的最大值&#x…