j178 / leetgo

Best LeetCode friend for geek. :snowboarder:
MIT License
539 stars 32 forks source link

[Bug] contest questions generation #226

Closed ShellRedia closed 1 year ago

ShellRedia commented 1 year ago

leetgo debug

PS C:\Users\xxx\Desktop\LeetCodeTemplate-Python\python> leetgo contest b100/ ● checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version" × failed to generate question=distribute-money-to-maximum-children err="exit status 9009" ● checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version" × failed to generate question=maximize-greatness-of-an-array err="exit status 9009" ● checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version" × failed to generate question=find-score-of-an-array-after-marking-all-elements err="exit status 9009" ● checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version" × failed to generate question=minimum-time-to-repair-cars err="exit status 9009" × no question generated

Debug log

2023/09/25 09:32:00 DEBU request method=GET url=https://leetcode.cn/contest/api/info/biweekly-contest-100/ body=<empty>
2023/09/25 09:32:00 DEBU response url=https://leetcode.cn/contest/api/info/biweekly-contest-100/ code=200
  headers=
  │ Allow: GET, OPTIONS\r
  │ Connection: keep-alive\r
  │ Content-Length: 13093\r
  │ Content-Type: application/json\r
  data="{\"contest\":{\"id\":832,\"title\":\"第 100 场双周赛\",\"title_slug\":\"biweekly-contest-100\",\"description\":\"<style>\n  .contest-information ol:not(.list-group) {\n    padding-left: 20px;\n  }\n\n  .contest-information ul:not(.list-group) {\n    padding-left: 20px;\n  }\n\n  .contest-information li:not(.list-group-item) {\n    margin-top: 5px;\n  }\n\n  .contest-information .list-group .list-group-item {\n    border: none;\n    margin-bottom: 1px;\n    display: flex;\n    flex-direction: row;\n    justify-content: space-between;\n  }\n\n  .contest-information .list-group .list-group-item > span {\n    flex: 0 0 auto;\n  }\n\n  .contest-information img[alt=\\"LeetCoin\\"] {\n    position: relative;\n    top: -2px;\n  }\n\n  .contest-information .award-img {\n    display: block;\n    max-width: 600px;\n    width: 100%;\n    border-radius: 4px;\n  }\n\n  .contest-information .inner-banner {\n    margin: 30px 0 50px;\n    display: block;\n    max-width: 100%;\n    border-radius: 8px;\n  }\n\n  .contest-information ol p {\n    margin-top: 1em;\n    margin-bottom: 0.6em;\n  }\n</style>\n\n<div class=\\"contest-information container\\">\n  <div class=\\"row\\">\n    <div class=\\"col-sm-8 col-md-9\\">\n      <h3 class=\\"text-300\\">\n        欢迎来到第 100 场双周赛\n      </h3>\n      <br>   \n      <p>\n        <strong>【竞赛奖励】</strong>\n        <ul>\n          <li>\n            <strong>排名第 1 - 10 名的参赛者</strong> 可获「力扣棒球帽 」x1\n          </li>\n          <li>\n            <strong>排名第  100、137、1024、1337、2048 名的参赛者</strong> 可获「力扣 LeetPoker」 x1\n          </li>\n        </ul>\n        <p style=\\"border-left: 4px solid rgba(0,0,0,0.5); padding-left: 1em;\\">\n          本场竞赛奖品将于 </strong>比赛后 20 个工作日</strong> 内进行发放,请获奖选手多加关注力扣官方通知。如遇疫情或不可抗力等因素,奖品可能发生调换,敬请谅解。<br />\n        </p>\n\n          <img class=\\"inner-banner\\" src=\\"https://pic.lingkou.xyz/1673105016-HSDWKZ-1760-360%20%E5%A5%96%E5%93%81.png\\" />\n        </a>\n      </p>\n      <h4 class=\\"text-300\\">\n        <i class=\\"fa fa-newspaper-o\\" style=\\"color: #1DA09C\\" aria-hidden=\\"true\\"></i>\n        &nbsp;重要提示\n      </h4>\n      <ol>\n        <li>力扣一向非常重视竞赛的公平和公正。为保障每一位参赛者的权益,给大家带来更好的竞赛体验,营造健康积极的竞赛环境,我们对竞赛规则进行了更详细的约定和规范,点击 <a href=\\"https://support.leetcode.cn/hc/kb/article/1278066/\\" target=\\"_blank\\">查看全部</a>。\n        </li>\n        <li>请注意,每个错误提交的惩罚时间为 <b>5 分钟</b> 。</li>\n        <li>为保障竞赛的公平性,力扣将 在竞赛中隐藏部分用例。当参赛者在竞赛中提交未通过时,力扣不会显示给参赛者被隐藏的错误用例。</li> \n        <li>本场竞赛的最终排名会在竞赛结束后的 5 个工作日内确认。</li>\n        <li><b>竞赛中的违规行为:</b>\n          <ul>\n            <li>一人使用多账号提交(力扣「中文社区 LCCN」和「美国网站 LCUS」账号属于两个账号)</li>\n            <li>多账号提交雷同代码(抄袭)</li>\n            <li>使用不正当手段影响他人竞赛的</li>\n            <li>竞赛结束前在讨论区发布答案的</li>\n          </ul>\n          <p>\n            如有用户被检查出竞赛中存在违规行为,力扣会坚持以 🙅 零容忍 的态度维护竞赛的 ⚖️ 公平、公正,严格按照以下处罚规则执行:\n          </p>\n           <ul>\n            <li>第一次违规:❗️ 账号内的所有积分清零,账号冻结 1 个月</li>\n            <li>第二次违规:🚫 永久封号</li>\n          </ul>\n          <p>  同时我们也鼓励大家共同维护竞赛的公平和公正,我们会给于举报成功的用户额外的奖励:</p>\n          <ul>\n            <li>被认定为违规账号的前 10 名举报者,每人可获得 20 积分奖励</li>\n            <li>每人每场最高可获得举报成功的 100 积分奖励</li>\n          </ul>\n        </li>\n            <p>                另外,为了保证竞赛的公正、公平,请勿在竞赛结束前在讨论区发布、讨论可能会影响竞赛正常进行的内容,包括且不限于发布竞赛题答案、解题思路、方法、提醒注意等,社区管理员将有权根据实际情况予以警 告、删除、禁言、封禁其相应帐号的功能,情节严重者,将酌情封禁对应 IP。\n            </P>\n      </ol>\n      <br>\n      <br>\n      <h4 class=\\"text-300\\">\n        <i class=\\"fa fa-bullhorn\\" style=\\"color: #FEA116\\" aria-hidden=\\"true\\"></i>\n        &nbsp;通知\n      </h4>\n      <p>\n        您必须先\n        <b class=\\"text-orange\\">报名</b> 后方能参加该场竞赛。我们祝愿您参赛愉快!\n      </p>\n      <br>\n      \n      \n                <a href=\\"/circle/discuss/Gx4OWK/\\" target=\\"_blank\\">\n                  <img\n                      src=\\"https://assets.leetcode.cn/aliyun-lc-upload/contest-config/biweekly-contest-100/contest_detail/contest_to_discuss_image.png\\"\n                      style=\\"width:320px; border-radius: 10px; margin: 10px 0;\\"\n                  />\n                </a>\n            \n            \n    </div>\n    <div class=\\"col-sm-4 col-md-3\\">\n      <h3 class=\\"text-300\\">\n        <i class=\\"fa fa-trophy text-orange\\" aria-hidden=\\"true\\"></i>\n        &nbsp;竞赛奖励\n      </h3>\n      <ul class=\\"list-group\\" style=\\"margin-top: 20px\\">\n        <li class=\\"list-group-item\\">\n          <b>第一名</b>\n          <span>\n            5,000\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>第二名</b>\n          <span>\n            2,500\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>第三名</b>\n          <span>\n            1,500\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>4 - 10 名</b>\n          <span>\n            800\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n           
 </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>11 - 50 名</b>\n          <span>\n            300\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>51 - 100 名</b>\n          <span>\n            100\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>101 - 200 名</b>\n          <span>\n            50\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>重在参与奖励</b>\n          <span>\n            5\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>首次参加比赛并成功提交</b>\n          <span>\n            200\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>一周同时参加双周赛和周赛</b>\n          <span>\n            66\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n      </ul>\n      <h4 class=\\"text-300\\">\n        <i class=\\"fa fa-star text-yellow\\" aria-hidden=\\"true\\"></i>\n        &nbsp; 追加奖励 - 全球排名\n      </h4>\n      <ul class=\\"list-group\\" style=\\"margin-top: 20px\\">\n        <li class=\\"list-group-item\\">\n          <b>全球排名前 10</b>\n          <span>\n            500\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>全球排名 11 - 20</b>\n          <span>\n            300\n            <a href=\\"/points/\\" target=\\"_blank\\">\n              <img src=\\"https://static.leetcode-cn.com/cn-legacy-assets/images/LeetCoin.png\\" height=\\"15px\\" alt=\\"LeetCoin\\">\n            </a>\n          </span>\n        </li>\n        <li class=\\"list-group-item\\">\n          <b>全球排名 21 - 50</b>\n          <span>\n            100\n            <a href=\\"/"
