how many carry?


Submit solution

Points: 20 (partial)
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem types

題目說明

計算 2 個正整數相加過程中,總共進位幾次?

輸入限制: 均>=0

輸入

一連串的正整數,並且兩兩一組,輸入0 0表結束輸入

輸出

各組進位幾次(換行輸出)

sample input1

123 456
555 555
123 594
0 0

sample output1

0
3
1

Comments

There are no comments at the moment.