Summary Files Commits Branches @commit @diff @stats
path: root / Year 4 / Artificial Intelligence / ENDME / src / main.rs
blob: 58a7196087293e4d6540bc131ad5902ac69f97a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use text_io::read;
mod graph;
use graph::{ Graph };

// Manhattan
fn h() {
}

fn dfs() {
}

fn main() {
    /* Input */
    let N: u32 = read!();
    let I: i32 = read!();

    let size: usize = (N as f64 + 1.0).sqrt() as usize;
    let mut board: Vec<Vec<u32>> = Vec::new();
    for i in 0..size {
        board.push(Vec::new());
        for j in 0..size {
            board[i].push(read!());
        }
    }

    let G: Graph = Graph::new(board, I as u32);
}