2023/09/25 09:32:00 DEBU request method=POST url=https://leetcode.cn/graphql
  body=
  │ {"operationName":"","query":"\nquery globalData {\n  userStatus {\n    isSignedIn\n    username\n    realName\n    userSlug\n    avatar\n    activeSessionId\n\tisPremium\n  }\n}","variables":{}}

2023/09/25 09:32:01 DEBU response url=https://leetcode.cn/graphql code=200
  headers=
  │ Connection: keep-alive\r
  │ Content-Length: 246\r
  │ Content-Type: application/json\r
  data="{\"data\":{\"userStatus\":{\"isSignedIn\":true,\"username\":\"gaomany-5\",\"realName\":\"Gaomany\",\"userSlug\":\"gaomany-5\",\"avatar\":\"https://assets.leetcode.cn/aliyun-lc-upload/users/gaomany-5/avatar_1680171336.png\",\"activeSessionId\":2326004,\"isPremium\":true}}}"
2023/09/25 09:32:01 DEBU request method=GET url=https://leetcode.cn/contest/biweekly-contest-100/problems/distribute-money-to-maximum-children/ body=<empty>
2023/09/25 09:32:01 DEBU response url=https://leetcode.cn/contest/biweekly-contest-100/problems/distribute-money-to-maximum-children/ code=200
  headers=
  │ Connection: keep-alive\r
  │ Content-Encoding: gzip\r
  │ Content-Type: text/html; charset=utf-8\r

  data=
  │ <!DOCTYPE html>
  │ 
  │ 
  │ <html>
  │   <head>
  │     <meta charset="utf-8">
  │     <title>将钱分给最多的儿童 - 力扣 (LeetCode) 竞赛</title>
  │     <meta property="og:title" content="将钱分给最多的儿童 - 力扣 (LeetCode) 竞赛" />
  │ 
  │ 
  │     <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover' name='viewport' />
  │ 
  │     <meta name="description" content="备战技术面试?力扣提供海量技术面试资源,帮助你高效提升编程技能,轻松拿下世界 IT 名企 Dream Offer。" />
  │ 
  │     <meta name="keywords" content="力扣, 力扣中国, leetcode, lingkou, leetcode中国, leetcode官网, 在线编程, lc, leetcode题解, leetcode答案, 面经, 算法, 面试, 求 职, 招聘, 校招, 社招, 内推, 笔试, 面试题, 面试经验, 刷题, leetcode题库, 机器学习, 算法岗, 数据结构, 代码, 互联网, 编程, 开发, 程序员, 工程师, 白板面试, 码农, 程序猿, 领扣, 领扣网, 领扣网络, 领扣中国, BAT, BAT面试, OJ, online judge, coding interview, 技术面试, leetcode中文版, leetcodechina" />
  │ 
  │     <meta property="og:image" content="https://static.leetcode.cn/cn-legacy-assets/images/LeetCode_Sharing.png" />
  │     <meta property="og:description" content="备战技术面试?力扣提供海量技术面试资源,帮助你高效提升编程技能,轻松拿下世界 IT 名企 Dream Offer。" />
  │ 
  │ 
  │ 
  │     <link rel="apple-touch-icon" sizes="57x57" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-57x57.png" />
  │     <link rel="apple-touch-icon" sizes="60x60" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-60x60.png" />
  │     <link rel="apple-touch-icon" sizes="72x72" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-72x72.png" />
  │     <link rel="apple-touch-icon" sizes="76x76" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-76x76.png" />
  │     <link rel="apple-touch-icon" sizes="114x114" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-114x114.png" />
  │     <link rel="apple-touch-icon" sizes="120x120" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-120x120.png" />
  │     <link rel="apple-touch-icon" sizes="144x144" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-144x144.png" />
  │     <link rel="apple-touch-icon" sizes="152x152" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-152x152.png" />
  │     <link rel="apple-touch-icon" sizes="180x180" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-180x180.png" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-16x16.png" sizes="16x16" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-32x32.png" sizes="32x32" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-96x96.png" sizes="96x96" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-160x160.png" sizes="160x160" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-192x192.png" sizes="192x192" />
  │     <meta name="application-name" content="LeetCode"/>
  │     <meta name="msapplication-TileColor" content="#da532c" />
  │     <meta name="msapplication-TileImage" content="https://static.leetcode-cn.com/cn-assets/icons/mstile-144x144.png" />
  │ 
  │     <script>
  │ // avoid running analysis codes for prerender
  │ if (!/prerender/i.test(navigator.userAgent)) {
  │   // 百度统计
  │   var _hmt = _hmt || [];
  │   (function() {
  │     var hm = document.createElement("script");
  │     hm.src = "https://hm.baidu.com/hm.js?fa218a3ff7179639febdb15e372f411c";
  │     var s = document.getElementsByTagName("script")[0];
  │     s.parentNode.insertBefore(hm, s);
  │   })();
  │ 
  │   // Google Analytics
  │   (function() {
  │     var script = document.createElement("script");
  │     script.src = "https://www.googletagmanager.com/gtag/js?id=UA-131851415-1";
  │     var s = document.getElementsByTagName("script")[0];
  │     s.parentNode.insertBefore(script, s);
  │     script.onload = function() {
  │       window.dataLayer = window.dataLayer || [];
  │       function gtag(){dataLayer.push(arguments);}
  │       gtag('js', new Date());
  │ 
  │       gtag('config', 'UA-131851415-1');
  │     }
  │   })();
  │ }
  │ </script>
  │ 
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/bootstrap/dist/css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/bootstrap-table/dist/bootstrap-table.min.css" rel="stylesheet" />
  │ 
  │ 
  │ 
  │     <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.b83108464175.css" type="text/css">
  │ 
  │ 
  │       <link type="text/css" href="//g.alicdn.com/sd/ncpc/nc.css?t=202309250932" rel="stylesheet"/>
  │ 
  │ 
  │ 
  │ <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.111391214419.css" type="text/css">
  │ <style>
  │   .content-wrapper #base_content {
  │     position: static;
  │   }
  │   .question-content {
  │     overflow: auto;
  │   }
  │   .question-content img{
  │     max-width: 100%;
  │   }
  │ </style>
  │ 
  │ 
  │   <style>
  │     #base_content {
  │       margin-top: 20px;
  │       z-index: 0;
  │       position: relative;
  │     }
  │   </style>
  │   <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.2b6c5a5a71a1.css" type="text/css">
  │   <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/styles.eba6b4bc.css" />
  │ <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/noj-components.fb8cb001.css" />
  │ <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/main.ee7358f5.css" />
  │ 
  │ 
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/CACHE/js/output.0ff5509473f6.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery/dist/jquery.min.js?v=3.3.1"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery.cookie/jquery.cookie.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery-sticky/jquery.sticky.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/clipboard/dist/clipboard.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/sweetalert2/dist/sweetalert2.min.js"></script>
  │     <script>
  │       $(document).ready(function(){
  │         $('.sticky').sticky({topSpacing:0});
  │       });
  │ 
  │ 
  │ 
  │ 
  │       window.LeetCodeData = {
  │         features: {
  │           questionTranslation: true,
  │           subscription: true,
  │           signUp: true,
  │           chinaProblemDiscuss: true,
  │           enableSharedWorker: false,
  │           enableNewProblemsetBanner: true,
  │         },
  │         regionInfo: "CN",
  │ 
  │ 
  │       userStatus: {
  │         isSignedIn: false,
  │         optedIn: false,
  │         isPremium: false,
  │         isAdmin: false,
  │         isStaff: false,
  │         isTranslator: false,
  │         isSuperuser: false,
  │         request_region: 'CN',
  │         region: '',
  │         permissions: [],
  │         useTranslation: true,
  │         isCompanyUser: false,
  │       },
  │       chinaURL: "https://leetcode.cn",
  │       websocketUrl: "wss://sockets.leetcode.cn",
  │       navbar: {
  │ 
  │           loginSocial: [{"id": "weibo", "login_url": "/accounts/weibo/login/"}, {"id": "baidu", "login_url": "/accounts/baidu/login/"}, {"id": "github", "login_url": "/accounts/github/login/"}, {"id": "linkedin_oauth2", "login_url": "/accounts/linkedin_oauth2/login/"}, {"id": "weixin", "login_url": "/accounts/weixin/login/"}],
  │ 
  │         loginNext: undefined,
  │         subscription: true,
  │         mi: false,
  │         miNext: false,
  │         contest: true,
  │         discuss: true,
  │         store: true,
  │         book: true,
  │         translate: true,
  │         identity: "",
  │       },
  │ 
  │       };
  │     </script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/angular/angular.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery-ui-dist/jquery-ui.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/noty/lib/noty.min.js"></script>
  │     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  │     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  │     <!--[if lt IE 9]>
  │       <script src="https://static.leetcode.cn/cn-legacy-assets/html5shiv/dist/html5shiv.min.js"></script>
  │       <script src="https://static.leetcode.cn/cn-legacy-assets/respond.js/dest/respond.min.js"></script>
  │     <![endif]-->
  │ 
  │ 
  │   <script>
  │     $(document).ready(function() {
  │       var time_diff = new Date() - new Date(localStorage.getItem('region_switcher_last_close_ts'))
  │       if (time_diff > 86400000) {  // 86400000ms == 1day
  │         $("#region_switcher").removeClass('hide');
  │       }
  │     });
  │ 
  │     function openNavList() {
  │       var menu = $('#nav-menu-btn');
  │       var navbar = $('.navbar-collapse');
  │       if(!navbar.hasClass('collapsing')) {
  │         if(navbar.hasClass('in')) {
  │           menu.removeClass('open');
  │         } else {
  │           menu.addClass('open');
  │         }
  │       }
  │     };
  │ 
  │     function closeRegion() {
  │       $("#region_switcher").addClass('hide');
  │       localStorage.setItem('region_switcher_last_close_ts', new Date());
  │     }
  │   </script>
  │ 
  │     <style>
  │       html {
  │         font-size: revert;
  │       }
  │     </style>
  │   </head>
  │   <body>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/bootstrap/dist/js/bootstrap.min.js?v=3.3.7"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/bootstrap-table/dist/bootstrap-table.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/CACHE/js/output.9db0bff13b6e.js"></script>
  │ 
  │     <script type="text/javascript" src="https://static.leetcode-cn.com/cn-assets/webpack_bundles/runtime.88b558361.js" ></script>
  │     <script type="text/javascript" src="https://static.leetcode-cn.com/cn-assets/webpack_bundles/common/global.cc1497803.js" ></script>
  │     <sc
