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 <iostream>
using namespace std;

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

C++: #include<iostream>
using namespace std;
  
int main(){
    int a, b;
    int sum, digit;

    while(cin >> a >> b){
        sum = a + b;
        digit = 0;
        while(sum){
            sum = sum \ 10;
            digit++;
        };
    cout << digit << endl;
    };
    return 0;
}

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

using namespace std;

void digitLength()
{
    int a, b;
    int number;
    
    while(cin>>a>>b) //input several test cases
    {
        number=log10(a+b)+1; //calculate the digit number; if can be divided by 10, then +1 
        cout<<number<<endl;
    }
   
    return;
}
  
int main(){
  
    digitLength();
    return 0;
}

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

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

C++: #include <iostream>
    using namespace std;
    int main()
    {
        int n,m,sum,c=0;
        cin>>n>>m;
        sum=n+m;
        if(sum==0){
            c++;
        }
        while(sum!=0){
            sum=sum/10;
            c++;
        }
        cout<<c;
    }

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

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

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

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

int main()
{
int a=0,b=0,n[N],kaisu=0;

do{
 n[kaisu]=1;
 cin>>a>>b;
 if(a>=0 && b>=0 && a<=1000000 && b<=1000000)
 	{
	 a = a+b;
	 while(a>=10)
	 	{
		 a = a/10;
		 n[kaisu] += 1;
	 	}
 	}
 	kaisu++;
 	}while(kaisu<N && b!=999);

 for(int i=0 ; i<kaisu;i++)
  cout<<n[i]<<endl;
}

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

C++: #include<stdio.h>

int digit(int s){
	int d = 1;
	while(1){
		if(s >= 10){
			s = s/10;
			d++;
		}else{
			break;
		}
	}
	return d;
}


int main(){
	int a, b;

	while(scanf("%d %d", &a, &b) != EOF){
		printf("%d\n", digit(a + b));
	}

	return 0;
}

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

C++: #include<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;

/**
 * vector<int>ar(3);
 * for(auto&e:ar){
 *     scanf("%d",&e);
 * }
 * sort(ar.begin(),ar.end())
 * int sum=accumulate(ar.begin(),ar.end(),0);
 **/

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

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

int main(){
	// input
	int a, b, total, ans;
	while(cin >> a >> b && !cin.eof()){
		total = a + b;
		while(true){
			total /= 10;
			ans++;
			if(total == 0){
				break;
			}
		}
		cout << ans << endl;
	}

	return 0;
}

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

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

C++: #include<stdio.h>                                                                  
#include<iostream>                                                                 
                                                                                   
int main(void){                                                                    
  int x,y,z,keta=0;                                                                
  scanf("%d %d",&x,&y);                                                            
  z =x+y;                                                                          
  while(z>0){                                                                      
    z = z/10;                                                                      
    keta++;                                                                        
  }                                                                                
  std::cout << keta << std::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() {
	long a,b,c,ans;
	int i = 200;
	i--;
	while( i >= 0){
		cin >> a >> b;
		if(0 <= a  && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

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

int count_digits(int n) {
  return static_cast<int>(floor(log10(n))) + 1;
}

int main() {
  int n, m;
  while (!std::cin.eof() && std::cin.peek() != '\n') {
    std::cin >> n >> m;
    std::cout << count_digits(n + m) << std::endl;
    while (isspace(std::cin.peek())) { std::cin.ignore(); }
  }
}

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

int main(){
	int a, b;
	while(cin >> a >> b){
		cout << ((int)log10(a+b) + 1) << endl;
	}
}

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

int main(){
	int a_heap[3];
	int b_heap[3];
	int digit[3];
	int count;
	for(int i=0;i<3;i++){
		cin >> a_heap[i] >> b_heap[i];
		cout << endl;
	}
	for(int i=0;i<3;i++){
		int num1 = 1;
		int j;
		for(j=1;;j++){
			num1 = 10 * num1;
		if((a_heap[i] + b_heap[i])%10 < 1)
			break;
		}
		digit[i] = j;
	}
	for(int i=0;i<3;i++){
	cout << digit[i] << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include <cstdlib>
#include <vector>
#include <iomanip>
#include <queue>
using namespace std;


int GetDigit(int n){
	int i = 0;

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

	return i;
}
 
int main(){
	int a, b;
	int s;

	while(cin >> a >> b){
		s = a+b;
		cout << GetDigit(s) << endl;
	}

	return 0;
}

C++: #include<bits/stdc++.h>

using namespace std;

int main(void)
{
    int a, b;
    while(cin >> a >> b){
        cout << a+b << endl;
    }
    return 0;
}