Carry the Number
All submissions for this problem are available.
Children are taught to add multi-digit numbers from right to left, one digit at a time.
Many find the “carry” operation, where a 1 is carried from one digit position to the
next, to be a significant challenge. Your job is to count the number of carry operations
for each of a set of addition problems so that educators may assess their difficulty.
Each line of input contains two unsigned integers less than 10 digits. The last line of
input contains “0 0”.
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, C99 strict, CLOJ, CPP 4.3.2, CPP 6.3, CPP14, FS, GO, NODEJS, PERL6, PYTH 3.5, TEXT|
Fetching successful submissions
If you are still having problems, see a sample solution here.