2023/09/25 09:32:01 INFO checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version"
2023/09/25 09:32:01 ERRO failed to generate question=distribute-money-to-maximum-children err="exit status 9009"
2023/09/25 09:32:01 DEBU request method=GET url=https://leetcode.cn/contest/biweekly-contest-100/problems/maximize-greatness-of-an-array/ body=<empty>
2023/09/25 09:32:02 DEBU response url=https://leetcode.cn/contest/biweekly-contest-100/problems/maximize-greatness-of-an-array/ code=200
  headers=
  │ Connection: keep-alive\r
  │ Content-Encoding: gzip\r
  │ Content-Type: text/html; charset=utf-8\r

  data=
  │ <!DOCTYPE html>
  │ 
  │ 
  │ <html>
  │   <head>
  │     <meta charset="utf-8">
  │     <title>最大化数组的伟大值 - 力扣 (LeetCode) 竞赛</title>
  │     <meta property="og:title" content="最大化数组的伟大值 - 力扣 (LeetCode) 竞赛" />
  │ 
  │ 
  │     <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover' name='viewport' />
  │ 
  │     <meta name="description" content="备战技术面试?力扣提供海量技术面试资源,帮助你高效提升编程技能,轻松拿下世界 IT 名企 Dream Offer。" />
  │ 
  │     <meta name="keywords" content="力扣, 力扣中国, leetcode, lingkou, leetcode中国, leetcode官网, 在线编程, lc, leetcode题解, leetcode答案, 面经, 算法, 面试, 求 职, 招聘, 校招, 社招, 内推, 笔试, 面试题, 面试经验, 刷题, leetcode题库, 机器学习, 算法岗, 数据结构, 代码, 互联网, 编程, 开发, 程序员, 工程师, 白板面试, 码农, 程序猿, 领扣, 领扣网, 领扣网络, 领扣中国, BAT, BAT面试, OJ, online judge, coding interview, 技术面试, leetcode中文版, leetcodechina" />
  │ 
  │     <meta property="og:image" content="https://static.leetcode.cn/cn-legacy-assets/images/LeetCode_Sharing.png" />
  │     <meta property="og:description" content="备战技术面试?力扣提供海量技术面试资源,帮助你高效提升编程技能,轻松拿下世界 IT 名企 Dream Offer。" />
  │ 
  │ 
  │ 
  │     <link rel="apple-touch-icon" sizes="57x57" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-57x57.png" />
  │     <link rel="apple-touch-icon" sizes="60x60" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-60x60.png" />
  │     <link rel="apple-touch-icon" sizes="72x72" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-72x72.png" />
  │     <link rel="apple-touch-icon" sizes="76x76" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-76x76.png" />
  │     <link rel="apple-touch-icon" sizes="114x114" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-114x114.png" />
  │     <link rel="apple-touch-icon" sizes="120x120" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-120x120.png" />
  │     <link rel="apple-touch-icon" sizes="144x144" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-144x144.png" />
  │     <link rel="apple-touch-icon" sizes="152x152" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-152x152.png" />
  │     <link rel="apple-touch-icon" sizes="180x180" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-180x180.png" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-16x16.png" sizes="16x16" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-32x32.png" sizes="32x32" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-96x96.png" sizes="96x96" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-160x160.png" sizes="160x160" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-192x192.png" sizes="192x192" />
  │     <meta name="application-name" content="LeetCode"/>
  │     <meta name="msapplication-TileColor" content="#da532c" />
  │     <meta name="msapplication-TileImage" content="https://static.leetcode-cn.com/cn-assets/icons/mstile-144x144.png" />
  │ 
  │     <script>
  │ // avoid running analysis codes for prerender
  │ if (!/prerender/i.test(navigator.userAgent)) {
  │   // 百度统计
  │   var _hmt = _hmt || [];
  │   (function() {
  │     var hm = document.createElement("script");
  │     hm.src = "https://hm.baidu.com/hm.js?fa218a3ff7179639febdb15e372f411c";
  │     var s = document.getElementsByTagName("script")[0];
  │     s.parentNode.insertBefore(hm, s);
  │   })();
  │ 
  │   // Google Analytics
  │   (function() {
  │     var script = document.createElement("script");
  │     script.src = "https://www.googletagmanager.com/gtag/js?id=UA-131851415-1";
  │     var s = document.getElementsByTagName("script")[0];
  │     s.parentNode.insertBefore(script, s);
  │     script.onload = function() {
  │       window.dataLayer = window.dataLayer || [];
  │       function gtag(){dataLayer.push(arguments);}
  │       gtag('js', new Date());
  │ 
  │       gtag('config', 'UA-131851415-1');
  │     }
  │   })();
  │ }
  │ </script>
  │ 
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/bootstrap/dist/css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/bootstrap-table/dist/bootstrap-table.min.css" rel="stylesheet" />
  │ 
  │ 
  │ 
  │     <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.b83108464175.css" type="text/css">
  │ 
  │ 
  │       <link type="text/css" href="//g.alicdn.com/sd/ncpc/nc.css?t=202309250932" rel="stylesheet"/>
  │ 
  │ 
  │ 
  │ <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.111391214419.css" type="text/css">
  │ <style>
  │   .content-wrapper #base_content {
  │     position: static;
  │   }
  │   .question-content {
  │     overflow: auto;
  │   }
  │   .question-content img{
  │     max-width: 100%;
  │   }
  │ </style>
  │ 
  │ 
  │   <style>
  │     #base_content {
  │       margin-top: 20px;
  │       z-index: 0;
  │       position: relative;
  │     }
  │   </style>
  │   <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.2b6c5a5a71a1.css" type="text/css">
  │   <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/styles.eba6b4bc.css" />
  │ <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/noj-components.fb8cb001.css" />
  │ <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/main.ee7358f5.css" />
  │ 
  │ 
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/CACHE/js/output.0ff5509473f6.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery/dist/jquery.min.js?v=3.3.1"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery.cookie/jquery.cookie.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery-sticky/jquery.sticky.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/clipboard/dist/clipboard.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/sweetalert2/dist/sweetalert2.min.js"></script>
  │     <script>
  │       $(document).ready(function(){
  │         $('.sticky').sticky({topSpacing:0});
  │       });
  │ 
  │ 
  │ 
  │ 
  │       window.LeetCodeData = {
  │         features: {
  │           questionTranslation: true,
  │           subscription: true,
  │           signUp: true,
  │           chinaProblemDiscuss: true,
  │           enableSharedWorker: false,
  │           enableNewProblemsetBanner: true,
  │         },
  │         regionInfo: "CN",
  │ 
  │ 
  │       userStatus: {
  │         isSignedIn: false,
  │         optedIn: false,
  │         isPremium: false,
  │         isAdmin: false,
  │         isStaff: false,
  │         isTranslator: false,
  │         isSuperuser: false,
  │         request_region: 'CN',
  │         region: '',
  │         permissions: [],
  │         useTranslation: true,
  │         isCompanyUser: false,
  │       },
  │       chinaURL: "https://leetcode.cn",
  │       websocketUrl: "wss://sockets.leetcode.cn",
  │       navbar: {
  │ 
  │           loginSocial: [{"id": "weibo", "login_url": "/accounts/weibo/login/"}, {"id": "baidu", "login_url": "/accounts/baidu/login/"}, {"id": "github", "login_url": "/accounts/github/login/"}, {"id": "linkedin_oauth2", "login_url": "/accounts/linkedin_oauth2/login/"}, {"id": "weixin", "login_url": "/accounts/weixin/login/"}],
  │ 
  │         loginNext: undefined,
  │         subscription: true,
  │         mi: false,
  │         miNext: false,
  │         contest: true,
  │         discuss: true,
  │         store: true,
  │         book: true,
  │         translate: true,
  │         identity: "",
  │       },
  │ 
  │       };
  │     </script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/angular/angular.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery-ui-dist/jquery-ui.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/noty/lib/noty.min.js"></script>
  │     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  │     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  │     <!--[if lt IE 9]>
  │       <script src="https://static.leetcode.cn/cn-legacy-assets/html5shiv/dist/html5shiv.min.js"></script>
  │       <script src="https://static.leetcode.cn/cn-legacy-assets/respond.js/dest/respond.min.js"></script>
  │     <![endif]-->
  │ 
  │ 
  │   <script>
  │     $(document).ready(function() {
  │       var time_diff = new Date() - new Date(localStorage.getItem('region_switcher_last_close_ts'))
  │       if (time_diff > 86400000) {  // 86400000ms == 1day
  │         $("#region_switcher").removeClass('hide');
  │       }
  │     });
  │ 
  │     function openNavList() {
  │       var menu = $('#nav-menu-btn');
  │       var navbar = $('.navbar-collapse');
  │       if(!navbar.hasClass('collapsing')) {
  │         if(navbar.hasClass('in')) {
  │           menu.removeClass('open');
  │         } else {
  │           menu.addClass('open');
  │         }
  │       }
  │     };
  │ 
  │     function closeRegion() {
  │       $("#region_switcher").addClass('hide');
  │       localStorage.setItem('region_switcher_last_close_ts', new Date());
  │     }
  │   </script>
  │ 
  │     <style>
  │       html {
  │         font-size: revert;
  │       }
  │     </style>
  │   </head>
  │   <body>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/bootstrap/dist/js/bootstrap.min.js?v=3.3.7"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/bootstrap-table/dist/bootstrap-table.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/CACHE/js/output.9db0bff13b6e.js"></script>
  │ 
  │     <script type="text/javascript" src="https://static.leetcode-cn.com/cn-assets/webpack_bundles/runtime.88b558361.js" ></script>
  │     <script type="text/javascript" src="https://static.leetcode-cn.com/cn-assets/webpack_bundles/common/global.cc1497803.js" ></script>
  │     <sc
