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>
#include<string>


using namespace std;

int main()
{
	
	int a,b;
	string input;
	int size[3];
	int i = 0;
	//cout << "input two numbers" << endl;
	for(i=0;i<3;i++){
	cin >> a >> b;
	b += a;
	input = to_string(b);
	size[i] = input.size();	
	
}
for(i=0;i < 3;i++){
	cout << size[i] << endl;
}

}

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

void main() {

	int a, b, c;
	char e[100];

	while (cin >> a >> b) {

		c = sprintf(e, "%d", a+b);

		cout << c << endl;
	}

	return 0;
}

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(i=0;i<=200;i++){
	scanf("%d %d",&x,&y);
	if((x+y)<10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else if((x+y)<1000000) printf("6\n");
	else printf("7\n");
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

void solve()
{
	int a;
	while(cin >> a)
	{
		int b;
		cin >> b;
		int sum = a + b;
		int count = 0;
		while(sum)
		{
			sum /= 10;
			++count;
		}
		cout << count << endl;
	}
}

int main()
{
	solve();
	return(0);
}

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

int main()
{

	while(true){
		int a,b,sum;
		int count = 0;
	
		cin >> a ;

		if(cin.eof())
			break;
		cin >> b;

		sum = a + b;

		for(int i=1 ;sum!=0 ;i++){

			sum /= 10;
			count = i;
		}

		cout << count << endl;
	}
		
		return 0;
}

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

int main(){
    int a,b;
    for(int i=0;i<200;++i){
        cin >> a >> b;
        cout << to_string(a+b).size() << endl;
    }
}

C++: #include <iostream>

using namespace std;

int main() {

	const int num=3;
	int a[num], b[num];

	for (int i = 0; i < num; i++) {
		cin >> a[i] >> b[i];
	}

	for (int i = 0; i < num; i++) {

		int sum = a[i] + b[i];
		int keta = 1;
		while (1) {
			if (sum >= 10) {
				keta++;
				sum /= 10;
			}
			else {
				break;
			}
		}

		cout << keta << endl;

	}

	return 0;

}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		switch(cnt){
		case 0:
			if(100000<a) flg=true; 
			break;
		}
		
		if(flg) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <iostream>
using namespace std;
int a,b;

int digit(){
    int i = 0;
    int c = a + b;
    for(i = 0; c >= 1;i++){
        c = c/10;
    }
    return i;
}

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

C++: #include <iostream>

using namespace std;

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


    while(cin >> a >> b)
    {
        c = a+b;
        int digit=0;
        while (c>=1)
        {
            c = c/10;
            digit++;
        }

        cout << digit << endl;
    }



    return 0;
}

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

C++: import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        for (int i = 0; i < 200; i++) {
            int x1 =input.nextInt();
        int x2 =input.nextInt();
        int x3 = input.nextInt();
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }
    }
}

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

int main() {
    int a, b;

    for(int i = 0; i < 250; i++){
      a = 0, b = 0;
      cin >> a >> b;

      if(a + b == 0){
        break;
      }
      else{
        cout << a + b << endl;
      }
    }
    
}

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

int main(){
  int a,b;
  int an[1000];
  int con[1000];
  int i=0,j,k;

  while(cin>>a>>b){
    an[i] =a + b;
    con[i] = 1;
    while(an[i]>1){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

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

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

int main() {
	string s1;
	int a, b,c;

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

	s1 = to_string(c);
	cout << s1.length() << endl;

	getchar();
	getchar();
	return 0;
}

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

int main(){
    int a,b,d;
    while(scanf("%d %d",&a,&b)!=EOF){
        d = (int)log10(a+b);
        printf("%d\n",d+1);
    }
}

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

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

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

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    while(true){
        int a,b;
        cin>>a>>b;
        cout<<(int)(log10(a+b)+1)<<endl;
    }
    return 0;
}

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;

while(scanf("%d %d", &x, &y) != EOF){
cou=0;
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>
using namespace std;
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>

int main()
{
   int e[300];
   int i,j,k;
   int cnt=1;
   int a,b;

   for(i=0;cin >> a;i++) {
      scanf("%d",&b);
      e[i]=a+b;
   }
   k=i;
   for(i=0;i<k;i++)
      printf("%d",e[i]);
   return 0;
}

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

int main(){
    int a,b;
    while(true){
        cin >> a >> b;
        cout << to_string(a+b).size() << endl;
    }
}

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

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

C++: #include <stdio.h>

#define NUMBER 200

int main(void){
	int i;
	int a,b;
	int sum=0, keta=0;
	
	for(i = 0; scanf("%d%d",&a,&b); i++){
		sum = a + b;
		
		while(sum > 0){
			sum = sum / 10;
			keta++;
		}
		
		printf("%d", keta);
	}
	
	return 0;
}

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

#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<iostream>
using namespace std;
int main(){
  int a,b;
  int c=a+b;
  int d=0;
  cin >> a >> b;
  while(c!=0){
    c=c/10;
    d=d+1;
  }
  cout << d << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;
int counter(int n);

int main(){
    int a, b, n;
    while(scanf("%d%d",&a,&b)!=EOF){
        n=counter(a+b);
        cout<<n<<endl;
    }
    return 0;
}

int counter(int n){
    int count1 = 0;
    while(n > 0)
    {
        // n = n/10
        n /= 10;
        ++count1;
    }
    return count1;
}

C++: #include <iostream>
#include <string>
#include <sstream>

using namespace std;

 string IntToString(int num){
	stringstream ss;
	ss << num;
	return ss.str();
}


int main(void){
	int count = 0;
	while (count < 200){
		int a, b;
		cin >> a >> b;
		if ((a < 0) || (b < 0)){
			break;
		}

		int sum = a + b;
		string str = IntToString(sum);
		cout << str.length() << endl;
		++count;
	}

	return 0;
}