CodeChef is a non-commercial competitive programming community
Login
Username (New User? Signup) Password (Forgot Password?)
Signup
Login or
Signup with
Connect
Note
  • Publicize your achievements on your Facebook Wall.
  • Challenge your friends or ask them for help.

Site Navigation

  • PRACTICE
    • Easy
    • Medium
    • Hard
    • Challenge
    • Peer
  • COMPETE
    • All Contests
    • June Long 2012
    • May Cook-Off
    • May Long 2012
  • DISCUSS
    • Forums
    • Blog
    • Wiki
    • Facebook
    • Twitter
  • COMMUNITY
    • CodeChef Meetups
    • Campus Chapters
    • Host your Contest
    • User Groups
    • CodeChef TechTalks
    • All Educational Initiatives
  • HELP
    • Frequently Asked Questions
    • FAQ for problem setters
    • Problem Setting
    • Tutorials
    • Long Contest Ranks
    • Short Contest Ranks
    • Event Calendar
  • ABOUT
    • About CodeChef
    • Team CodeChef
    • Press Room
    • CodeChef Financials
    • CodeChef Sponsorships
    • CEO's Corner
    • Contact Us
    • About Directi
Home » Compete » DreamSpark 2010 » Carry

Carry

Problem code: DPC101

  • All Submissions

 Children are taught to add multi-digit numbers from right-to-left one digit at a time. Many find the "carry" operation - in which 1 is carried from one digit position to be added to the next - to be a significant challenge.  Your job is to count the number of carry operations for each of addition problem 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.

 

Output

For each line of input except the last output the number of carry operations that would result from adding the two numbers, in the format shown below.

 

Sample Input

123 456

555 555

123 594

0 0

 

Sample Output

No carry operation.

3 carry operations.

1 carry operation.

 


Author: rushikesh30
Date Added: 25-02-2010
Time Limit: 5 sec
Source Limit: 50000 Bytes
Languages: BF, C, C99 strict, CPP 4.0.0-8, CPP 4.3.2, CS2


  • Submit

Comments

  • Login or Register to post a comment.

@Organizer: I tried searching

imrankane2005 @ 27 Feb 2010 06:08 PM

@Organizer: I tried searching more info about this contest but couldn't find any.Is this internal Campus contest or part of some Techfest  if it's part of TechFest can you provide us the link of hosting site.

 

Thanks

Really even i dint get any

dan @ 27 Feb 2010 06:20 PM

Really even i dint get any link.

organizers can you help?

does less than 10 inlude 10

ankit_ankit @ 27 Feb 2010 06:55 PM

does less than 10 inlude 10

I am the Organizer. This

MSP_bitmesra @ 27 Feb 2010 07:36 PM

I am the Organizer.

This contest is a part of Tech-Days2010 and Microsoft DreamSpark Yatra organized by Microsoft Student Partner India Team and supported by Microsoft Academia Team.

Our UnderConstruction WebSite is at www.tech-days2010.com

and to register visit http://bit.ly/RegisterDevCon

Please Redirect Your Quries

MSP_bitmesra @ 27 Feb 2010 07:40 PM