2023/09/25 09:32:02 INFO checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version"
2023/09/25 09:32:02 ERRO failed to generate question=maximize-greatness-of-an-array err="exit status 9009"
2023/09/25 09:32:02 DEBU request method=GET url=https://leetcode.cn/contest/biweekly-contest-100/problems/find-score-of-an-array-after-marking-all-elements/ body=<empty>
2023/09/25 09:32:02 DEBU response url=https://leetcode.cn/contest/biweekly-contest-100/problems/find-score-of-an-array-after-marking-all-elements/ code=200
  headers=
  │ Connection: keep-alive\r
  │ Content-Encoding: gzip\r
  │ Content-Type: text/html; charset=utf-8\r

  data=
  │ <!DOCTYPE html>
  │ 
  │ 
  │ <html>
  │   <head>
  │     <meta charset="utf-8">
  │     <title>标记所有元素后数组的分数 - 力扣 (LeetCode) 竞赛</title>
  │     <meta property="og:title" content="标记所有元素后数组的分数 - 力扣 (LeetCode) 竞赛" />
  │ 
  │ 
  │     <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover' name='viewport' />
  │ 
  │     <meta name="description" content="备战技术面试?力扣提供海量技术面试资源,帮助你高效提升编程技能,轻松拿下世界 IT 名企 Dream Offer。" />
  │ 
  │     <meta name="keywords" content="力扣, 力扣中国, leetcode, lingkou, leetcode中国, leetcode官网, 在线编程, lc, leetcode题解, leetcode答案, 面经, 算法, 面试, 求 职, 招聘, 校招, 社招, 内推, 笔试, 面试题, 面试经验, 刷题, leetcode题库, 机器学习, 算法岗, 数据结构, 代码, 互联网, 编程, 开发, 程序员, 工程师, 白板面试, 码农, 程序猿, 领扣, 领扣网, 领扣网络, 领扣中国, BAT, BAT面试, OJ, online judge, coding interview, 技术面试, leetcode中文版, leetcodechina" />
  │ 
  │     <meta property="og:image" content="https://static.leetcode.cn/cn-legacy-assets/images/LeetCode_Sharing.png" />
  │     <meta property="og:description" content="备战技术面试?力扣提供海量技术面试资源,帮助你高效提升编程技能,轻松拿下世界 IT 名企 Dream Offer。" />
  │ 
  │ 
  │ 
  │     <link rel="apple-touch-icon" sizes="57x57" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-57x57.png" />
  │     <link rel="apple-touch-icon" sizes="60x60" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-60x60.png" />
  │     <link rel="apple-touch-icon" sizes="72x72" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-72x72.png" />
  │     <link rel="apple-touch-icon" sizes="76x76" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-76x76.png" />
  │     <link rel="apple-touch-icon" sizes="114x114" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-114x114.png" />
  │     <link rel="apple-touch-icon" sizes="120x120" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-120x120.png" />
  │     <link rel="apple-touch-icon" sizes="144x144" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-144x144.png" />
  │     <link rel="apple-touch-icon" sizes="152x152" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-152x152.png" />
  │     <link rel="apple-touch-icon" sizes="180x180" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-180x180.png" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-16x16.png" sizes="16x16" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-32x32.png" sizes="32x32" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-96x96.png" sizes="96x96" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-160x160.png" sizes="160x160" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-192x192.png" sizes="192x192" />
  │     <meta name="application-name" content="LeetCode"/>
  │     <meta name="msapplication-TileColor" content="#da532c" />
  │     <meta name="msapplication-TileImage" content="https://static.leetcode-cn.com/cn-assets/icons/mstile-144x144.png" />
  │ 
  │     <script>
  │ // avoid running analysis codes for prerender
  │ if (!/prerender/i.test(navigator.userAgent)) {
  │   // 百度统计
  │   var _hmt = _hmt || [];
  │   (function() {
  │     var hm = document.createElement("script");
  │     hm.src = "https://hm.baidu.com/hm.js?fa218a3ff7179639febdb15e372f411c";
  │     var s = document.getElementsByTagName("script")[0];
  │     s.parentNode.insertBefore(hm, s);
  │   })();
  │ 
  │   // Google Analytics
  │   (function() {
  │     var script = document.createElement("script");
  │     script.src = "https://www.googletagmanager.com/gtag/js?id=UA-131851415-1";
  │     var s = document.getElementsByTagName("script")[0];
  │     s.parentNode.insertBefore(script, s);
  │     script.onload = function() {
  │       window.dataLayer = window.dataLayer || [];
  │       function gtag(){dataLayer.push(arguments);}
  │       gtag('js', new Date());
  │ 
  │       gtag('config', 'UA-131851415-1');
  │     }
  │   })();
  │ }
  │ </script>
  │ 
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/bootstrap/dist/css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/bootstrap-table/dist/bootstrap-table.min.css" rel="stylesheet" />
  │ 
  │ 
  │ 
  │     <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.b83108464175.css" type="text/css">
  │ 
  │ 
  │       <link type="text/css" href="//g.alicdn.com/sd/ncpc/nc.css?t=202309250932" rel="stylesheet"/>
  │ 
  │ 
  │ 
  │ <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.111391214419.css" type="text/css">
  │ <style>
  │   .content-wrapper #base_content {
  │     position: static;
  │   }
  │   .question-content {
  │     overflow: auto;
  │   }
  │   .question-content img{
  │     max-width: 100%;
  │   }
  │ </style>
  │ 
  │ 
  │   <style>
  │     #base_content {
  │       margin-top: 20px;
  │       z-index: 0;
  │       position: relative;
  │     }
  │   </style>
  │   <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.2b6c5a5a71a1.css" type="text/css">
  │   <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/styles.eba6b4bc.css" />
  │ <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/noj-components.fb8cb001.css" />
  │ <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/main.ee7358f5.css" />
  │ 
  │ 
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/CACHE/js/output.0ff5509473f6.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery/dist/jquery.min.js?v=3.3.1"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery.cookie/jquery.cookie.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery-sticky/jquery.sticky.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/clipboard/dist/clipboard.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/sweetalert2/dist/sweetalert2.min.js"></script>
  │     <script>
  │       $(document).ready(function(){
  │         $('.sticky').sticky({topSpacing:0});
  │       });
  │ 
  │ 
  │ 
  │ 
  │       window.LeetCodeData = {
  │         features: {
  │           questionTranslation: true,
  │           subscription: true,
  │           signUp: true,
  │           chinaProblemDiscuss: true,
  │           enableSharedWorker: false,
  │           enableNewProblemsetBanner: true,
  │         },
  │         regionInfo: "CN",
  │ 
  │ 
  │       userStatus: {
  │         isSignedIn: false,
  │         optedIn: false,
  │         isPremium: false,
  │         isAdmin: false,
  │         isStaff: false,
  │         isTranslator: false,
  │         isSuperuser: false,
  │         request_region: 'CN',
  │         region: '',
  │         permissions: [],
  │         useTranslation: true,
  │         isCompanyUser: false,
  │       },
  │       chinaURL: "https://leetcode.cn",
  │       websocketUrl: "wss://sockets.leetcode.cn",
  │       navbar: {
  │ 
  │           loginSocial: [{"id": "weibo", "login_url": "/accounts/weibo/login/"}, {"id": "baidu", "login_url": "/accounts/baidu/login/"}, {"id": "github", "login_url": "/accounts/github/login/"}, {"id": "linkedin_oauth2", "login_url": "/accounts/linkedin_oauth2/login/"}, {"id": "weixin", "login_url": "/accounts/weixin/login/"}],
  │ 
  │         loginNext: undefined,
  │         subscription: true,
  │         mi: false,
  │         miNext: false,
  │         contest: true,
  │         discuss: true,
  │         store: true,
  │         book: true,
  │         translate: true,
  │         identity: "",
  │       },
  │ 
  │       };
  │     </script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/angular/angular.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery-ui-dist/jquery-ui.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/noty/lib/noty.min.js"></script>
  │     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  │     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  │     <!--[if lt IE 9]>
  │       <script src="https://static.leetcode.cn/cn-legacy-assets/html5shiv/dist/html5shiv.min.js"></script>
  │       <script src="https://static.leetcode.cn/cn-legacy-assets/respond.js/dest/respond.min.js"></script>
  │     <![endif]-->
  │ 
  │ 
  │   <script>
  │     $(document).ready(function() {
  │       var time_diff = new Date() - new Date(localStorage.getItem('region_switcher_last_close_ts'))
  │       if (time_diff > 86400000) {  // 86400000ms == 1day
  │         $("#region_switcher").removeClass('hide');
  │       }
  │     });
  │ 
  │     function openNavList() {
  │       var menu = $('#nav-menu-btn');
  │       var navbar = $('.navbar-collapse');
  │       if(!navbar.hasClass('collapsing')) {
  │         if(navbar.hasClass('in')) {
  │           menu.removeClass('open');
  │         } else {
  │           menu.addClass('open');
  │         }
  │       }
  │     };
  │ 
  │     function closeRegion() {
  │       $("#region_switcher").addClass('hide');
  │       localStorage.setItem('region_switcher_last_close_ts', new Date());
  │     }
  │   </script>
  │ 
  │     <style>
  │       html {
  │         font-size: revert;
  │       }
  │     </style>
  │   </head>
  │   <body>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/bootstrap/dist/js/bootstrap.min.js?v=3.3.7"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/bootstrap-table/dist/bootstrap-table.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/CACHE/js/output.9db0bff13b6e.js"></script>
  │ 
  │     <script type="text/javascript" src="https://static.leetcode-cn.com/cn-assets/webpack_bundles/runtime.88b558361.js" ></script>
  │     <script type="text/javascript" src="https://static.leetcode-cn.com/cn-assets/webpack_bundles/common/global.cc1497803.js"
