Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

C++: #include<iostream>

using namespace std;

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

C++: #include <iostream>
using namespace std;
int main (){
  int a;
  int b;
  int k;
  int h;
  for(;;){
  cin >>a>>b;
  k=a+b;
  h=0;
  if (k<10&&h==0){
      cout << "1"<<endl;
      h=1;
  }
  if (k<100&&h==0){
    cout << "2"<<endl;
    h=1;
      }
  if (k<1000&&h==0){
    cout << "3"<<endl;
    h=1;
      }
  if (k<10000&&h==0){
    cout << "4"<<endl;
    h=1;
      }
  if (k<100000&&h==0){
    cout << "5"<<endl;
    h=1;
      }
  if (k<1000000&&h==0){
    cout << "6"<<endl;
    h=1;
      }
  if (k<10000000&&h==0){
    cout << "7"<<endl;
    h=1;
      }
  if (k<100000000&&h==0){
    cout << "8"<<endl;
    h=1;
      }
  if (k<1000000000&&h==0){
    cout << "9"<<endl;
    h=1;
      }
  if (k<10000000000&&h==0){
    cout << "10"<<endl;
    h=1;
      }
  }
}

C++: #include <iostream>

int main(int argc, const char * argv[]) {
    
    std::string a, b ;
    
    
    while ( std::cin >> a >> b ) {
        printf("%lu\n", a.length() + b.length()) ;
    }
    
    return 0;
}

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


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

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

int main(){
  int a,b;
  int n = 0;
  int k = 1;
  int i = 0;
  int x[200]={};
   
    
    
  while(i < 200 && cin >> a >> b){
      
      //条件に合わないデータの判定
      if(a < 0 || a > 1000000 || b < 0 || b > 1000000){
          cout << "データを入力し直してください!!" << endl;
          break;
      }
      
      else{
          i++;
          n = a+b;
          
    //桁数判定部分
    while(n/10 !=0){
        k++;
        n = n/10;
    }
          x[i-1] = k;
          k = 1;
      }
  }
    
    //表示部分
    for(int j = 0;j < i;j++)
        cout << x[j] << endl;
    
  return 0;
}

C++: #include<iostream>

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

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

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

C++: #include <iostream>
#include <cmath>
int main(){
while(1){
long a, b, digits;
std::cin >> a;
std::cin >> b;
if(a == 0 && b == 0)
digits = 1;
else
digits = (int)(std::log10((double)(a+b))) + 1;
std::cout << digits << std::endl;
}
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<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  int ans[201];
  int cnt=0;
  while(cin>>a>>b){
    int temp=a+b;
    int n=9;
    int count=1;
    while(1){
      if(n>=temp){
	break;
      }else{
	count++;
	n=n*10+9;
      }
    }
    ans[cnt]=count;
    cnt++;
  }
  for(int i=0;i<cnt;i++){
    cout<<ans[i]<<endl;
  }
  return 0;
}

C++: #include<iostream>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
        else if(a[i]+b[i]==1000000){
            cout<<"7"<<endl;
        }
    }
    return 0;
}

C++: #include <bits/stdc++.h>
 
using namespace std;
 
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define FOR(i, s, n) for(int i = s; i < (int)n; i++)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i)
#define SZ(a) int((a).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define INF 1 << 25
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x) cerr << #x << " = " << (x) << "\n";
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n";
#define sq(n) (n) * (n)
 
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned int uint;
typedef unsigned long long ull;
 
const double EPS = 1e-10;
const double PI = acos( -1.0 );
 
int a, b;

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

C++: #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define shosu(n) setprecision(n)
using namespace std;
int main() {
  int A, B, ans = 1;
  while (cin >> A >> B) {
    int L = A + B;
    ans = 1;
    for (int i = 0;; i++) {
      L /= 10;
      if (L == 0)
        break;
      ans++;
    }
    cout << ans << endl;
  }
}

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

int main(){
	vector<int> sum;
	int a, b;
	while (cin >> a >> b) sum.push_back(a + b);
	for_each(sum.begin(), sum.end(), [](int i) {
				if (i == 0) {
					cout << i << endl;
				} else {
					cout << static_cast<int>(log10(i)) + 1 << endl;
				}
			});
	return 0;
}

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

int main()
{
    int a, b;
    while (1) {

        cin >> a >> b;
        if (a == 0 && b == 0)
            break;
        int c = a + b;
        int ans = 0;
        while (c != 0)
        {
            c /= 10;
            ans++;
        }
        cout << ans << endl;
    }
    return 0;
}

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

int main(){
  int x, y;

  while(1){
    cin >> x >> y;
    cout << to_string(x + y).size() << endl;
    if(cin.eof()) {break;}
  }

  return 0;
}

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

int main() {
  char x, y;
  while(true) {
    cin >> x >> y;
    if(x == '\0') {
      break;
    }
    cout << (int)x + (int)y << endl;
  }
}

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

int main(){
    vector<int> a(3),b(3);
    for(int i=0;i<3;i++){
        cin >> a[i];
        cin >> b[i];
    }
    for(int i=0;i<3;i++){
        int c = 1;
        int s = a[i] + b[i];
        while(s >= 10){
            s /= 10;
            c++;
        }
        cout << c << endl;
    }
}

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

int f(int c){
	int d = 1;
	
	while(c >= 10){
		c = c/10;
		d++;
	}
	
	cout << d << endl;
	return 0;
}

int main() {
	int i;
	for(i=0; i < 3; i++){
		int a;
		int b;
		cin >> a;
		cin >> b;
		
		int c = a + b;
		f(c);
	}
	
	return 0;
}