xvzc / boj-cli Goto Github PK
View Code? Open in Web Editor NEW백준 온라인저지 커맨드라인 인터페이스
License: MIT License
백준 온라인저지 커맨드라인 인터페이스
License: MIT License
안녕하세요,
먼저 PS를 윤택하게 만들어 줄 유용한 툴을 개발해주심에 감사드립니다!
macOS에서 프로그램을 사용 중 한 가지 문제가 있어 제보합니다.
아래 첨부한 이미지와 같이 macOS에서 텍스트가 포함된 예제를 boj init
할 경우 CRLF가 포함된 테스트 케이스 파일이 생성되는데,
이를 boj run
하면 오답으로 인식하는 문제가 있습니다. 같은 코드를 boj submit
할 경우 AC를 받습니다.
테스트 케이스 파일의 CRLF를 LF로 바꾸어주고 boj run
을 돌리면 PASSED가 출력되는 것을 확인하였습니다.
OS에 맞게 테스트 케이스를 준비해주는 방향으로 개선이 되면 좋을 것 같다는 의견 드립니다!
# ~/myproject/.boj/config.yaml
general:
selenium_browser: "firefox" # required - firefox | chrome | edge
default_filetype: "py" # optional - default filetype for 'boj add'
editor_command: "code" # required - code | nvim | ..
workspace:
ongoing_dir: "problems" # optional - ongoing problem directory. default: ""
archive_dir: "archives" # optional - archive directory. default: "archives"
filetype:
py:
language: "pypy3" # required - language for your submission
main: "main.py" # required - the main file name
source_templates: # optional - these files will be copied into source dir
- "main.py"
run: "pypy3 $file" # required - the run command
cpp:
language: "c++17"
main: "main.cpp"
source_templates: # optional - these files will be copied into source dir
- "main.cpp"
root_templates: # optional - these files will be copied into root dir
- "compile_flags.txt"
compile: "g++ -std=c++17 $file" # optional - set this option if you use compile language
run: "./a.out"
after: "rm -rf a.out" # optional - command to execute after 'boj run'
# other filetypes ..
When submitting, boj_info
in the data to make the submission incorrectly notes that the value corresponding to 'language' is 28, when it should be 73, as per the setup
{"id": "REDACTED", "title": "REDACTED", "filetype": "py", "language": 28, "source_path": "main.py", "testcase_dir": "testcases", "checksum": "REDACTED", "accepted": true}
I'm having a hard time locating where this specific self.boj_info_repository.find
is implemented. If you could tell me where this specific method is implemented, I can take a look.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.