2023/09/25 09:32:02 INFO checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version"
2023/09/25 09:32:02 ERRO failed to generate question=find-score-of-an-array-after-marking-all-elements err="exit status 9009"
2023/09/25 09:32:02 DEBU request method=GET url=https://leetcode.cn/contest/biweekly-contest-100/problems/minimum-time-to-repair-cars/ body=<empty>
2023/09/25 09:32:03 DEBU response url=https://leetcode.cn/contest/biweekly-contest-100/problems/minimum-time-to-repair-cars/ code=200
  headers=
  │ Connection: keep-alive\r
  │ Content-Encoding: gzip\r
  │ Content-Type: text/html; charset=utf-8\r

  data=
  │ <!DOCTYPE html>
  │ 
  │ 
  │ <html>
  │   <head>
  │     <meta charset="utf-8">
  │     <title>修车的最少时间 - 力扣 (LeetCode) 竞赛</title>
  │     <meta property="og:title" content="修车的最少时间 - 力扣 (LeetCode) 竞赛" />
  │ 
  │ 
  │     <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover' name='viewport' />
  │ 
  │     <meta name="description" content="备战技术面试?力扣提供海量技术面试资源,帮助你高效提升编程技能,轻松拿下世界 IT 名企 Dream Offer。" />
  │ 
  │     <meta name="keywords" content="力扣, 力扣中国, leetcode, lingkou, leetcode中国, leetcode官网, 在线编程, lc, leetcode题解, leetcode答案, 面经, 算法, 面试, 求 职, 招聘, 校招, 社招, 内推, 笔试, 面试题, 面试经验, 刷题, leetcode题库, 机器学习, 算法岗, 数据结构, 代码, 互联网, 编程, 开发, 程序员, 工程师, 白板面试, 码农, 程序猿, 领扣, 领扣网, 领扣网络, 领扣中国, BAT, BAT面试, OJ, online judge, coding interview, 技术面试, leetcode中文版, leetcodechina" />
  │ 
  │     <meta property="og:image" content="https://static.leetcode.cn/cn-legacy-assets/images/LeetCode_Sharing.png" />
  │     <meta property="og:description" content="备战技术面试?力扣提供海量技术面试资源,帮助你高效提升编程技能,轻松拿下世界 IT 名企 Dream Offer。" />
  │ 
  │ 
  │ 
  │     <link rel="apple-touch-icon" sizes="57x57" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-57x57.png" />
  │     <link rel="apple-touch-icon" sizes="60x60" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-60x60.png" />
  │     <link rel="apple-touch-icon" sizes="72x72" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-72x72.png" />
  │     <link rel="apple-touch-icon" sizes="76x76" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-76x76.png" />
  │     <link rel="apple-touch-icon" sizes="114x114" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-114x114.png" />
  │     <link rel="apple-touch-icon" sizes="120x120" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-120x120.png" />
  │     <link rel="apple-touch-icon" sizes="144x144" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-144x144.png" />
  │     <link rel="apple-touch-icon" sizes="152x152" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-152x152.png" />
  │     <link rel="apple-touch-icon" sizes="180x180" href="https://static.leetcode-cn.com/cn-assets/icons/apple-touch-icon-180x180.png" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-16x16.png" sizes="16x16" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-32x32.png" sizes="32x32" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-96x96.png" sizes="96x96" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-160x160.png" sizes="160x160" />
  │     <link rel="icon" type="image/png" href="https://static.leetcode-cn.com/cn-assets/icons/favicon-192x192.png" sizes="192x192" />
  │     <meta name="application-name" content="LeetCode"/>
  │     <meta name="msapplication-TileColor" content="#da532c" />
  │     <meta name="msapplication-TileImage" content="https://static.leetcode-cn.com/cn-assets/icons/mstile-144x144.png" />
  │ 
  │     <script>
  │ // avoid running analysis codes for prerender
  │ if (!/prerender/i.test(navigator.userAgent)) {
  │   // 百度统计
  │   var _hmt = _hmt || [];
  │   (function() {
  │     var hm = document.createElement("script");
  │     hm.src = "https://hm.baidu.com/hm.js?fa218a3ff7179639febdb15e372f411c";
  │     var s = document.getElementsByTagName("script")[0];
  │     s.parentNode.insertBefore(hm, s);
  │   })();
  │ 
  │   // Google Analytics
  │   (function() {
  │     var script = document.createElement("script");
  │     script.src = "https://www.googletagmanager.com/gtag/js?id=UA-131851415-1";
  │     var s = document.getElementsByTagName("script")[0];
  │     s.parentNode.insertBefore(script, s);
  │     script.onload = function() {
  │       window.dataLayer = window.dataLayer || [];
  │       function gtag(){dataLayer.push(arguments);}
  │       gtag('js', new Date());
  │ 
  │       gtag('config', 'UA-131851415-1');
  │     }
  │   })();
  │ }
  │ </script>
  │ 
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/bootstrap/dist/css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  │     <link href="https://static.leetcode.cn/cn-legacy-assets/bootstrap-table/dist/bootstrap-table.min.css" rel="stylesheet" />
  │ 
  │ 
  │ 
  │     <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.b83108464175.css" type="text/css">
  │ 
  │ 
  │       <link type="text/css" href="//g.alicdn.com/sd/ncpc/nc.css?t=202309250932" rel="stylesheet"/>
  │ 
  │ 
  │ 
  │ <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.111391214419.css" type="text/css">
  │ <style>
  │   .content-wrapper #base_content {
  │     position: static;
  │   }
  │   .question-content {
  │     overflow: auto;
  │   }
  │   .question-content img{
  │     max-width: 100%;
  │   }
  │ </style>
  │ 
  │ 
  │   <style>
  │     #base_content {
  │       margin-top: 20px;
  │       z-index: 0;
  │       position: relative;
  │     }
  │   </style>
  │   <link rel="stylesheet" href="https://static.leetcode.cn/cn-legacy-assets/CACHE/css/output.2b6c5a5a71a1.css" type="text/css">
  │   <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/styles.eba6b4bc.css" />
  │ <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/noj-components.fb8cb001.css" />
  │ <link rel="stylesheet" type="text/css" href="https://static.leetcode.cn/cn-mono-assets/production/head/main.ee7358f5.css" />
  │ 
  │ 
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/CACHE/js/output.0ff5509473f6.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery/dist/jquery.min.js?v=3.3.1"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery.cookie/jquery.cookie.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery-sticky/jquery.sticky.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/clipboard/dist/clipboard.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/sweetalert2/dist/sweetalert2.min.js"></script>
  │     <script>
  │       $(document).ready(function(){
  │         $('.sticky').sticky({topSpacing:0});
  │       });
  │ 
  │ 
  │ 
  │ 
  │       window.LeetCodeData = {
  │         features: {
  │           questionTranslation: true,
  │           subscription: true,
  │           signUp: true,
  │           chinaProblemDiscuss: true,
  │           enableSharedWorker: false,
  │           enableNewProblemsetBanner: true,
  │         },
  │         regionInfo: "CN",
  │ 
  │ 
  │       userStatus: {
  │         isSignedIn: false,
  │         optedIn: false,
  │         isPremium: false,
  │         isAdmin: false,
  │         isStaff: false,
  │         isTranslator: false,
  │         isSuperuser: false,
  │         request_region: 'CN',
  │         region: '',
  │         permissions: [],
  │         useTranslation: true,
  │         isCompanyUser: false,
  │       },
  │       chinaURL: "https://leetcode.cn",
  │       websocketUrl: "wss://sockets.leetcode.cn",
  │       navbar: {
  │ 
  │           loginSocial: [{"id": "weibo", "login_url": "/accounts/weibo/login/"}, {"id": "baidu", "login_url": "/accounts/baidu/login/"}, {"id": "github", "login_url": "/accounts/github/login/"}, {"id": "linkedin_oauth2", "login_url": "/accounts/linkedin_oauth2/login/"}, {"id": "weixin", "login_url": "/accounts/weixin/login/"}],
  │ 
  │         loginNext: undefined,
  │         subscription: true,
  │         mi: false,
  │         miNext: false,
  │         contest: true,
  │         discuss: true,
  │         store: true,
  │         book: true,
  │         translate: true,
  │         identity: "",
  │       },
  │ 
  │       };
  │     </script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/angular/angular.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/jquery-ui-dist/jquery-ui.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/noty/lib/noty.min.js"></script>
  │     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  │     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  │     <!--[if lt IE 9]>
  │       <script src="https://static.leetcode.cn/cn-legacy-assets/html5shiv/dist/html5shiv.min.js"></script>
  │       <script src="https://static.leetcode.cn/cn-legacy-assets/respond.js/dest/respond.min.js"></script>
  │     <![endif]-->
  │ 
  │ 
  │   <script>
  │     $(document).ready(function() {
  │       var time_diff = new Date() - new Date(localStorage.getItem('region_switcher_last_close_ts'))
  │       if (time_diff > 86400000) {  // 86400000ms == 1day
  │         $("#region_switcher").removeClass('hide');
  │       }
  │     });
  │ 
  │     function openNavList() {
  │       var menu = $('#nav-menu-btn');
  │       var navbar = $('.navbar-collapse');
  │       if(!navbar.hasClass('collapsing')) {
  │         if(navbar.hasClass('in')) {
  │           menu.removeClass('open');
  │         } else {
  │           menu.addClass('open');
  │         }
  │       }
  │     };
  │ 
  │     function closeRegion() {
  │       $("#region_switcher").addClass('hide');
  │       localStorage.setItem('region_switcher_last_close_ts', new Date());
  │     }
  │   </script>
  │ 
  │     <style>
  │       html {
  │         font-size: revert;
  │       }
  │     </style>
  │   </head>
  │   <body>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/bootstrap/dist/js/bootstrap.min.js?v=3.3.7"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/bootstrap-table/dist/bootstrap-table.min.js"></script>
  │     <script src="https://static.leetcode.cn/cn-legacy-assets/CACHE/js/output.9db0bff13b6e.js"></script>
  │ 
  │     <script type="text/javascript" src="https://static.leetcode-cn.com/cn-assets/webpack_bundles/runtime.88b558361.js" ></script>
  │     <script type="text/javascript" src="https://static.leetcode-cn.com/cn-assets/webpack_bundles/common/global.cc1497803.js" ></script>
  │     <script type="t
