This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::convert::TryFrom; | |
fn main() { | |
let [ | |
base_x, // The corner of the map representing your base | |
base_y | |
] = <[i32; 2]>::try_from(input_vec()).ok().unwrap(); | |
let heroes_per_player = input!(usize); // Always 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::convert::TryFrom; | |
fn main() { | |
let [ | |
base_x, // The corner of the map representing your base | |
base_y | |
] = <[i32; 2]>::try_from(input_vec()).ok().unwrap(); | |
let heroes_per_player = input!(i32); // Always 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C++ Class to simulate python like print (struct works too) | |
Note: | |
- Must use curly brackets if you are using a single variable type | |
- Curly brackets and Regular brackets both work in any other case |