GithubHelp home page GithubHelp logo

pat's Introduction

PAT(Programming Ability Test)

Site
Problem Sets
More Answer

Developing Environment

Editor: Visual Studio Code

One key(F5) compile and run C/C++、Python、Java Keybinding:

[
    {"key": "f5","command": "workbench.action.tasks.runTask","args": "C/C++" },
    { "key": "f5","command": "workbench.action.tasks.runTask","args":"Python", "when":"resourceExtname == .py"},
    { "key": "f5","command": "workbench.action.tasks.runTask","args":"Java", "when":"resourceExtname == .java"},
    
    { "key": "f7","command": "workbench.action.tasks.runTask"}
]

tasks:

{
    "version": "0.1.0",
    "tasks": [
        {
            "taskName": "C/C++",
            "command": "",
            "isShellCommand": false,
            "showOutput": "always",
            "echoCommand": false,
            "suppressTaskName": false,
            "args": [
                "g++ -g -Wall \"${file}\" -o \"${file}.exe\" -std=c++14 -O2 && \"${file}.exe\" <in.txt && del /Q \"${file}.exe\""
            ],
            "problemMatcher": {
                "owner": "cpp",
                "fileLocation": [
                    "relative",
                    "/"
                ],
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "message": 5
                }
            }
        },
        {
            "taskName": "Python",
            "command": "",
            "isShellCommand": true,
            "showOutput": "always",
            "echoCommand": false,
            "suppressTaskName": false,
            "args": [
                "python \"${file}\"<in.txt",
            ],
            "problemMatcher": []
        },
        {
            "taskName": "Java",
            "command": "",
            "isShellCommand": true,
            "showOutput": "always",
            "echoCommand": false,
            "suppressTaskName": false,
            "args": [
                "javac \"${file}\" && java -classpath \"${fileDirname}\" Main <in.txt && del /Q \"${fileDirname}\\Main.class\""
            ],
            "problemMatcher": {
                "owner": "java",
                "fileLocation": [
                    "relative",
                    "/"
                ],
                "pattern": {
                    "regexp": "^(.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
                    "file": 1,
                    "line": 2,
                    "severity": 3,
                    "message": 4
                }
            }
        }
    ]
}

pat's People

Contributors

ohyee avatar

Stargazers

 avatar SHN avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.