#include <iostream>
using namespace std;
int main()
{
int m, n;
while(cin>>m>>n, m&&n)
{
int i = 0;
int a0, a1, b0, b1, c0, c1;
a0 = m%10;
b0 = m/10%10;
c0 = m/100%10;
a1 = n%10;
b1 = n/10%10;
c1 = n/100%10;
if(a0+a1>=10)i++;
if((a0+a1)/10+b0+b1>=10)i++;
if(((a0+a1)/10+b0+b1)/10+c0+c1>=10)i++;
cout<<i<<endl;
}
return 0;
}
小学生算术
最新推荐文章于 2021-10-24 15:17:41 发布