2023/09/25 09:32:03 INFO checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version"
2023/09/25 09:32:03 ERRO failed to generate question=minimum-time-to-repair-cars err="exit status 9009"
2023/09/25 09:32:03 FATA no question generated

Description

I tried LeetGo and found that the "pick" command works successfully for generating individual questions, but I encountered an error when attempting to use the "contest" command to generate questions for a weekly contest. 我尝试了leetgo,发现用pick命令生成单个题目的命令可以成功,但是使用contest 命令生成周赛题目的时候会报错。

j178 commented 1 year ago

这个是因为 python 这个命令解析到了 C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe,但这个只是 Windows 商店的占位符,会跳转到 windows 商店的 python 安装页面,并不是实际的 python 程序。

解决方式有几种:

  1. 自行安装 Python (通过 python installer, scoop, winget 等方式),然后在 leetgo.yaml 中设置 code.python.executable 为实际的 python.exe 路径。
  2. 关掉 python.exe 和 python3.exe 的应用执行别名,参考 https://www.jianshu.com/p/a5c5148b7434

一些相关链接:

ShellRedia commented 1 year ago

问题解决了,感谢作者

Gaomany @.***

 

------------------ 原始邮件 ------------------ 发件人: "j178/leetgo" @.>; 发送时间: 2023年9月25日(星期一) 中午11:59 @.>; @.**@.>; 主题: Re: [j178/leetgo] [Bug] contest questions generation (Issue #226)

这个是因为 python 这个命令解析到了 C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe,但这个只是 Windows 商店的占位符,会跳转到 windows 商店的 python 安装页面,并不是实际的 python 程序。

解决方式有几种:

自行安装 Python (通过 python installer, scoop, winget 等方式),然后在 leetgo.yaml 中设置 code.python.executable 为实际的 python.exe 路径。

关掉 python.exe 和 python3.exe 的应用执行别名,参考 https://www.jianshu.com/p/a5c5148b7434

一些相关链接:

https://blog.csdn.net/XiaohuihuiHuiYi/article/details/132223029

https://www.jianshu.com/p/a5c5148b7434

https://vocus.cc/article/64030b66fd89780001dfced7

AUTOMATIC1111/stable-diffusion-webui#1423

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>