diff --git a/CHANGELOG.md b/CHANGELOG.md index 841f721..65bd873 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## version 2.14.2 + +- BWC96 & WC328 & WC329 数据 + ## version 2.14.1 - 尝试增加语言本地化 diff --git a/package.json b/package.json index efec44e..f9648ed 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-leetcode-problem-rating", "displayName": "LeetCode", "description": "%main.description%", - "version": "2.14.1", + "version": "2.14.2", "author": "ccagml", "publisher": "ccagml", "license": "MIT", diff --git a/resources/data.json b/resources/data.json index 67c3aa2..c8cecbf 100644 --- a/resources/data.json +++ b/resources/data.json @@ -868,6 +868,17 @@ "ContestID_en": "Weekly Contest 105", "ContestID_zh": "第 105 场周赛" }, + { + "Rating": 2397.9722495587, + "ID": 2538, + "Title": "Difference Between Maximum and Minimum Price Sum", + "TitleZH": "最大价值和与最小价值和的差值", + "TitleSlug": "difference-between-maximum-and-minimum-price-sum", + "ContestSlug": "weekly-contest-328", + "ProblemIndex": "Q4", + "ContestID_en": "Weekly Contest 328", + "ContestID_zh": "第 328 场周赛" + }, { "Rating": 2396.6267778669, "ID": 808, @@ -1792,6 +1803,17 @@ "ContestID_en": "Weekly Contest 211", "ContestID_zh": "第 211 场周赛" }, + { + "Rating": 2220.8257124139, + "ID": 2543, + "Title": "Check if Point Is Reachable", + "TitleZH": "判断一个点是否可以到达", + "TitleSlug": "check-if-point-is-reachable", + "ContestSlug": "biweekly-contest-96", + "ProblemIndex": "Q4", + "ContestID_en": "Biweekly Contest 96", + "ContestID_zh": "第 96 场双周赛" + }, { "Rating": 2220.0903365738, "ID": 2223, @@ -3057,6 +3079,17 @@ "ContestID_en": "Weekly Contest 192", "ContestID_zh": "第 192 场周赛" }, + { + "Rating": 2056.2598215101, + "ID": 2542, + "Title": "Maximum Subsequence Score", + "TitleZH": "最大子序列的分数", + "TitleSlug": "maximum-subsequence-score", + "ContestSlug": "biweekly-contest-96", + "ProblemIndex": "Q3", + "ContestID_en": "Biweekly Contest 96", + "ContestID_zh": "第 96 场双周赛" + }, { "Rating": 2055.0970201875, "ID": 1575, @@ -3442,6 +3475,17 @@ "ContestID_en": "Weekly Contest 325", "ContestID_zh": "第 325 场周赛" }, + { + "Rating": 2019.9859462755, + "ID": 2547, + "Title": "Minimum Cost to Split an Array", + "TitleZH": "拆分数组的最小代价", + "TitleSlug": "minimum-cost-to-split-an-array", + "ContestSlug": "weekly-contest-329", + "ProblemIndex": "Q4", + "ContestID_en": "Weekly Contest 329", + "ContestID_zh": "第 329 场周赛" + }, { "Rating": 2019.5399647546, "ID": 909, @@ -4652,6 +4696,17 @@ "ContestID_en": "Weekly Contest 223", "ContestID_zh": "第 223 场周赛" }, + { + "Rating": 1891.8455273506, + "ID": 2537, + "Title": "Count the Number of Good Subarrays", + "TitleZH": "统计好子数组的数目", + "TitleSlug": "count-the-number-of-good-subarrays", + "ContestSlug": "weekly-contest-328", + "ProblemIndex": "Q3", + "ContestID_en": "Weekly Contest 328", + "ContestID_zh": "第 328 场周赛" + }, { "Rating": 1886.7040111218, "ID": 2305, @@ -8106,6 +8161,17 @@ "ContestID_en": "Biweekly Contest 84", "ContestID_zh": "第 84 场双周赛" }, + { + "Rating": 1619.505461912, + "ID": 2541, + "Title": "Minimum Operations to Make Array Equal II", + "TitleZH": "使数组中所有元素相等的最小操作数 II", + "TitleSlug": "minimum-operations-to-make-array-equal-ii", + "ContestSlug": "biweekly-contest-96", + "ProblemIndex": "Q2", + "ContestID_en": "Biweekly Contest 96", + "ContestID_zh": "第 96 场双周赛" + }, { "Rating": 1618.6016480451, "ID": 1503, @@ -8282,6 +8348,17 @@ "ContestID_en": "Weekly Contest 78", "ContestID_zh": "第 78 场周赛" }, + { + "Rating": 1604.6299874552, + "ID": 2546, + "Title": "Apply Bitwise Operations to Make Strings Equal", + "TitleZH": "执行逐位运算使字符串相等", + "TitleSlug": "apply-bitwise-operations-to-make-strings-equal", + "ContestSlug": "weekly-contest-329", + "ProblemIndex": "Q3", + "ContestID_en": "Weekly Contest 329", + "ContestID_zh": "第 329 场周赛" + }, { "Rating": 1604.5128423093, "ID": 2522, @@ -8535,6 +8612,17 @@ "ContestID_en": "Weekly Contest 133", "ContestID_zh": "第 133 场周赛" }, + { + "Rating": 1583.3117784523, + "ID": 2536, + "Title": "Increment Submatrices by One", + "TitleZH": "子矩阵元素加 1", + "TitleSlug": "increment-submatrices-by-one", + "ContestSlug": "weekly-contest-328", + "ProblemIndex": "Q2", + "ContestID_en": "Weekly Contest 328", + "ContestID_zh": "第 328 场周赛" + }, { "Rating": 1581.4963716166, "ID": 2211, @@ -13188,6 +13276,17 @@ "ContestID_en": "Biweekly Contest 43", "ContestID_zh": "第 43 场双周赛" }, + { + "Rating": 1294.0257382852, + "ID": 2545, + "Title": "Sort the Students by Their Kth Score", + "TitleZH": "根据第 K 场考试的分数排序", + "TitleSlug": "sort-the-students-by-their-kth-score", + "ContestSlug": "weekly-contest-329", + "ProblemIndex": "Q2", + "ContestID_en": "Weekly Contest 329", + "ContestID_zh": "第 329 场周赛" + }, { "Rating": 1293.4904281819, "ID": 1551, @@ -14156,6 +14255,17 @@ "ContestID_en": "Biweekly Contest 86", "ContestID_zh": "第 86 场双周赛" }, + { + "Rating": 1249.7515196656, + "ID": 2540, + "Title": "Minimum Common Value", + "TitleZH": "最小公共值", + "TitleSlug": "minimum-common-value", + "ContestSlug": "biweekly-contest-96", + "ProblemIndex": "Q1", + "ContestID_en": "Biweekly Contest 96", + "ContestID_zh": "第 96 场双周赛" + }, { "Rating": 1249.4294341104, "ID": 766, @@ -14695,6 +14805,17 @@ "ContestID_en": "Weekly Contest 184", "ContestID_zh": "第 184 场周赛" }, + { + "Rating": 1222.2354919459, + "ID": 2535, + "Title": "Difference Between Element Sum and Digit Sum of an Array", + "TitleZH": "数组元素和与数字和的绝对差", + "TitleSlug": "difference-between-element-sum-and-digit-sum-of-an-array", + "ContestSlug": "weekly-contest-328", + "ProblemIndex": "Q1", + "ContestID_en": "Weekly Contest 328", + "ContestID_zh": "第 328 场周赛" + }, { "Rating": 1221.9872943569, "ID": 1678, @@ -15267,6 +15388,17 @@ "ContestID_en": "Weekly Contest 255", "ContestID_zh": "第 255 场周赛" }, + { + "Rating": 1184.3385083575, + "ID": 2544, + "Title": "Alternating Digit Sum", + "TitleZH": "交替数字和", + "TitleSlug": "alternating-digit-sum", + "ContestSlug": "weekly-contest-329", + "ProblemIndex": "Q1", + "ContestID_en": "Weekly Contest 329", + "ContestID_zh": "第 329 场周赛" + }, { "Rating": 1182.6489068544, "ID": 1672, diff --git a/src/service/SolutionService.ts b/src/service/SolutionService.ts index 3af5c9d..fbc16a8 100644 --- a/src/service/SolutionService.ts +++ b/src/service/SolutionService.ts @@ -57,6 +57,8 @@ class SolutionService extends BaseWebViewService { // $\textit this.solution.body = this.solution.body.replace(/\$\textit/g, "$"); + this.solution.body = this.solution.body.replace(/\$\texttt/g, "$"); + this.solution.body = this.solution.body.replace(/\$\text/g, "$"); const body: string = markdownService.render(this.solution.body, { lang: this.solution.lang,