Problem 1885 --Problem C: Primary Arithmetic

1885: Problem C: Primary Arithmetic

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $2$ 正确数量 $2$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签

Problem C: Primary Arithmetic

Children are taught to add multi-digit numbers from right-to-left one digit at a time. Many find the "carry" operation - in which a 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 a set of addition problems so that educators may assess their difficulty.

Each line of input contains two unsigned integers less than 10 digits. The last line of input contains 0 0. For each line of input except the last you should compute and print the number of carry operations that would result from adding the two numbers, in the format shown below.

123 456
555 555
123 594
0 0
No carry operation.
3 carry operations.
1 carry operation.

推荐代码 查看1885 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] 淡意的温柔 588604 2020-05-29 15:23:31
内存最少[$948 $KB] AOJ大管家 84400 2017-04-27 15:28:11
第一AC AOJ大管家 84400 2017-04-27 15:28:11
第一挑战 AOJ大管家 84400 2017-04-27 15:28:11

赛题来源/所属竞赛 NA N/A

竞赛编号 竞赛名称 竞赛时间 访问比赛