diff options
hw(1/AI): Add failed attemt at implementing it in Rust
1 files changed, 27 insertions, 0 deletions
| -rw-r--r-- | Year 4/Artificial Intelligence/ENDME/src/main.rs | 27 |
diff --git a/Year 4/Artificial Intelligence/ENDME/src/main.rs b/Year 4/Artificial Intelligence/ENDME/src/main.rs new file mode 100644 index 0000000..58a7196 --- /dev/null +++ b/Year 4/Artificial Intelligence/ENDME/src/main.rs @@ -0,0 +1,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); +} |
