All Tracks Math Number Theory Basic Number Theory-1 Problem

Find Me!
Tag(s):
No tags
Problem
Editorial
Analytics

Three integers are given in the input- N, A, B. Find an integer C such that N = A + B + C.

SAMPLE INPUT
10 5 3
SAMPLE OUTPUT
2
Explanation

For N = 10, A = 5, B = 3

C = 2.

This satisfie condition that N = A+B+C.

Time Limit: 1.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB
Marking Scheme: Marks are awarded when all the testcases pass.
Allowed Languages: Bash, C, C++, C++14, Clojure, C#, D, Erlang, F#, Go, Groovy, Haskell, Java, Java 8, JavaScript(Rhino), JavaScript(Node.js), Julia, Kotlin, Lisp, Lisp (SBCL), Lua, Objective-C, OCaml, Octave, Pascal, Perl, PHP, Python, Python 3, R(RScript), Racket, Ruby, Rust, Scala, Swift, Swift-4.1, TypeScript, Visual Basic

CODE EDITOR

Initializing Code Editor...
Your Rating:

Contributor

Notifications
View All Notifications

?