Skip to content

Instantly share code, notes, and snippets.

View rosenbergm's full-sized avatar
🤪
goog

Martin Rosenberg rosenbergm

🤪
goog
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rosenbergm on github.
  • I am rosenbergm (https://keybase.io/rosenbergm) on keybase.
  • I have a public key ASBWBKTP0dUBDpeohaKuP34Tio-IAtqr5b88zycfCIeC9Qo

To claim this, I am signing this object:

mod solution;
use solution::Simulation;
fn main() {
let mut simulation = Simulation::new();
let prg = simulation.new_city("Prague");
let brn = simulation.new_city("Brno");
let pls = simulation.new_city("Plzen");
let hrk = simulation.new_city("Hradec Kralove");
@rosenbergm
rosenbergm / sim_rust_output
Created December 3, 2023 09:34
sim_rust_output
E0: Plzen: 0 got off, 120 got on
E0: Brno: 0 got off, 60 got on
E0: Hradec Kralove: 0 got off, 40 got on
E71: Prague: 120 got off, 40 got on
E121: Prague: 60 got off, 0 got on
---
E130: Prague: 0 got off, 40 got on
E130: Plzen: 0 got off, 10 got on
E192: Brno: 80 got off, 0 got on
E201: Prague: 0 got off, 0 got on