Guest User

Untitled

a guest
Jun 25th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. fn read()->Vec<i32> {
  2. let mut line = String::new();
  3. std::io::stdin().read_line(&mut line);
  4. line.split_whitespace().map(|s| s.parse::<i32>().unwrap()).collect()
  5. }
  6.  
  7. fn main() {
  8. println!("{:?}",read()[0]);
  9.  
  10. }
Add Comment
Please, Sign In to add comment