Adding Trouble
Time limit1sMemory limit1024 MB
Given three integers A, B, and C, the task is to check whether A + B equals C and print correct! or wrong! accordingly.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Your friend Bob is really bad at adding numbers, and he'd like some help to make sure he's doing it correctly! Can you help Bob make sure he is adding correctly? Given 3 integers , , , make sure that , and that Bob indeed added and correctly.
Input
The input consists of a single line with 3 integers where .
Output
Output either correct! if , or wrong! if .