Unformatted text preview: sum up to the goal. The Input: Input will begin with a single, positive integer, n, on a line by itself. On the next n lines will be a single positive integer representing the goal sum followed by three single positive digits, each separated by a single space. The Output: For each line of input, determine if the three digits sum to the goal and are unique. Output “ Proper triplet ” on a line by itself if so, or “ Not a good triplet ” on a line by itself if not. Sample Input: 3 19 4 7 8 10 1 9 6 14 3 8 3 Sample Output: Proper triplet Not a good triplet Not a good triplet...
View Full Document
This note was uploaded on 06/09/2011 for the course COP 3223 taught by Professor Guha during the Spring '08 term at University of Central Florida.
- Spring '08