编程题
初等算术 ## 来源 University of Waterloo Local Contest 2000.09.23 (ZOJ1874, POJ2562) ## 题目描述 给定两个加数,统计加法运算过程中进位的次数。 ## 输入描述 输入文件中的每一行为两个无符号整数,少于10位。最后一行位两个0,表示输入结束。 ## 输出描述 对每一行(最后一行除外)的两个加数,计算它们进行加法运算时进位的次数并输出。具体输出格式详见样例输出。 ## 样例输入 ```txt 123 456 555 555 123 594 0 0 ``` ## 样例输出 ```txt No carry operation. 3 carry operations. 1 carry operation. ```
查看答案
赣ICP备20007335号-2