library-rs

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub naoya675/library-rs

:heavy_check_mark: verification/aizu-online-judge/grl_3_a/src/main.rs

Depends on

Code

// verification-helper: PROBLEM https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_3_A

use proconio::input;

use low_link::LowLink;

fn main() {
    input! {
        v: usize,
        e: usize,
        st: [(usize, usize); e],
    }
    let mut ll = LowLink::new(v);
    st.iter().for_each(|&(s, t)| {
        ll.add_edge(s, t);
        ll.add_edge(t, s);
    });
    ll.build();
    let mut a = ll.articulation();
    a.sort();

    for &v in &a {
        println!("{}", v);
    }
}

Test cases

Env Name Status Elapsed Memory
Rust 00_small_00.in :heavy_check_mark: AC 4 ms 2 MB
Rust 00_small_01.in :heavy_check_mark: AC 3 ms 2 MB
Rust 00_small_02.in :heavy_check_mark: AC 3 ms 2 MB
Rust 00_small_03.in :heavy_check_mark: AC 3 ms 2 MB
Rust 00_small_04.in :heavy_check_mark: AC 3 ms 2 MB
Rust 00_small_05.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_00.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_01.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_02.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_03.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_04.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_05.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_06.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_07.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_08.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_09.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_10.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_11.in :heavy_check_mark: AC 3 ms 2 MB
Rust 01_critical_12.in :heavy_check_mark: AC 3 ms 2 MB
Rust 02_grid_00.in :heavy_check_mark: AC 3 ms 2 MB
Rust 02_grid_01.in :heavy_check_mark: AC 3 ms 2 MB
Rust 02_grid_02.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_00.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_01.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_02.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_03.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_04.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_05.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_06.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_07.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_08.in :heavy_check_mark: AC 3 ms 2 MB
Rust 03_rand_09.in :heavy_check_mark: AC 4 ms 3 MB
Rust 03_rand_10.in :heavy_check_mark: AC 4 ms 3 MB
Rust 03_rand_11.in :heavy_check_mark: AC 5 ms 3 MB
Rust 04_linear_00.in :heavy_check_mark: AC 4 ms 2 MB
Rust 04_linear_01.in :heavy_check_mark: AC 4 ms 3 MB
Rust 04_linear_02.in :heavy_check_mark: AC 6 ms 5 MB
Rust 04_linear_03.in :heavy_check_mark: AC 6 ms 5 MB
Rust 05_maximum_00.in :heavy_check_mark: AC 11 ms 7 MB
Rust 05_maximum_01.in :heavy_check_mark: AC 14 ms 8 MB
Back to top page