aboutsummaryrefslogtreecommitdiff
path: root/2022/04/b.rs
blob: 2affb65b2416cbe944f580c12d6b731d76b60f9e (plain)
1
2
3
4
5
6
7
8
mod common;
use common::*;

fn main() {
    let overlap = |a: (i64, i64), b: (i64, i64)|
        (a.0 >= b.0 && a.0 <= b.1) || (b.0 >= a.0 && b.0 <= a.1);
    println!("{}", count(overlap));
}

Generated with cgit - Back to sebastiano.tronto.net