Use Rust in Codeforce — My practice with rust-bundler

Revision en1, by cotton, 2021-07-13 05:50:13

In June 2019, EbTech posted an article How to Compete in Rust. Inspired by that, I'm working on my rust_codeforce_template.

It could be used in such way: 1. cargo install --git https://github.com/Endle/rust-bundler.git --branch codeforce bundler
2. git clone https://github.com/Endle/rust_codeforce_template.git --depth=1 3. Edit main.rs. Most cases, I only need to edit fn solve() 4. ./run_with_bundle.sh < test.in 5. If the result looks good, submit /dev/shm/output.rs to codeforce

I wish to reach such goals:

  1. Move template code out of main.rs. I want to save time from scrolling up and down.
  2. Save coding time for IO.
Tags rust, cf-tool, codeforces toolkit, programming language

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English cotton 2021-07-13 06:24:13 9 trivial: remote [cut]
en3 English cotton 2021-07-13 06:12:04 16 trivial format
en2 English cotton 2021-07-13 06:10:43 825 Tiny change: '= read!();\nlet word' -> '= read!(); \nlet word' (published)
en1 English cotton 2021-07-13 05:50:13 863 Initial revision (saved to drafts)