in contests/abc026/abc026_c.rs [18:36]
fn solve(src: &str) -> String {
let source = AutoSource::from(src);
input! {
from source,
N: usize,
B: [usize; N-1]
}
let mut answer = 0;
let mut employees = HashMap::new();
let g = UnGraph::<i32, ()>::from_edges(&[(1, 2), (2, 3), (3, 4), (1, 4)]);
for b in B {
employees.entry(b).and_modify(|e| *e += 1).or_insert(1);
}
format!("{:?}", employees)
}