Codechef•Jul 16, 2025
Off By One
Hazrat Ali
Codechef
all its results have an extra 1 appended to the end.
For example, if you ask it for 3 + 5
, it'll print 81
, and 4 + 12
will result in 161
.
Given A and B, can you predict what the calculator will print when you ask it for A?
Input Format
- The first and only line of input will contain two space-separated integers A and B.
Output Format
Print a single integer: the calculator's output when you enter A into it.
Constraints
- 1≤A,B≤5
Sample 1:
Input
3 5
Output
81
Solution
A, B = map(int, input().split())
temp = A + B
result = int(str(temp) + '1')
print(result)