Go: package main

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

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 <bits/stdc++.h>
using namespace std;

int a;
int b;

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

C++: #include <cstdio>
 
#define MAX 1000000
#define MIN 0
#define SIZE 200
 
int main() {
 int i,j;
 int a,b;
 int cnt = 0;
 int buf = 0;
 int sets[SIZE];
 
 while(scanf("%d %d",&a,&b) != EOF) {
  if((a < MIN) || (b > MAX)) {
   continue;
  }
  
  sets[cnt] = a + b;
  ++cnt;
 }

 for(i = 0;i <= cnt;++i) {
  for(j = MAX;j >= MIN;) {
   if((sets[i] / j) != 0) {
    ++buf;
    sets[i] -= (sets[i] / j) * j;
   }
  }
  
  buf = 0;
 }

 for(i = 0;i <= cnt;++i) {
  printf("%d\n",sets[i]);
 }

 return 0;
}

C++: //
//  main.cpp
//  sanpie
//
//  Created by h3037178 on 2017/07/28.
//  Copyright ?? 2017??´ ?????£?????????. All rights reserved.
//

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

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

int a,b,c,hasil;

int main()
{
	while(true)
	{
		scanf("%d %d",&a,&b);
		if (a=='\0')
		{
			break;
		}
		hasil=1;
		c=a+b;
		while(c>=10)
		{
			c=c/10;
			hasil++;
		}
		printf("%d\n",hasil);
	}
	return 0;
}

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int count(int x)
{
	int counter = 0, t;
	for (long temp = x; temp != 0;)
	{
		t = temp % 10;
		temp = temp / 10;
		if (t != 0)
			counter++;
	}
	return counter;
}
int main()
{
	long a, b;
	for (;;)
	{
		if (scanf("%ld%ld", &a, &b) == EOF)
			break;
		cout << count(a) + count(b) << endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){
    int a,b;
    
    while(cin >> a >> b){
        int cnt=1;
        int c=10;
        for(int i=0;i<8;i++){
            //cout << c << ' ' << cnt << endl;
            if((a+b)-c<0)break;
            //cout << a << ' ' << b << '=' << a+b << endl;
            cnt++;
            c*=10;
        }
        cout << cnt << endl;
    }
    
    
    return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
  int cnt = 0,
      x, y;
  while(cin >> x >> y){
    if(cin.eof())
      break;
    if(x < 0 || y > 1000000 || cnt > 200)
      break;
    cnt = to_string(x+y).length();
    cout << cnt << endl;
  }
}

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

}
return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int num[2];
	int numLength = sizeof(num) / sizeof(num[0]);
	int n = 1;
	int sum = 0;
	
	int h;
	for(h = 0; h < numLength; h++)
	{
		cin >> num[h];
		sum += num[h];
	}
	
	while(sum/10 != 0){
		n++;
		sum = sum / 10;
	}
	
	cout << n << endl;
	
	return(0);
}

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

int main()
{
  long n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  long sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

int main() {
    std::vector<int> digits;
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF)
    {
        int sum = a + b;
        int t = sum / 10;
        int digit = 0;
        while (t > 0) {
            digit ++;
            t = t / 10;
        }
        digits.push_back(digit);
    }

    for (int i = 0; i < digits.size(); i++) {
        std::cout << digits[i] << std::endl;
    }

    return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    int a,b,c;
    REP(j,200){
    if(!cin)
        return 0;
    cin >> a >> b;
    c = a+b;
    REP(i,10){
        c/=10;
        if(c==0){
            cout << i+1 << "\n";
            break;
        }
    }
    }
}

C++: #include<bits/stdc++.h>
using namespace std;

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

C++: #include <iostream>

using namespace std;

int main(){
  int a, b;
  while(cin >> a >> b){
    int t = a+b;
    int res = 0;
    while(t){ res++; t /= 10; }
    cout << max(1, t) << endl;
  }
}

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    vector<int> v1, v2;
    int n, m;
    while(cin) {
        cin >> n >> m;
        v1.push_back(n);
        v2.push_back(m);
    }
    
    for(int i=0; i+1<v1.size(); i++) {
        int count = 0;
        int num = v1[i] + v2[i];
        while(num > 0) {
            num /= 10;
            count++;
        }
        cout << count << endl;
    }
    return 0;
}

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

int main(){
	int a, b, ab, digits[200], cnt=0, i;
	while(cin>>a>>b){
		digits[cnt]=1;
		ab = a+b;
		while(ab/=10){
			digits[cnt]++;
		}
		cnt++;
	}
	for(i=0;i<cnt;i++){
		cout<<digits[i]<<endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b = 1;
    int ans,line = 0;
    
    for (int i = 0; i < 3; i++){
        std::cin >>a>>b;
        ans = a + b;
        ans /= 10;
        if(ans  <= 9){
            ans = 2;
        }
        else if(ans <= 99){
            ans = 3;
        }
        else if(ans <= 999){
            ans = 4;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

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

int main(){

	int a[2];
	cin >> a[0] >> a[1];
	int check=a[0]+a[1],retval=1;
	while(check>=10){
		check/=10;
		retval++;
	}
	cout << retval << endl;

    return 0;
}

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

int main(){
	int a,b,c;
	string ss;
	while(cin>>a>>b){
		c=a+b;
		ss=to_string(c);
		c=ss.length();
		cout<<c<<endl;
	}
	return 0;
}

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

using namespace std;

typedef long long ll;

int num_of_keta(int x) {
  int ret = 0;

  do {
    ret++;
    x /= 10;
  }while(x);

  return ret;
}

int main() {
  int x, y;

  while(cin >> x >> y) {
    std::cout << num_of_keta(x+y) << std::endl;
  }
}

C++: #include<stdio.h>
int main(void)
{
	int i,j,cnt=1,a,b,c;
	for(j=0;j<3;j++){
		scanf("%d %d",&a,&b);
		c=a+b;
		for(i=0;c!=0;i++){
			c/=10;
		}
		printf("%d\n",i);
	}
	return 0;
}

C++: #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,m,sum,c=0;
        }
        while(scanf("%d %d",&n,&m)!=EOF){
            sum=n+m;
            if(sum==0){
                c++;
            }
            while(sum!=0){
                sum=sum/10;
                c++
            }
        }
        cout<<c;
        
    }