Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

C++: #include <iostream>  
using namespace std;  
 
int main()   
{  
    int n1,n2;
cin>>n1;
cin>>n2;
int count=0;
int sum;
sum= n1 + n2;
while(sum)
{
int d;
d= sum % 10;
count++;
sum= sum / 10;
}
cout<<count<<endl;
}

C++: #include <iostream>

using namespace std;

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

    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	
	int a,b,sum,keta=0;
	cin >> a >> b;
	sum=a+b;
	while(1){
		if(sum<10){keta=keta+1;cout << keta << endl;return 0;}
		else sum=sum/10;keta=keta+1;
	}

	return 0;
}

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

int main(){

	int a = 0;
	int b = 0;
	int c = 0;
	int e = 0;

	for (int i = 0; i < 3; i++)
	{
		scanf("%d", &a);
		scanf("%d", &b);

		c = a + b;

		for (e = 0; c != 0; e++)
		{
			c /= 10;
		}

		printf("%d\n", e);
	}

	return 0;
}

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

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

}
return 0;
}

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

 int digit(int a)
 {
  int count=0;
  while (a)
  {
    a/=10 ;
    count++;
  }
  return count;
}

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

C++: include<bits/stdc++.h>
#include<cmath>
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>
#include <vector>
#include <limits>
#include <algorithm>
#include <functional>
#include <cstdio>
using namespace std;

#define REP( i, n )	for( int (i) = 0; (i) < (n); (i)++ )
#define ALL( x )	(x).begin(), (x).end()

int main() {
	int a, b;
	while( ( scanf( "%d %d", &a, &b ) ) != EOF ) {
		
		int sum = a + b;

		int count = 1;
		while( 1 ) {
			sum /= 10;
			if( sum < 1 ) break;
			count++;
		}

		cout << count << endl;
	}

}

C++: #include <iostream>

int main()
{
    for (int i = 0; i < 200; i++) {
        int a;
        int b;
        std::cin >> a;
        std::cin >> b;

        int c = a + b;
        int digit = 1;
        bool loop = true;
        while (loop) {
            if (c / 10 >= 1) {
                digit += 1;
                c = (c - (c % 10)) / 10;
            } else {
                loop = false;
                break;
            }
        }
        std::cout << digit << std::endl;
    }
}

C++: #include<iostream>
using namespace std;
int keta(int a,int b)
{
	return (a+b)/10-(a+b)%10;
}
int main()
{
	int a[200],b[200];
	int i=0;
	while(cin){
		cin>>a[i],b[i];
		i++;
	}
	int j = 0;
	while(i<j){
		cout<<a[j],b[j];
		cout<<"\n";
		j++;
	}
	getchar();
	getchar();
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char const* argv[])
{
	int hoge,a,b;

	cin >> a >> b;

	hoge = a + b;

	int i;
	for( i = 0;(hoge /= 10) != 0 ; i++ );

	cout << ++i;

}

C++: #include<iostream>

using namespace std;

int main()
{
	int n1,n2;
	int ans;
	int sum;
	
	for(;cin >> n1;)
	{
		cin >> n2;
		
		ans=1;
		sum=n1+n2;
		
		for(;sum/10>0;sum/=10)
			ans++;
		
		cout << ans << endl;
	}
}

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

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

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

using namespace std;

int main()
{
	int deta;
	int deta2;
	int a, total;

	while (scanf ("%d %d", &deta, &deta2) != EOF){
		a = deta + deta2;
		total = 0;

		while (1){
			if (a < 10){
				total++;
				break;
			}
			else {
				a = a / 10;
				total++;
			}
		}
		printf("%d\n", total);
	}

	return 0;
}

C++: #include<iostream>

int Digit(int x)
{
	int n=0;

	do
	{
		x/=10;

		++n;
	}
	while(x>=1);

	return n;
}

int main()
{
	int a, b;

	while(std::cin >> a >> b)
	{
		std::cout << Digit(a+b) << '\n';
	}
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[3];
  int b[3];
  int ans;
  for(int i=0;i<3;i++){
    cin >> a[i] >> b[i];
    ans = a[i] + b[i];
    if(ans>=0 && ans<=99){
      cout << "2" <<endl;
    }
    if(ans>=100 && ans<=999){
      cout << "3" <<endl;
    }
    if(ans>=1000 && ans<=1999){
      cout << "4" <<endl;
    }
  }
  return 0;
}

C++: #include <sstream>
#include <iostream>
#include <string>
 
using namespace std;
int main(){
	string str1, str2;
	cin >> str1 >> str2;
	cout << str1.length()+str2.length() << endl;
}

C++: #include <cstdio>
#include <algorithm>
#define ele long
using namespace std;
ele a,b;
inline ele d(ele x){
	if (x==0) return 1;
	ele s=0;
	while (x>0){
		++s;
		x/=10;
	}
	return s; 
}
int main(){
	while (~scanf("%d%d",&a,&b)) printf("%d\n",d(a+b));
	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;
	}
}

C++: #include <cstdio>
#include <algorithm>
#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int a,b,c,i;
    while(cin>>a>>b){
    	for(i=1;i<=7;i++){
    		c=pow(10,i);
    		if((a+b)/c==0){
    			cout<<i<<endl;break;goto p1;
    		}
    	}
    }
    p1:return 0;
}

C++: #include<iostream>
#include<vector>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <map>
#include <sstream>
#include <cmath>
#include <ctime>
#include <bitset>
#include <utility>
#include <set>
#include <numeric>

using namespace std;

int main()
{
    long long a,b,c,sum;
    //freopen("11854.txt","r",stdin);
    while(scanf("%llu %llu",&a,&b)==2)
    {
        sum=0;
        c=0;
        sum=a+b;
        while(sum!=0)
        {
            sum=sum/10;
            c++;
        }
        printf("%llu\n",c);
    }
    return 0;
}

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

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

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

int main() {
	int a, b;
	scanf("%d%d", &a, &b);
	int c = to_string(a + b).length();
	printf("%d\n", c);
}

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

using namespace std;

int main(){
	int a,b;
while(cin>>a>>b){
	}
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(2>99){
		cout<<5<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}