Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

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

int main() {
    int a, b;

    for(int i = 0; i < 201; i++){
      a = -1, b = -1;
      cin >> a >> b;

      if(a + b == -2){
        break;
      }
      else{
        cout << a + b << endl;
      }
    }
    
}

C++: #include<stdio.h>
int main()
{
	
	int a,b,x,n=0;
	while(n<200)
	{
	scanf("%d%d",&a,&b);
	if((a>=0&&a<=1000000)&&(b>=0&&b<=1000000))
	{
		x=a+b;
		
		if((x/1000000)>=1)
			printf("7");
		else if((x/100000)>=1)
			printf("6");
			else if((x/10000)>=1)
				printf("5");
				else if((x/1000)>=1)
					printf("4");
					else if((x/100)>=1)
						printf("3");
						else if((x/10)>=1)
							printf("2");
							else 
								printf("1");

	}
	n++;
	}
	return 0;
}

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

int main() {
  unsigned int x, y;
  std::iostringstream ss;

  std::cin >> x >> y;
  ss << x+y;
  std::cout << ss.str.size  << std::endl;
}

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

int main(){
    int a,b;
    while(true){
        cin >> a >> b;
        cout << to_string(a+b).size() << endl;
    }
}

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

int main() {

	vector<int> ans;
	int a, b;
	//int cnt = 0;

	while (1) {
		cin >> a >> b;
		if (cin.eof()) { break; }
		ans.push_back(a + b);
	}

	for (int i = 0; i < ans.size(); i++)
	{
		string str = to_string(ans[i]);
		cout << str.size() << endl;
	}

	return 0;
}

C++: #include <iostream>
using namespace std;
int main() {
	int A, B, C, i = 10, test = 1,hund = 0;
	while(hund == 0)
	cin >> A >> B;
	C = A + B;
	if (C<10) {
		cout << 1 << endl;
	}
	else {
		while (test != 0) {
			i = i * 10;
			test++;
			if (C<i) {
				cout << test << endl;
				test = 0;
			}
		}
	}
}

C++: #include <iostream>
using namespace std;
 
int main() {
    int a, b, c;
    int x;
    int flg;
 
    while (1) {
        cin>>a;
        if (cin.eof()) break;
        cin>>b;
 
        c=a+b;
 
        x = 1;
        flg = 1;
        while (flg) {
            if ((c=c/10)>0)
                x++;
            else
                flg = 0;
        }
        cout<<x<<endl;
    }
    return 0;
}

C++: #include<iostream>
#include<cstdio>

using namespace std;

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

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

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

C++: #include <cmath>
#include <ctime>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <list>
#include <deque>
#include <stack>
#include <bitset>
#include <functional>
#include <numeric>
#include <utility>
#include <iomanip>
#include <cstdio>
#include <cctype>
#include <queue>
#include <complex>
#include <climits>

typedef long long ll;

using namespace std;

int main(void){
	int a, b;
	while(1){
		if(cin >> a == 0) break;
		cin >> b;

		if(a==0 && b==0){
			cout << "1" << endl;
			continue;
		}

		int count = 0;
		int c = a + b;
		while(c != 0){
			c /= 10;
			count++;
		}

	cout << count << endl;

	}

	return 0;
}

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

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

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

int main() {
	int a, b;
	int D[200] = { 0 };
	for (int i = 0; i < 200; ++i) {
		int digits = 1;
		cin >> a >> b;
		int n = a + b;
		n /= 10;
		while (n) {
			++digits;
			n /= 10;
		}
		D[i] = digits;
	}

	for (int i = 0; i < 200; ++i) {
		if (D[i] == 0) {
		}
		else {
			cout << D[i] << endl;
 		}
	}
}

C++: #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
   char sum[1000];
int main()
{

    int a,b,cou,t;
    while(cin>>a>>b)
    {
        sprintf(sum,"%d",a+b);
        printf("%d\n",strlen(sum));


    }

    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main(){
  int sum, ans, n1, n2;
  scanf("%d%d", &n1, &n2);
  sum = n1+n2;
  ans = (int)log10((double)sum) + 1;
  cout<<ans<<endl;
  return 0;
}

C++: #include <iostream>
#include <cmath>

using namespace std;
 
int main() {
    int a,b;
   while(cin>>a>>b) {
     a = log10(a+b) +1;
cout<<a<<endl;
}
return 0;
}

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

int main(){
  int a,b;
  int an[1000];
  int con[1000];
  int i=0,j,k;

  while(cin>>a>>b){
    an[i] =a + b;
    con[i] = 1;
    while(an[i]>=10){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  cout<<endl;
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

C++: #include<iostream>
#include<math.h>
using namespace std;
int main()
{
	float a,b,sum;
	int cont=0;
	cin>>a;cin>>b;
	sum=a+b;
	do
	{
		sum=sum/10;
		cont++;
	}while(floor(sqrt(sum))!=0);
	cout<<cont<<endl;
	return 0;
}

C++: 
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

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

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

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

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

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

int main() {
	int a, b, ab, c = 0;


	while (cin >> a >> b) {
		ab = a + b;
		for (ab; ab > 0; ab /= 10) {
			c++;
		}
		cout<<c<<endl;
		c = 0;
	}
	return 0;
}

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

int main()
{
	int a, b, sum, result=0;
	do{
		scanf("%d %d", &a, &b);
	}while(a < 0 || b < 0);
	sum = a + b;
	while (sum > 0){
		sum /= 10;
		result++;
	}
	cout << result;
	return 0;
}