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>
#include <cmath>
using namespace std;

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

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

int main() {
	int a, b;
	cin >> a >> b;
	if (a + b < 10) cout << "1" << endl;
	else if (a + b < 100) cout << "2" << endl;
	else if (a + b < 1000) cout << "3" << endl;
	else if (a + b < 10000) cout << "4" << endl;
	else if (a + b < 100000) cout << "5" << endl;
	else if (a + b < 1000000) cout << "6" << endl;
	else if (a + b < 10000000) cout << "7" << endl;
	else if (a + b < 100000000) cout << "8" << endl;
	else if (a + b < 10000000000) cout << "9" << endl;
return 0;
}

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

using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

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

C++: #include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int b[2];
	int count;

	for(i = 0; i < 2; i++){
		scanf("%d", &a[i]);

		count = 0;
		do{
			count++;
		}while((a[i] = a[i]/10) > 0);

		b[i] = count;
	}

	printf("%d\n", b[0] + b[1]);
	
	return 0;
	
}

C++: #include <cstdio>

int main()
{
  int a, b;
  int cou;

  while (scanf("%d %d", &a, &b) != EOF){
    a += b;
    cou = 0;
    while (1){
      if (a == 0){
        break;
      }

      cou++;
      a /= 10;
    }
    printf("%d\n", cou);
  }

  return (0);
}

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

int main()
{
  int a,b,wa;
  int count;

  while(cin >> a >> b){
    count=0;
    wa=(a+b)*10;
    while(wa /= 10){
      count++;
    }
    cout << count << endl;
  }
}

C++: #include <iostream>

using namespace std;

int main()
{
    int a;
    int b;
    int c;
    int digit=0;

    cin >> a;
    cin >> b;

    c = a+b;

    while (c>=1)
    {
        c = c/10;
        digit++;
    }

    cout << digit;

    return 0;
}

C++: #include<iostream>
using namespace std;
int main (){
	int a,b,gou,p,i,j;
	for(i=0;i<200;i++){
		p=0;
		gou=0;
		j=0;
		cin>>a>>b;
		gou=a+b;
		for(;;){
			if(gou>0&&(a<=1000000&&a>=0)&&(b<=1000000&&b>=0)){
				p++;
			}
			else {
				j=2;
				break;
			}
			gou=gou/10;
		}
		if(j!=2){
		cout<<p<<endl;
		}
	}
	return 0;
}

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

int main()
{
	int a,b,c;
	char str[16];
	cin >> a >>b;

	c = sprintf(str,"%d",a + b);

	cout << c << endl;
	return 0;
}

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

C++: #include <iostream>

using namespace std;

int main() {
	int a[500] = { 0 }, b[500] = { 0 }, sum[500] = { 0 }, d[500] = { 0 }, k[500] = { 0 };
	int i = 0;
	while (1) {
		cin >> a[i] >> b[i];
		if (a[i] == 0 && b[i] == 0)break;
		sum[i] = a[i] + b[i];
		while (sum[i]) {
			sum[i] /= 10;
			k[i]++;
		}
		i++;
	}
	for (int j = 0; j <i;j++) {
		cout << k[j] << endl;
	}
	return 0;
}

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

#define FOR(i,l,r) for(int i = (l);i < (r);i++)
#define ALL(x) (x).begin(),(x).end()
template<typename T> bool chmax(T& a,const T& b){return a < b ? (a = b,true) : false;}
template<typename T> bool chmin(T& a,const T& b){return b < a ? (a = b,true) : false;}
typedef long long ll;

int A,B;

int digit_count(int x)
{
	int res = 0;
	do{
		res++;
	}while(x /= 10);
	return res;
}

int main()
{
	while(~scanf("%d%d",&A,&B)){
		printf("%d\n",digit_count(A + B));
	}

	return 0;
}

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

int digit_num(int num){
  int ret = 1;
  int base = 10;
  int rest = num / base;
  
  while(rest != 0){
    ret++;
    rest /= base;
  }
  
  return ret;
}

int main(){
  while(!cin.eof()){
    int a, b;
    cin >> a;
    cin >> b;

    int c = a + b;
    cout << digit_num(c) << endl;
  }

  return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int a, b;
	string s;
	while (cin >> a >> b) {
		s = to_string(a+b);
		cout << s.size() << endl;
	}
	return 0;
}

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

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

	sum = a + b;

	sum = sum / 10;

	while(sum >= 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;
	cin >> a;
	

	return 0;
}

C++: // ------------------------------------
// Date:2018/ 2/11
// Problem:0002 : DigitNumber 2.cpp
//
// ------------------------------------

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

#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define REP(i,n) FOR(i,0,n)

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

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

int number_of_digits(int n) {
	int result = 0;
	while (n != 0) {
		result++;
		n /= 10;
	}
	return result;
}

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

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

C++: #include<stdio.h>

int main(){
    int a,b,sum,i;
    while(scant("%d %d",a,b)!=-1){
        sum=a+b;
        for(i=0;sum!=0;i++){
            sum=sum/10;
        } 
        printf("%d\n",i);
     }
    
    return 0;
}

C++: #include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
    int IsB = 0,i = 0;
    char a[100],b[100],*digits;
    while(1){
        char str = '\0';
        scanf("%c",&str);
        if(str == '\0')break;
        if(str == ' '){
            i = 0;
            IsB = 1;
        }else if(str == '\n'){
            sprintf(digits,"%d",atoi(a) + atoi(b));
            printf("%d\n",strlen(digits));
            i = 0;
            IsB = 0;
        }else if(IsB == 0){
            a[i++] = str;
        }else{
            b[i++] = str;
        }
    }
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
	int a,b,sum,i,k[100];
	while(scanf("%d%d",&a,&b)!=EOF)
	{
		sum=a+b;
		i=0;
		while(sum)
		{
			sum/=10;
			i++;
		}
		printf("%d\n",a);

	}
	return 0;
}

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

template<class T>
T input()
{
	T val;
	std::cin >> val;
	return val;
}

int main()
{
	std::array<int, 200> hoge;
	for (int i = 0; i < 200; ++i)
		hoge[i] = input<int>() + input<int>();

	for (int i = 0; i < 200; ++i)
		std::cout << static_cast<int>(log10(hoge[i])) + 1 << std::endl;
	return 0;
}