Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

C++: #include<stdio.h>


int main(){
	char a[21];
	char b[21];
	int A;
	int B;
	int i;
	int l=1;
	fgets(a,sizeof(a),stdin);
	fgets(b,sizeof(b),stdin);
	sscanf(a,"%d", &A);
	sscanf(b,"%d", &B);
	i=A+B;
	while((i  >= 10)){
		i=i/10;
		l=l+1;
	}
	printf("%d" ,l);
}

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

int get_number_of_digits(int num)
{
    if(num == 0)
        return 1;
        
    int digit = 0;
    while(num != 0){
        num /= 10;
        ++digit;
    }
    return digit;
}

int main()
{
    const int num_of_data = 200;
    const int min = 0;
    const int max = 1000000;
    
    int a, b, i = 0;
    //std::cout << num_of_data << "個のまでの整数データa bの入力" << std::endl;
    while(std::cin >> a >> b && i < 200){
        if(min <= a && a <= max && min <= b && b <= max){
            std::cout << get_number_of_digits(a + b) << std::endl;
            ++i;
        }
    }
    
    return 0;
}

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

int i,j,a,b,c,ans=0;

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

C++: #include <iostream>
using namespace std;
int main(){
  int a;
  int b;
  int k;//足した和
  int p;//引く数 
  int r;

  for(;;){
    cin >> a >> b;
    k=a+b;
    for(int i=0;i<1000001;i++){
      p=1;
      for(int j=1;j<i;j++){
	p=p*10;
      }
    
      if(k<p){
	cout << i-1 << endl;
	i=99999999;
      }	 
    }
  }
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=60000;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include <stdio.h>

using namespace std;


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

	while(scanf("%d %d",&a,&b)!=EOF){
		count=0;
		s=a+b;
		while(s!=0){
			s/=10;
			count++;
		}
		printf("%d\n",count);
	}

    return 0;
}

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		cin >> n >> m;
		sum = n + m;
		cout << sum << endl;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

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

using namespace std;

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

	while(cin >> a >> b){

	sum = log10(a+b) +1;
	

		cout << sum << endl;
	}
}

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

int main(){
int a,b;
while(cin>>a>>b){
cout<<(int)(log((double)a+b)-1)<<endl;
}

return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
    long int i,j,k,l=0;

    while(cin>>i>>j)
    {
    k=i+j;
    //cout<<k;
    while(k!=0)
    {
        k=k/10;
        l+=1;
    }
    cout<<l<<endl;
    l=0;
    }
    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <math.h>
#include <vector>
#include <queue>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
using namespace std;
#define rep(I,N) for(int I = 0; I < (int)(N); I++)
#define FIN(V) cout<<V<<endl
#define pb push_back
#define INF (1 << 30)
typedef pair<int, int> P;
typedef long long ll;
typedef priority_queue<int> pq;

int main(void){
	int s;
	while(cin>>s){
		int a, b;
		cin >> a >> b;
		int c = a + b;
		stringstream ss;
		string s;
		ss << c;
		s = ss.str();
		cout << s.size() << endl;
	}


	return 0;	
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
int main() {
	int a, b;
	while (std::cin >> a >> b) {
		int sum,ans=1;
		sum = a + b;
		for (int i = 10; !(sum / i==0); i*=10) {
			ans += 1;
		}
		std::cout << ans << std::endl;
	}
}

C++: #include <iostream>

using namespace std;

int main(void){

  int a,b;

  while(1){

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

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

C++:  #include <bits/stdc++.h>
#ifdef dbg
#include "./printer.hpp"
#else
#define dump(x) void(0)
#endif

using namespace std;
#define ll long long
inline long  toInt(string s) {long  v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
#define INF 100000

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

}

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

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

C++: #include <iostream>

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

  while(cin >> a){
    cin >> b;
    c=a+b;
    keta=1;
    while((c/=10)>0) keta++;
    printf("%d\n", keta);
  }
  
  return 0;
}

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

#include <iostream>
#include <string>
using namespace std;
int main() {
	int a, b; 
	while (cin >> a >> b) {
		string str = to_string(a + b);
		cout << str.length() << endl;
	}
}

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		n = -1;
		cin >> n >> m;
		if (n == -1) break;
		sum = n + m;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

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(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

C++: #include<iostream>
using namespace std;
int main(){
int a,b,sum,cnt=1;
while(cin>>a>>b){
sum=a+b;
while(1){
if (sum<10) break;
sum/=10;
cnt++;
}
cout<<cnt<<endl;
cnt=1;
}
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;
	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int a,b,sum,count=0,x=0;
	int keta[1000]={0};

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

		while(sum>=10)
		{
			sum=sum/10;
			keta[x]++;
		}

		keta[x]++;
		x++;
	}

	for(x=0;x<count;x++)
	{
		printf("%d\n",x,keta[x]);
	}

	return 0;
}

C++: #include<bits/stdc++.h>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cctype>

#include<cmath>
#include<iostream>
#include<fstream>

#include<string>
#include<vector>
#include<queue>
#include<map>
#include<algorithm>
#include<set>
#include<sstream>
#include<stack>

using namespace std;

int main()
{
    long long int n,i,j,a,b,c,aa,bb,digit,digit1,ck=0,dk=0;
    while(scanf("%lld %lld", &a, &b)!=EOF){

    aa = a +b;
    c = aa;
    while(aa){
        aa/=10;
        ck++;
        }

    cout<<ck<<endl;
    ck=0;
    }
}

C++: //#define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++cou;
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++cou;
			}
		}
		printf("%d", cou);
		cou = 0;
	}
}