This file contains hidden or 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::collections::HashMap; | |
| const _INPUT: &str = "\ | |
| pbga (66) | |
| xhth (57) | |
| ebii (61) | |
| havc (66) | |
| ktlj (57) | |
| fwft (72) -> ktlj, cntj, xhth | |
| qoyq (66) |
This file contains hidden or 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::collections::{HashMap, HashSet}; | |
| const _INPUT: &str = "\ | |
| pbga (66) | |
| xhth (57) | |
| ebii (61) | |
| havc (66) | |
| ktlj (57) | |
| fwft (72) -> ktlj, cntj, xhth | |
| qoyq (66) |
This file contains hidden or 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::collections::HashMap; | |
| use std::collections::hash_map::Entry; | |
| const _INPUT: [u64; 4] = [0, 2, 7, 0]; | |
| const INPUT: [u64; 16] = [5, 1, 10, 0, 1, 7, 13, 14, 3, 12, 8, 10, 7, 12, 0, 6]; | |
| fn main() { | |
| let mut banks = INPUT; | |
| let mut seen = HashMap::new(); |
This file contains hidden or 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
| const _INPUT: &str = "\ | |
| 0 | |
| 3 | |
| 0 | |
| 1 | |
| -3\ | |
| "; | |
| const INPUT: &str = "\ | |
| 0 |
This file contains hidden or 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
| const INPUT: &str = "\ | |
| kvvfl kvvfl olud wjqsqa olud frc | |
| slhm rdfm yxb rsobyt rdfm | |
| pib wzfr xyoakcu zoapeze rtdxt rikc jyeps wdyo hawr xyoakcu hawr | |
| ismtq qwoi kzt ktgzoc gnxblp dzfayil ftfx asscba ionxi dzfayil qwoi | |
| dzuhys kfekxe nvdhdtj hzusdy xzhehgc dhtvdnj oxwlvef | |
| gxg qahl aaipx tkmckn hcsuhy jsudcmy kcefhpn kiasaj tkmckn | |
| roan kqnztj edc zpjwb | |
| yzc roc qrygby rsvts nyijgwr xnpqz | |
| jqgj hhgtw tmychia whkm vvxoq tfbzpe ska ldjmvmo |
This file contains hidden or 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
| const INPUT: &[u8] = b"\ | |
| kvvfl kvvfl olud wjqsqa olud frc | |
| slhm rdfm yxb rsobyt rdfm | |
| pib wzfr xyoakcu zoapeze rtdxt rikc jyeps wdyo hawr xyoakcu hawr | |
| ismtq qwoi kzt ktgzoc gnxblp dzfayil ftfx asscba ionxi dzfayil qwoi | |
| dzuhys kfekxe nvdhdtj hzusdy xzhehgc dhtvdnj oxwlvef | |
| gxg qahl aaipx tkmckn hcsuhy jsudcmy kcefhpn kiasaj tkmckn | |
| roan kqnztj edc zpjwb | |
| yzc roc qrygby rsvts nyijgwr xnpqz | |
| jqgj hhgtw tmychia whkm vvxoq tfbzpe ska ldjmvmo |
This file contains hidden or 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
| const INPUT: isize = 289326; | |
| #[derive(Clone, Copy, Debug)] | |
| struct Vec2 { | |
| x: isize, | |
| y: isize, | |
| } | |
| fn main() { | |
| let mut pos = Vec2 { x: 0, y: 0 }; |
This file contains hidden or 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
| #![feature(inclusive_range_syntax)] | |
| const INPUT: isize = 289326; | |
| #[derive(Clone, Copy, Debug)] | |
| struct Vec2 { | |
| x: isize, | |
| y: isize, | |
| } |
This file contains hidden or 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::cmp::{max, min}; | |
| const _INPUT: &str = "\ | |
| 5 1 9 5 | |
| 7 5 3 | |
| 2 4 6 8\ | |
| "; | |
| const INPUT: &str = "\ | |
| 62 1649 1731 76 51 1295 349 719 52 1984 2015 2171 981 1809 181 1715 |
This file contains hidden or 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
| const _INPUT_1: &str = "\ | |
| 5 1 9 5 | |
| 7 5 3 | |
| 2 4 6 8\ | |
| "; | |
| const _INPUT_2: &str = "\ | |
| 5 9 2 8 | |
| 9 4 7 3 | |
| 3 8 6 5\ |