Skip to content

taneshqGupta/CP-Solutions-in-Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rust Solutions for CP Problems

This repository contains my (accepted) solutions to various CP problems, implemented in Rust.

Bitwise Mathematics

# Problem Solution
1 Bitwise Add bitwise_add.rs
2 Bitwise Subtract bitwise_subtract.rs
3 Bitwise Multiply bitwise_multiply.rs
4 Bitwise Divide bitwise_divide.rs

Codeforces Solutions

# Problem Solution
1 Letter Home div3A_letter_home.rs
2 Odd Queries 900_odd_queries.rs
3 Tung Tung Sahur 1100_tung_tung_sahur.rs
4 Above the Clouds div3B_above_the_clouds.rs
5 Those Who Are With Us div3C_those_who_are_with_us.rs
6 1709 div3D_1709.rs
7 Sponsor of Your Problems div3E_sponsor_of_your_problems.rs
8 Blackboard Game div3A_blackboard_game.rs
9 Tournament div3B_tournament.rs
10 Prefix Min, Suffix Max div3C_prefix_min_suffix_max.rs
11 Greedy Grid div2A_greedy_grid.rs
12 Pile Shuffling div2B_pile_shuffling.rs
13 Redstone div2A_redstone.rs
14 Villagers div2B_villagers.rs

HackerRank Solutions

# Problem Solution
1 Move the Coins moving_the_coins.rs

Running the Solutions

To compile and run any solution:
rustc $file -o sol && ./sol >std.out 2>std.err && bat --language=log std.out std.err && rm -f sol std.out std.err 

Happy Coding! 🦀

About

my (accepted) solutions to random competitive programming problems in Rust.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages