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::io; | |
| use std::io::prelude::*; | |
| use std::io::BufReader; | |
| use std::fs::File; | |
| fn main() -> io::Result<()> { | |
| let f = File::open("input.txt")?; | |
| let reader = BufReader::new(f); | |
| let mut r = reader.lines(); |
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::io; | |
| use std::io::prelude::*; | |
| use std::io::BufReader; | |
| use std::fs::File; | |
| fn main() -> io::Result<()> { | |
| let f = File::open("input.txt")?; | |
| let reader = BufReader::new(f); | |
| let mut adp = Vec::<usize>::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
| code clrchn | |
| w stx, | |
| $ffcc jsr, | |
| w ldx, | |
| ;code | |
| code chrin | |
| w stx, | |
| $ffcf jsr, | |
| w ldx, dex, |