Skip to content

Result page not get rendered correctly #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zerofancy opened this issue Sep 20, 2019 · 2 comments
Closed

Result page not get rendered correctly #427

zerofancy opened this issue Sep 20, 2019 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@zerofancy
Copy link

🐛 Bug Report

ubuntu中不正确的提交(测试)显示结果很奇怪,有对号标记。

✔ Finished
  ✔ Your Input: [1,2,0]
  ✔ Output (0 ms): 1
  ✔ Expected (12 ms): 3
  ✔ Stdout:

To Reproduce

ubuntu,leetcode-cn41.,node版本v12.10.0,下面的这段代码:

/*
 * @lc app=leetcode.cn id=41 lang=java
 *
 * [41] 缺失的第一个正数
 */
class Solution {
    public int firstMissingPositive(int[] nums) {
        for (int i = 0; i < nums.length; i++) {
            if(nums[i]>nums.length||nums[i]<=0){
                nums[i]=2*nums.length+1;
            }
        }
        for(int i=0;i<nums.length;i++){
            int tmpNum=nums[i];
            if(tmpNum>2*nums.length){
                continue;
            }
            if(tmpNum>nums.length&&tmpNum<=2*nums.length){
                tmpNum-=nums.length;
            }
            tmpNum--;
            if(nums[tmpNum]<=nums.length){
                nums[tmpNum]+=nums.length;
            }else{
                nums[tmpNum]=nums.length+2;
            }
        }
        for(int i=0;i<nums.length;i++){
            if(nums[i]<=nums.length||nums[i]==nums.length+1){
                return i+1;
            }
        }
        return nums.length+1;
    }
}

Expected behavior

✔ Finished
  ✔ Your Input: [1,2,0]
  x Output (0 ms): 1
  ✔ Expected (12 ms): 3
  ✔ Stdout:

Extension Output

- Sending code to judge
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
  ✔ Finished
  ✔ Your Input: [1,2,0]
  ✔ Output (0 ms): 1
  ✔ Expected (12 ms): 3
  ✔ Stdout: 
- Waiting session result
 Active    Id               Name                 AC Questions       AC Submits
--------------------------------------------------------------------------------
   ✔     592273   Anonymous Session              40 ( 97.56 %)     72 ( 41.38 %)

Your Environment

  • os: ubuntu
  • extension settings:
{
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "files.exclude": {
        "**/.classpath": true,
        "**/.project": true,
        "**/.settings": true,
        "**/.factorypath": true
    },
    "editor.mouseWheelZoom": true,
    "java.jdt.ls.vmargs": "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication -javaagent:\"/home/zero/.vscode/extensions/gabrielbb.vscode-lombok-0.9.9/server/lombok.jar\"",
    "workbench.iconTheme": "vscode-icons",
    "workbench.colorTheme": "Default Light+",
    "terminal.integrated.fontFamily": "monospace",
    "editor.fontFamily": "'Droid Sans Mono', 'Source Code Variable Italic', 'Source Code Variable', WenQuanYi Micro Hei Mono, 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei'",
    "leetcode.endpoint": "leetcode-cn",
    "leetcode.hint.configWebviewMarkdown": false,
    "leetcode.workspaceFolder": "/home/zero/.leetcode",
    "leetcode.defaultLanguage": "java",
    "latex-workshop.message.update.show": false,
    "spring.initializr.defaultLanguage": "Java",
    "spring.initializr.defaultGroupId": "top.ntutn",
    "explorer.confirmDelete": false,
    "leetcode.hint.commentDescription": false,
    "leetcode.hint.commandShortcut": false
}
  • nodejs version: v12.10.0
  • vscode version: 1.38.1
  • extension version: 0.15.4
@bethandtownes
Copy link

这个插件好像抓结果有点问题

@jdneo
Copy link
Member

jdneo commented Sep 22, 2019

This should be fixed by #398

@jdneo jdneo added this to the 0.15.5 milestone Sep 22, 2019
@jdneo jdneo added the bug Something isn't working label Sep 22, 2019
@jdneo jdneo changed the title ubuntu中提交结果显示问题 Result page not get rendered correctly Sep 22, 2019
@jdneo jdneo closed this as completed Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants