## Mock CCC '18 Contest 2 J1 - An Arithmetic Problem

View as PDF

Points: 3 (partial)
Time limit: 5.0s
Memory limit: 1G

Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

You are given an arithmetic expression . Determine if it is true or false.

#### Constraints In a batch of tests worth 1 mark, the answer is always True.

In a potentially disjoint batch of tests worth 1 mark, the answer is always False.

#### Input Specification

The first line contains a single line of the form a + b = c, where each of a, b, and c are positive digits.

#### Output Specification

If the statement is true, print True on a single line.

Otherwise, print False on a single line.

#### Sample Input

1 + 1 = 2

#### Sample Output

True

#### Sample Input

1 + 1 = 3

#### Sample Output

False