UVa 10035
From Algorithmist
Contents |
[edit] 10035 - Primary Arithmetic
[edit] Summary
Add the two numbers and count the number of carries that happened.
[edit] Explanation
Just add digit by digit, and count the number of carries.
[edit] Gotchas
- Watch the spelling. For 0 we have to print "No carry operation.", even though that's not proper grammar.
[edit] Input
123 456 555 555 123 594 0 0
[edit] Output
No carry operation. 3 carry operations. 1 carry operation.

