---
title: "Discussion on \"Wrong Subtraction\" | Hashnode"
description: "Discussion on \"Wrong Subtraction\". Problem URL:  Wrong Subtraction \nuse std::io;\n\nfn main(){\n    let mut input_text = String::new();\n    io::stdin().read_line(&mut input_text).expect(\"failed to read from stdin\");\n    let inputs: Vec<u32> = input_text.trim().split(\" \").map(|x|{\n       ..."
url: "https://hashnode.com/posts/wrong-subtraction/5ea441aa0135fc417662eeee"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Wrong Subtraction](https://omprakashsridharan.hashnode.dev/wrong-subtraction?utm_source=hashnode&utm_medium=feed)

Problem URL: Wrong Subtraction use std::io; fn main(){ let mut input\_text = String::new(); io::stdin().read\_line(&mut input\_text).expect("failed to read from stdin"); let inputs: Vec<u32> = input\_text.trim().split(" ").map(|x|{ ...

Apr 25, 2020 · omprakashsridharan.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)

## Written by

[Omprakash Sridharan](https://hashnode.com/@omprakashsridharan)

@omprakashsridharan

  
[View profile](https://hashnode.com/@omprakashsridharan)

Software Developer

## Responses 1

Markdown supported · ⌘↵ to post

[j](https://hashnode.com/@chilimatic)

[Apr 25, 2020](https://hashnode.com/posts/wrong-subtraction/5ea441aa0135fc417662eeee/comment/5ea468e312892a3c760b862c)

you should write a bit more, of what you're doing. Also certain assumptions are not correct, but I guess this was just a 'let me apply the alogrithm thingy'. maybe add rustfmt and clippy to your toolchain as well.

[Omprakash Sridharan](https://hashnode.com/@omprakashsridharan)

[Apr 26, 2020](https://hashnode.com/posts/wrong-subtraction/5ea441aa0135fc417662eeee/comment/5ea468e312892a3c760b862c#reply-5ea510360135fc417662f58d)

Sure J, yes it was kind of "let me solve it". Thank you for your suggestions, will do that in my upcoming posts.
