Welcome to CSES Sols
Walkthrough
- We provide our solutions for coding problems of CSES site that is owned by Antti Laaksonen & Topi Talvitie during our data structures and algorithms learning. Most of the solutions are written in C++ and Python programming language.
- This project is open-source on Github. You can support us by giving this repository a star.
Download solutions
To do this you actually need only crawler.py
(and htmlgen.py
, style.css
, content.css
if you want to package solutions). You might want to create an empty directory and put only those files inside. Please follow these steps:
Get your SESSID
- Go to CSES login page.
- Open Browser Dev Tools and go to Network tab.
- Fill the information and login.
- Look at the Browser Dev Tools and find the details of your login request then go to cookies, you will find the field
PHPSESSID
.
- Copy the value and paste it into
crawler.py
where "YOUR_SESSID_HERE"
is specified.
Download solutions using these scripts
python crawler.py
to download solutions of all problems.
python crawler.py <problemID>
to download solutions of a specific problem.
Source & Contribution
- If you want to contribute solutions for any unsolved CSES problem on this site, feel free to make a pull request on this project's repository, we really appreciate it.
Contact
- (See Contact section for more info).
License
- MIT License.
- © 2022 Cao Son Nguyen, Dinh Nam Nguyen.