Please Redirect Your Quries to dreamsparkyatra@gmail.com (Use Gtalk, if you don't get immediate response, please mail your Query)

About the Carry Problem, We'll sort it out if there's a problem. Please check back again at 00:00 hours tonight.

Moreover when you are registering at http://bit.ly/RegisterDevCon , you need not pay if you are attending only online Events. But registration is compulsory to get prizes and Certis.

For the Carry Question I

MSP_bitmesra @ 27 Feb 2010 07:43 PM

For the Carry Question I Suggest you check back tonight at 00:00 hours. We'll try to fix in case there is any error.

Redirect all your Queries to

MSP_bitmesra @ 27 Feb 2010 07:46 PM

Redirect all your Queries to dreamsparkyatra@gmail.com Use Gtalk. If you dont get immediate response you can mail your queries to the same address.

@admin check your test cases.

darkhawk @ 27 Feb 2010 08:02 PM

@admin

check your test cases.

Please check out your test

moneymachine @ 27 Feb 2010 08:03 PM


Please check out your test cases as i think there is some problem with your test cases

Have you written to give a

rushikesh30 @ 27 Feb 2010 11:29 PM

Have you written to give a  the fullstop at the end.That may be the problem in test case.

@All Errors have been

MSP_bitmesra @ 28 Feb 2010 01:16 PM

@All

Errors have been corrected. You can resubmit your codes for the Carry Problem.

@Pratyush Verma Nice Dude.

MSP_bitmesra @ 28 Feb 2010 04:37 PM

@Pratyush Verma

Nice Dude. You are the hope of BIT Mesra and MSTC

http://mstc-bitmesra.ning.com

@ALL Please mail your

MSP_bitmesra @ 28 Feb 2010 09:18 PM

@ALL

Please mail your CodeChef ID, your name, your Institutions Name, Your Address(Where you want Posters, Certis, Goodies to be delivered, (No. of deliveries will depend on our budget)) to dreamsparkyatra@gmail.com For Updates follow http://twitter.com/dreamsparkyatra .

Happy Holi and Happy Coding!

@All You can mail after the

MSP_bitmesra @ 28 Feb 2010 09:45 PM

@All

You can mail after the CONTEST!

@All Check out the DreamSpark

MSP_bitmesra @ 28 Feb 2010 11:43 PM

@All

Check out the DreamSpark Professional Programming Contest #2 on 13th March 18:00 hours IST. We will send Posters to Participants by Post to promote the Contest Series. We'll also try to Send Participation E-Certis.

SUCCESSFUL SUBMISSIONS FOR THIS PROBLEM:

Programming Competition Fetching successful submissions
Directi Go for Gold
CodeChef is a global programming communityCodeChef hosts online programming competitions
CodeChef is a non-commercial competitive programming community
  • About CodeChef
  • About Directi
  • CEO's Corner
  • C-Programming
  • Programming Languages
  • Contact Us
© 2009 Directi Group. All Rights Reserved. CodeChef uses SPOJ © by Sphere Research Labs
In order to report copyright violations of any kind, send in an email to copyright@codechef.com
CodeChef a product of Directi
The time now is:
CodeChef - A Platform for Aspiring Programmers

CodeChef was created as a platform to help programmers make it big in the world of algorithms, computer programming and programming contests. At CodeChef we work hard to revive the geek in you by hosting a programming contest at the start of the month and another smaller programming challenge in the middle of the month. We also aim to have training sessions and discussions related to algorithms, binary search, technicalities like array size and the likes. Apart from providing a platform for programming competitions, CodeChef also has various algorithm tutorials and forum discussions to help those who are new to the world of computer programming.

Practice Section - A Place to hone your 'Computer Programming Skills'

Try your hand at one of our many practice problems and submit your solution in a language of your choice. Our programming contest judge accepts solutions in over 35+ programming languages. Preparing for coding contests were never this much fun! Receive points, and move up through the CodeChef ranks. Use our practice section to better prepare yourself for the multiple programming challenges that take place through-out the month on CodeChef.

Compete - Monthly Programming Contests and Cook-offs

Here is where you can show off your computer programming skills. Take part in our 10 day long monthly coding contest and the shorter format Cook-off coding contest. Put yourself up for recognition and win great prizes. Our programming contests have prizes worth up to Rs.20,000 and $700lots more CodeChef goodies up for grabs.

Discuss

Are you new to computer programming? Do you need help with algorithms? Then be a part of CodeChef's Forums and interact with all our programmers - they love helping out other programmers and sharing their ideas. Have discussions around binary search, array size, branch-and-bound, Dijkstra's algorithm, Encryption algorithm and more by visiting the CodeChef Forums and Wiki section.

CodeChef Community

As part of our Educational initiative, we give institutes the opportunity to associate with CodeChef in the form of Campus Chapters. Hosting online programming competitions is not the only feature on CodeChef. You can also host a coding contest for your institute on CodeChef, organize an algorithm event and be a guest author on our blog.

Go For Gold

The Go for Gold Initiative was launched about a year after CodeChef was incepted, to help prepare Indian students for the ACM ICPC World Finals competition. In the run up to the ACM ICPC competition, the Go for Gold initiative uses CodeChef as a platform to train students for the ACM ICPC competition via multiple warm up contests. As an added incentive the Go for Gold initiative is also offering over Rs.8 lacs to the Indian team that beats the 29th position at the ACM ICPC world finals. Find out more about the Go for Gold and the ACM ICPC competition here.

Domain Name Registration, Web hosting, and Website Design provided by BigRock.com