Skip to content

jeffilluminati/CSES-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

CSES Solutions

Reference solutions for CSES problems written in Rust.

Running the code

The repository for running my code is rust-cp-template. Just replace any one of the src/bin/{a-g}.rs with the input code, and run it using cargo r --bin {a-g}.

The solutions rely on the shared cp crate and its macros such as cp::prepare!(), sc!, pp!, and cp::main!(). Because of that, they are meant to be read or copied into one of the actual binaries under src/bin/ when you want to run or submit them.

Bundling the code

Use the cr helper available in the above repository, and it should bundle it to /tmp/a.rs. This should allow for submission to the online judge.

Usage is as follows:

./cr a for bundling a.rs, and so on respectively for every scratch file.

Further details are in the library documentation.

About

CSES Solutions in Rust, using my template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages