Carry the NumberProblem code: CYW11 |
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. Input Each line of input contains two unsigned integers less than 10 digits. The last line of input contains 0 0 .
| Author: | arnavch |
| Date Added: | 20-03-2010 |
| Time Limit: | 1 sec |
| Source Limit: | 50000 Bytes |
| Languages: | C, C99 strict, CLOJ, CPP 4.0.0-8, CPP 4.3.2, F#, GO, PERL6, PYTH 3.1.2, TEXT |
Comments

Fetching successful submissions

Please specify the
Please specify the input/output format.
The input in as 3241 and
The input in as
3241 and 6565
and output is carry 1
or
7777 and 1234
carry 2 is the output
What I mean is do we accept
What I mean is do we accept number of test cases etc?
no. right now, nonly test
no.
right now, nonly test case
@arnav: shudn't the output
@arnav: shudn't the output for 7777 + 1234 be 3 . ..
So we just accept two numbers
So we just accept two numbers and print the answer.
no, we are considering only
no, we are considering only individual digit addition so 4+7 = 11 so carry 1
+7 = 10 so carry 1
7+2 = 9 carry 0
and 1+7 = 8 so total no of carry is 2
@GOVIND: YES
@GOVIND: YES
@admin : can't submit
@admin : can't submit solution . ..
please help . ..
Yes I also cannot submit my
Yes I also cannot submit my solution.
IF U R UNABLE TO SEND
IF U R UNABLE TO SEND SOLUTIONS THEN SEND UR ANSWERS at either of the following:
codechef1@gmail.com
codechef2@gmail.com
codechef3@gmail.com
alongwith ur id attach
Reminder:- Please attach
Reminder:-
Please attach your codechef id