How to actually use Rust for competitive programming

Revision en3, by 0npata, 2026-01-21 18:23:13

"Rust isn't good for competitive programming"

I kept hearing this so I made a tutorial to prove the haters wrong.

Video | Repository

How to setup

  1. Clone the repo
  2. bash new-contest.sh
  3. Implement a.rs
  4. cargo r < input.txt
  5. bash build.sh
  6. Submit solution.rs
  7. Update main.rs to say mod b
  8. Goto 3

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English 0npata 2026-01-21 18:23:13 218
en2 English 0npata 2026-01-21 17:52:47 55 Tiny change: 'hal/cp-rs)' -> 'hal/cp-rs)\n\n\n![ ](https://i.postimg.cc/DwbrwFc3/thumbnail.jpg)'
en1 English 0npata 2026-01-21 17:42:50 279 Initial revision (published)