Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2ykwang/baekjoon-solver
백준 문제 자동 채점 도구
https://github.com/2ykwang/baekjoon-solver
Last synced: 23 days ago
JSON representation
백준 문제 자동 채점 도구
- Host: GitHub
- URL: https://github.com/2ykwang/baekjoon-solver
- Owner: 2ykwang
- Created: 2022-06-25T05:08:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-25T09:45:40.000Z (over 2 years ago)
- Last Synced: 2024-10-12T16:53:22.627Z (24 days ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## baekjoon-solver
백준 채점 도구
### Installation
```shell
$ pip install baekjoon_solver
```### Usage
- `solve -p `
```shell
# ex)
$ solve test.py -p 11403테스트 케이스 1
============================= 통과 0.024250507354736328s =============================
테스트 케이스 2
============================= 통과 0.02342987060546875s =============================
```- `solve `
파일내용 상단에 문제 번호를 명시해야 함
```
test1.py# problem: 1111 or
# 1111
``````shell
# ex)
$ solve solve test1.py테스트 케이스 1
> 실행 값:
6
0
> 예상 값:
3
0
============================= 실패 0.015842199325561523s =============================
```### vscode integration
- Command palette (shift + ctrl + p) 열기
- Tasks: Configure Task 선택
- 아래 내용 입력```json
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Solver",
"type": "shell",
"command": "solve",
"args": [
"\"${file}\""
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"showReuseMessage": false,
"clear": true,
"revealProblems": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
```- shift + ctrl + b 를 눌러 사용