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::{io, io::prelude::*}; | |
pub fn main() { | |
let mut sum = 0; | |
for line in io::stdin().lock().lines() { | |
sum = sum + line.unwrap().parse::<i32>().unwrap(); | |
} | |
println!("{}", sum); | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am erikg on github. | |
* I am erikg (https://keybase.io/erikg) on keybase. | |
* I have a public key whose fingerprint is 1EAB 10B5 0DA6 3872 A139 ECA7 94FA B2C9 36E5 BF2B | |
To claim this, I am signing this object: |