Go: package main

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

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 count = 0;
    int digit_num;
    int a[200],b[200];
    int sum;
    while(cin >> a[count] >> b[count]){
        if(a[count] >=0 && a[count] <= 1000000)
            if(b[count] >= 0 && b[count] <= 1000000){
                sum = a[count] + b[count];
                digit_num = 1;
                while((sum/10) != 0){
                    digit_num ++;
                    sum = sum / 10;
                }
                cout << digit_num<<endl;
                count++;
                if(count >200) break;
            }
    }
    return 0;
}

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

using namespace std;

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

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

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

C++: #include<stdio.h>

void lank(int,int);

int main(){
	int n,m;
	while(1){
		scanf("%d %d",&n,&m);
		lank(n,m);
	}
}

void lank(int a,int b){
	int i,sum=a+b;
	for(i=1;sum/10!=0;i++)sum/=10;
	printf("%d\n",i);
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,c;
    do{
    cin >> a >> b;
    c = a+b;
    if (c>1000000)
        cout << "7" << endl;
    else if (c>100000)
        cout << "6" << endl;
    else if (c>10000)
        cout << "5" << endl;
    else if (c>1000)
        cout << "4" << endl;
    else if (c>100)
        cout << "3" << endl;
    else if (c>10)
        cout << "2" << endl;
    else
        cout << "1" << endl;
} while (true);
}

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

int main(){
    int a,b,c,i;
	for(int j=0;j<200;j++){
		cin >> a >> b;
		if(a==0 && b==0)break;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << endl;
	}

    
    return 0;
}

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

int main()
{
	while(1)
	{
	int a,b,c;
	stringstream s;

	cin >> a >> b;
	c = a+b;

	s << c;
	cout << s.str().size() << endl;
	}
	return 0;
}

C++: #include <stdio.h>

int order(int n) {
	int ord = 0;
	while (n > 0) {
		n /= 10;
		ord++;
	}
	return ord;
}

int main(void) {
	int a, b;
	while (scanf("%d%d", &a, &b) == 2) {
		printf("%d\n", order(a+b));
	}
	return 0;
}

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 datas[2][200] ;
int datanum ;

int sum[200] ;
int solve[200] ;

int main()
{
	cin >> datanum ;

	for( int i = 0 ; i < datanum ; i ++ )
	{
		cin >> datas[0][i] ;
		cin >> datas[1][i] ;

		sum[i] = datas[0][i] + datas[1][i] ;
	}

	for( int i = 0 ; i < datanum ; i ++ )
	{
		for( int j = 1 ; j < 7 ; j ++ )
		{
			if( (sum[i] / 10*j) < 10 )
			{
				solve[i] = j+1 ;
				j = 10 ;

				cout << solve[i] << "\n" ;
			}
		}
	}
	return 0 ;
}

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;
scanf("%d",&x);scanf("%d",&y);
w=x+y; 
while(1)
{
if(w/10==0){cou++;break;}
else {w=w/10; cou++;}
}
printf("%d\n",cou);
return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
	int c,g,a,b;
	while(scanf("%d%d",&a,&b)!=EOF)
	{
		c=0;
		g=a+b;
		while(1)
		{
			if(g/10>=1)
				c++;	
			else 
				break;
			g/=10;
		}		
		cout<<c+1<<endl;
	}
	return 0;
}

C++: #include <cmath>
#include <iostream>
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 <cmath>
int main()
{
  while (!std::cin.eof()) {
    int a, b;
    std::cin >> a >> b;
    if (std::cin.eof()) break;
    for (int i = 1; i < 7; i++) {
      if (a + b < pow(10, i)) {
        std::cout << i << std::endl;
        break;
      }
    }
  }
  return 0;
}

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

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

int main() {
	int a,b,c = 0,ans = 0;
	for(int i = 0; i < 200; i ++){
		cin >> a >> b;
		c = a + b;
		ans = (int)log10((double)c) + 1;
		cout << ans << endl;
	}
	return 0;
}

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

int main() {
	int a, b;
	while (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 <iostream>  
  
using namespace std;  
   
  
int main()   
{  
    int n1,n2;
     cin>> n1;
     cin>> n2;
      int sum;
       sum= n1 + n2;
       while(sum)
{
        int d;
        int count= 0;
        d= sum % 10;
        count++;
        sum= sum / 10;
}
     cout<<count<<endl;
}

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

using namespace std;

int main()
{
	int a,b,n,c=1000000,p=7;
	for(int i=1;i<=200;i++){
		cin>>a>>b;
		n=a+b;
		while(1){
			if(n>=c){
			break;
			}
			else{
			p--;
			c/=10;
			}
		}
		cout<<p<<endl;
		p=7,c=1000000;
	}
	return 0;
}

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

int main(void){
  int c = 0, i, j, a, b, d;
  char tmp[8]; // 0 - 1000000
  for(j = 0; c != EOF && j <= 200; j++){
    i= 0;
    while((c = getchar()) != EOF && c != '\n'){
      tmp[i++] = c;
      if(c == ' '){
        tmp[i] = '\0';
        a = atoi(tmp);
        i = 0;
      }
    }
    tmp[i] = '\0';
    b = atoi(tmp);

    d = a + b;
    for(i = 0; d != 0; i++){
      d /= 10;
    }
    printf("%d\n", i);
  }
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	while (1){
		cin >> a >> b;
		if (cin.eof()) break;
		if (a == b and a == 0) cout << 1 << endl;
		else cout << int(log10(a + b)) + 1 << endl;
	}
}

C++: #include <stdio.h>

int main(int argc, char const *argv[])
{
	int a, b, count, sum;
	while(scanf("%d%d", &a, &b)!=EOF) {
		count = 1;
		sum = a+b;
		while((sum/=10)!=0) {
			count++;
		}
		printf("%d\n", count);
	}
	return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
  
int main()
{
    int num1, num2,sum;
    int n = 1;
    
    cin >> num1 >> num2;
  
    sum = num1 + num2;
  
    while (true)
    {
        
        int po = pow(10, n);
        if (!((sum % po) == sum))
            n++;
        else
            break;
    }
  
    cout << n << endl;
}

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

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

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

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		int i = i + j ;
		int count ;

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

		cout << count << endl ;
	}

	return 0 ;
}

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

int main(void){
	int a,b,dig = 0;
	int sum;

	while(1){
		std::cin >> a >> b;
		sum = a + b;
		while(1){
			if(sum<1) break;
			sum = sum / 10;
			dig++;
		}
		std::cout << dig << "\n";
		if(std::cin.eof()){
			break;
		}
		dig = 0;
	}
	return 0;
}