Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int
		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}
		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

C++: #include<iostream>

using namespace std;
 
int main(){
  int x[3],y[3],sum,i;
  int digit[3] = {0};

  for(i=0; i<3; ++i){
    cin >> x[i] >> y[i];
  }

  for(i=0; i<3; ++i){
    sum = x[i] + y[i];

    if(sum == 0){
      digit[i] = 1;
    }

    while(sum != 0){
      sum = sum / 10;
      ++digit[i];
    }
  }

  for(i=0; i<3; ++i)
    cout << digit[i] << "\n";

    return 0;
}

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

int digit(int x)
{
    int i = 0;
    int j = 1;
    while (j <= x) {
        j *= 10;
        i++;
    }
    return i;
}
int main()
{
    int m[2];
    int output[200];
    int i = 0;
    while (cin >> m[0] >> m[1]) {
            output[i++] += digit(m[0] + m[1]);
    }
    for (int j = 0; j < i; j++)
        cout << output[j] << endl;
}

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

C++: #include <iostream>

using namespace std;

int sum(int n){
int res = 1;
while(n / 10 > 0){
res++;
n/=10;
}

return res;
}

int main()
{
int a,b;
while(~scanf("%d %d",&a,&b)){
printf("%d\n",sum(a)+sum(b));
}

return 0;
}

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

int main()
{
	int a, b, i = 10;
	while (cin >> a >> b) {
		for (int j = 1;; j++) {
			if (a + b < pow(10, j)) {
				cout << j << endl; 
				break;
			}
		}
	}
	return 0;
}

C++: #include<iostream>

using namespace std;

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

C++: #include<iostream>
using namespace std;
int main(){

  int a,b;
  while(1){
    cin >> a >> b;
  int i = 0;
  a = a + b;
  while(a > 0){
    a = a / 10;
    i++;
      }

  cout << i << endl;

  }
}

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

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

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

int digits(int n){
  int res=0;
  while(n){
    n = n/10;
    res++;
  }
  return res;
}

int main(){
  int x,y;
  while(cin >> x >> y)
    cout << digits(x+y) << endl;
  return 0;
}

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

C++: #coding:UTF-8

a=int(input())
b=int(input())

a+=b;
b=1
for num in range(1,8):
    b*=10
    if a<b:
        print(num)
        break

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

// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002

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

C++: 

 #include<iostream>
#include<string>
#include<algorithm>
#include<vector>

using namespace std;

//Nayeem Shahriar Joy ,Applied Physics And Electronic Engineering , University of Rajshahi.

int main(){

	int a, b, sum;

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

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

#define REP(i,n) for(int i=0;i<n;++i)
#define rep(n) REP(i,n)


int main()
{
	int a,b; 

	while(cin>>a>>b)
	{
		int sum=a+b;
		int d=0;

		while(sum){ d++; sum/=10; }

		cout<<d<<endl;
	}

	return 0;
}

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

int countDigit(double num)
{
    return log10(num) + 1;
}

int main()
{
    double a, b;
    while(cin >> a >> b)
    {
        cout << countDigit(a + b) << endl;
    }
    return EXIT_SUCCESS;
}

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

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

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

int main(){

const int num = 3;
int t;

int a[num] = {0};
int b[num] = {0};
int c[num] = {0};
int cou = 0;

for(int i = 0; i < num; i++)
{
	cin >> a[i] >> b[i];
}

for(int i = 0;i < num;i++)
	{
		c[i] = a[i] + b[i];
		while(c[i] > 0)
		{
		c[i] /= 10;
		cou++;
		}
		if(cou == 0){cout << cou+1 << "\n";}
		else {cout << cou << "\n";}
		cou = 0;
	}
    return 0;
}

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

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

C++: /*
filename:Volume0-0002-Digit Number
last edited at 2015/8/15 by charis
*/

#include<iostream>

int main(){
	
	int a,b,c,x,i,m,n;
	std::cin >>a>>b;
	
	c=a+b;
	
	for (x=1; 1; x++){
		m=10;
		for (i=1; i<x; i++) m*=10;
		n=c/m;
		if(n==0)break;
		
	}
	
	std::cout<<x<<"\n"; 
	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77676";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

C++: 
/* vo0_02.cpp */
#include <iostream>
using namespace std;

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

	while (true) {

		cin >> a >> b;
		if (cin.eof()) break;

		c = a + b;
		
		count = 1;
		for (; c >= 10; c /= 10) count++;

		cout << count << '\n';
	}

	return 0;
}

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

int main(){
int a;
int b;
int c;
int n;
int d;
while(cin >> a >> b){
c=a+b;
d=1;
n=0;
while(1){
if(d<c){break;}
d=d*10;
n=n+1;}
cout << n << endl;
}
    return 0;
}