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 <string>

int GetDigit(int n)
{
    int d = 1;
    while(n >= 10){
        n /= 10;
        ++d;
    }
    return d;
}
int main()
{
    while(true){
        int a, b;
        std::cin >> a >> b;
        if(std::cin.eof()) break;
        std::cout << GetDigit(a+b) << std::endl;
    }
    return 0;
}

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

using namespace std;

int main()
{
	int a, b;
	string s;
	char sp[8];
	while(cin >> a >> b)
	{
		itoa(a + b, sp, 10);
		s = sp;
		cout << s.size() << endl;
	}
	return 0;
}

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555545555555555555";
	
	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<stdio.h>
int main(void) {
	int a, b, d = 1;
	while (1)
	{
		scanf("%d %d", &a, &b);
		for (size_t i = 10; ; i *= 10)
		{
			if ((a + b) / i == 0)break;
			d++;
		}
		printf("%d\n", d);
		a = 0; b = 0; d = 1;
	}
	return 0;
}

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

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

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

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

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

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

int main(void){
    int numtable[8]={-1,9,99,999,9999,99999,999999,9999999};
    int data[200][2];
    int result=-1;
    for(int i=0;i<200;++i){
        data[i][0]=-1;
        data[i][1]=-1;
    }
    for(int i=0;i<200;++i){
        if(0 == scanf("%d %d",&data[i][0],&data[i][1]))
            break;
    }
    for(int i=0;i<200;++i){
        if(data[i][0]!=-1&&data[i][1]!=-1){
            result=data[i][0]+data[i][1];
            for(int j=1;j<8;++j){
                if(result<=numtable[j]){
                    printf("%d\n",j);
                    break;
                }
            }
        }
    }
    return 0;
}

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

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

C++: #include <cstdio>
#include <algorithm>
int main()
{
        int n[10][3];
        int i;
        for(i=0;i<20;i++)
        {
                scanf("%d %d",&n[i][1],&n[i][2]);
                n[i][3]=n[i][1]+n[i][2];
                if(n[i][3]<10 && 0<n[i][3]) printf("1\n");
                if(n[i][3]<100 && 9<n[i][3]) printf("2\n");
                if(n[i][3]<1000 && 99<n[i][3]) printf("3\n");
                if(n[i][3]<10000 && 999<n[i][3]) printf("4\n");
        }

        return 0;

}

C++: #include<iostream>

int func( int n )
{
	int ret = 1;

	while( n != 1 ){
	 	n /= 10;
		ret++;
	}
	
	return ret;
}

int main()
{
	int a, b;
	std::cin >> a >> b;
	std::cout << func( a + b ) << std::endl;

 	return 0;
}

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

using namespace std;

int main()
{
	int a;
	int b;

	while (!feof(stdin)) {
		scanf("%d%d", &a, &b);
		printf("%d\n", (int)log10(a + b) + 1);
	}

		return (0);
	
}

C++: #include<iostream>
using namespace std;
 
int main() {
 
    int a, b;
 
    while (cin >> a >> b) {
        int n = 1;
        for(int i = 0; ; i++) {
            if (a + b < n)  {
                cout << i << endl;
                break;
            }
            n = n * 10;
        }
    }
      
    return 0;
 
}

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

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
  return 0;
  
}

C++: #include <iostream>
int a,b,c,d;int main(){while(std::cin>>a>>b){if(d=a+b){c=0;while(d){c++;d/=10;}}else c=1;std::cout<<c<<"\n";}return 0;}

C++: #include<stdio.h>
int main(void)
{
	int a,b,s;
	scanf("%d %d",&a,&b);
	s=a+b;
	if(s<10){
		printf("1\n");
	}
	else if(s>9&&s<100){
		printf("2\n");
	}
	else if(s>99&&s<1000){
		printf("3\n");
	}
	else if(s>999&&s<10000){
		printf("4\n");
	}
	else if(s>9999&&s<100000){
		printf("5\n");
	}
	else if(s>99999&&s<1000000){
		printf("6\n");
	}
	else if(s>999999&&s<10000000){
		printf("7\n");
	}
	return 0;
}

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

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

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

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

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

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

int main(void)
{
    int a, b;
    char buf[16];
    
    while (scanf("%d %d", &a, &b) != EOF) {
        sprintf(buf, "%d", a+b);
        printf("%d\n", buf);
    } 
    
    return 0;
}

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

#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin(),(s).end()

#define PI 3.14159265358479

typedef long long int ll;
typedef vector<long long int> vi;

int main(){
	ll a, b, i = 0;
	string s;
	while (cin >> a >> b){
		s = to_string(a + b);
		cout << s.length() << "\n";
	}
	return 0;
}

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

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