Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main()
{
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF) {
        int temp = a + b;
        int dig = (int)log10((double)temp) + 1;
        cout << dig << endl;
    }
}

C++: #include<iostream> 
#include<cstdio>
using namespace std; 
int main() 
{ int a,b; while(scanf("%d%d",&a,&b)!=EOF) 
{ int x=a+b; int cnt=0; 
while(x) { cnt++; x/=10; } 
cout <<cnt<<endl;
} 
return 0; 
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cstring>
#include <climits>
#include <algorithm>
#include <map>

using namespace std;

int main() {
    int a, b;
    while (cin >> a >> b) {
        int sum = a + b;
        int res = 1;
        while (sum >= 10) {
            res ++;
            sum /= 10;
        }
        cout << res << endl;
    }
    return 0;
}

C++: #include <iostream>
using namespace std;

int main()
{
	int a,b,sum;
	int count = 1;

	cin >> a >> b;
	sum = a + b;
	
	while(sum > 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;


	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
        a[i]+b[i];
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
    }
    return 0;
}

C++: #include<iostream>
#include<stdio.h>

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

while(1){

	// 値の入力
	cin >> num1 >> num2;

	//整形
	sprintf_s(str,"%d\0",(num1 + num2));

	// 文字数計測
	for(i=0;str[i] != '\0';i++){
	}

	// 文字数表示
	cout << i << endl;

}

	return 0;
}

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project
{
    class Test
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] numbers=input.Split(' ');
            int  answer = Convert.ToInt16(numbers[0]) +Convert.ToInt16( numbers[1]);
             string amswer1 = Convert.ToString(answer);
            Console.WriteLine((amswer1.Length));
        }
    }
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (cin>>a>>b) {
        int sum = a + b;
        int cnt = 1;
        while (sum/10) {
            cnt++;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

C++: #include <bits/stdc++.h>
#include <cstdio>
using namespace std;

int a;
int b;

int main() {
  while (cin >> a >> b != EOF) {
    int i;
    a = a + b;
    while(a > 0) {
      a = a / 10;
      ++i;
    }
    
    cout << i << endl;
    
  }
}

C++: #include<stdio.h>
int main(){
		int a,b,c,count=0;
	while(scanf("%d %d",&a,&b)!=EOF){
		count = 0;
		c = a+b;
		while(1){
			c = c /10;
			count++;
			if(c==0)	break;
		}
		printf("%d\n",count);
	}
}

C++: #include <stdio.h>

int main(void) {
	int input1, input2;      /* 入力値 */
	int buff;               /* 計算値バッファ */
	int i;                     /* loopcounter */

	while (scanf("%d %d", &input1, &input2) != EOF) {

		buff = input1 + input2;
		i = 1;

		while (buff >= 10) {
			buff /= 10;
			i++;
		}

		printf("%d\n", i);
	}


	return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;

#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define REP(i,e) for (int i = 0; i != int(e); i++)
#define FORIT(i, A) for (auto i : A)
#define ISEQ(c) (c).begin(), (c).end()
#define PRINT(x) cout << (x) << endl
#define SZ(x) ((int)(x).size())

int main(int argc, char const *argv[])
{

	int a, b;
	while(scanf("%d %d", &a, &b) != EOF)
	{
		int sum = a+b;	
		int digit = 0;
		while(sum)
		{
			digit++;
			sum /= 10;
		} 
		printf("%d\n", digit);
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <string>

using namespace std;

int counts(string num) {
	int count = 0;
	for (int i = 0; i < ; i++) {
		if (num[i] != "0") count++;
	}
	return count;
}

int main() {
	for (int a, b; cin >> a >> b && a && b) {
		string stream as;
		as << a;
		string stream bs;
		bs << b;
		cout << counts(as)+counts(bs) << endl;
	}
}

C++: #include <iostream>
using namespace std;
 
int main(){
int a,b,c=0;
while(cin>>a>>b)
a+=b;c=0;
while(a>0){
a/=10;c++;
}
cout<<c<<endl;
}
return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <iomanip>
#include <algorithm>
#include <cmath>
using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

int main()
{
	int a, b;
	while (cin>>a>>b) {
		a = a + b;
		int count = 0;
		while (a > 0) {
			a /= 10;
			count++;
		}
		printf("%d\n", count);
	}
}

C++: #include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
int main(){
int a,b,c;
char ans[100];
cin>>a>>b;
	sprintf(ans,"%d",a+b);
c=strlen(ans);
cout<<c<<endl;
return 0;
}

C++: #include <iostream>
#include <string>   
using namespace std;
 
int main(){
int a[2],i = 0,b,c = 1;

cin >> a[0] >> a[1];
b = a[0] + a[1];
while(b >= 10){
	b = b/10;
	c++;
}
cout<<c<<endl;

}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x,y;
    for(;;){
        cin >> x >> y;
        if(cin.eof())   break;
        cout << to_string(x+y).length() << "\n";
    }
}

C++: #include<stdio.h>

int main()
{
    long long a,b,c;
    while(scanf("%lld%lld",&a,&b)==2)
    {
        c=a+b;
        int coun=0;
        while(c>0)
        {

            coun++;
            c/=10;
        }
        printf("%lld\n",coun);
    }
    return 0;
}

C++: #include <stdio.h>

int main(void){
    int a,b,sum,cnt;

    while (scanf("%d %d", &a, &b) == 2){
        cnt=0;
        sum = a+b;
        while(sum){
            cnt++;
            sum /= 10;
        }
        printf("%d\n", cnt);
    }
    return 0;
}

C++: #include<cstdio>
using namespace std;
int main()
{
    int a,b,sum,cnt;
    while(scanf("%d %d", &a, &b)==2)
    {
        sum=a+b;
        cnt=0;
        while(sum>0)
        {
            sum/=10;
            cnt++;
        }
        printf("%d\n",cnt);
    }
    return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>

using namespace std;


int main()
{
	int a[200],b[200];
	for (int s=0; s <= 200; s++)
	{
		cin >> a[s]>>b[s];
		if (a[s] + b[s] < 10)
		{
			cout << 1 << endl;
		}
		else if (a[s] + b[s] < 100)
		{
			cout << 2 << endl;
		}
		else if (a[s] + b[s] < 1000)
		{
			cout << 3 << endl;
		}
		else if (a[s] + b[s] < 10000)
		{
			cout << 4 << endl;
		}
		else if (a[s] + b[s] < 100000)
		{
			cout << 5 << endl;
		}
		else if (a[s] + b[s] < 1000000)
		{
			cout << 6 << endl;
		}
		else if (a[s] + b[s] < 10)
		{
			cout << 7 << endl;
		}
	}
		return 0;
}