Submit | All submissions | Best solutions | Back to list |
FUCT_FOR_SUM2DIG - Sum 2 digits |
Enter a positive number n. Find out all 2-digit number whose sum of 2 digits is equal to n.
Input
Contain a single number n.
Constraints
- 1 ≤ n ≤ 18
Output
Print out all 2-digit numbers whose sum of 2 digits is equal to n.
Each solution in one line.
If it doesn't have any solution, print out "NO".
Example 1
Input: 8 Output: 17 = 1 + 7 = 8 26 = 2 + 6 = 8 35 = 3 + 5 = 8 44 = 4 + 4 = 8 53 = 5 + 3 = 8 62 = 6 + 2 = 8 71 = 7 + 1 = 8 80 = 8 + 0 = 8
Added by: | khanhvh |
Date: | 2018-07-10 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
Resource: | FPTU Can Tho |