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 <iostream>
#include <string>
using namespace std;
int main(){
  int a,b;
  while(cin >> a){
	cin >> b;
	int sum = a+b;
	string str;
	str = to_string(sum);
	cout << str.size() << endl;
  }

}

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

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int m = a+b;
		int d = 0;
		if(m == 0){
			cout << "1" << endl;
			continue;
		}
		while(m > 0){
			m /= 10;
			d++;
		}
		cout << d << endl;
	}
	return 0;
}

C++: #include<stdio.h>
int main(void) {
	int a, b, d = 1,l=0;
	while (l<200)
	{
		scanf("%d %d", &a, &b);
		for (size_t i = 10; ; i *= 10)
		{
			if ((a + b) / i == 0)break;
			d++;
		}
		printf("%d\n", d);
		a = 0; b = 0; d = 1;
		l++;
	}
	return 0;
}

C++: #include<iostream>
#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 <cstdio>
using namespace std;
int main() {
    int a, b;
    while (cin >> a >> b)
        cout << a + b << endl;
}

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

int hoge(int sum,int cnt){
	if(sum/10<=9) return cnt;
	else return hoge(sum/10,++cnt);
}

int main(){
	for(;;){
		int a,b;
		cin>>a>>b;
		if(cin.fail()) break;
		if(a+b<10) cout<<1<<endl;
		else cout<<hoge(a+b,2)<<endl;
	}
	return 0;
}

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

int main(){
int a;
int b;
int c;
int n;
int d;
while(cin >> a >> b){
c=a+b;
d=1;
n=0;
while(1){
if(d>c){break;}
d=d*10;
n=n+1;}
cout << n << endl;
}
    return 0;
}

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

#define     MAX_NUMBER     200

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

	while(cin >> num1 >> num2){
		//整形
		sprintf_s(str,"%d\0",(num1 + num2));

		// 文字数計測
		for(i=0;str[i] != '\0';i++){
		}

		// 文字数表示
		cout << i << endl;
	}

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a, b, sum;
    
    while(true){
        cin >> a >> b;
        if(cin.fail()) break;
        
        sum = a + b;
        
        if(sum / 10 != 0 && sum / 100 == 0)
            cout << 2 << endl;
        else if(sum / 100 != 0 && sum / 1000 == 0)
            cout << 3 << endl;
        else if(sum / 1000 != 0 && sum / 10000 == 0)
            cout << 4 << endl;
        else if(sum / 10000 != 0 && sum / 100000 == 0)
            cout << 5 << endl;
        else if(sum / 100000 != 0 && sum / 1000000 == 0)
            cout << 6 << endl;
        else 
            cout << 7 << endl;
    }
}

C++: #include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<vector>

using namespace std;

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

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

int main()
{  
  int buff,buff2,result;
  cin >> buff >> buff2;
  
  while(buff != 0)
  {
    buff += buff2;
    buff /= 10;
    result++;
  }

  cout << result << 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 printf("6\n");
	}
	return 0;
}

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

int c = 0;

void keta(int A) {
	if (A > 9) {
		c++;
		keta(A/10);
	}
	return;
}

int main()
{
	int A, B,C;
	while (cin >> A >> B) {
		c = 0;
		A += B;
		keta(A);
		c++;
		cout << c <<endl;
	}
    return 0;
}

C++: #include<iostream>
using namespace std;
int keta(int x);

int main(){
	unsigned long int a,b;
	for(int i=0;i<200;i++){
		cin>>a>>b;
		cout<<keta(a+b)<<endl;
	}
	return 0; 

}

int keta(int x){
	int n=10;
	int m=1;
	while(x/n!=0){
		m++;
		n*=10;
	}
	return m;
}

C++: #include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    long long int a,b;
    long long int op=0;
    while((cin>>a>>b)){
        long long int res=a+b;
        long long int k=1;
        while((res/k)!=0){
            k=k*10;
            op++;
        }
        if(res==0)
        {
            op=1;
        }
        cout<<op<<endl;
        op=0;
    }
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b;
    for(int i = 0; i< 3; i++){
        cin >> a;
        cin >> b;
        cout << a+b << endl;
    }
}

C++: #include<stdio.h>
int main(){
  int n=1; 
  long long int a=0;
  long long int b=0;
  while(scanf("%d",&a) != EOF){
    scanf("%d",&b);
    a+=b;
    while(a/10!=0){
      n++;
      a=a/10;
    }
    printf("%d\n",n);
    n=1;
  }
  return(0);
}

C++: #include<iostream>

using namespace std;

int main(){
	
	int num,i;

	int a[3],b[3],sum[3],figure;
	
	for(i=0;i<3;i++){
		do{
			cin >> a[i] >> b[i];
		}while((a[i]<0||a[i]>100000)&&(b[i]<0||b[i]>100000));
		
		sum[i] = a[i] + b[i];
		
	}
	
	for(i=0;i<num;i++){
		figure = 1;
		while(sum[i]/10!=0){
			sum[i] = sum[i]/10;
			figure++;
		}
		cout << figure << "\n";
	}
	
	return 0;
}

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

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

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

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

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

int main(){
	int a, b, i = 0;
	cin >> a >> b;
	num = a*b;
	while(1){
		if(num < 10) break;
		i++;
		num /= 10;
	}
	cout << i << endl;
    return 0;
}

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

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

C++: #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(void){
    int a,b,sum,ans,a1,b1;
    for(int i=0;i<100;i++){
        cin>>a>>b;
        if(a1==a&&b1==b&&a!=0)break;
        a1=a;
        b1=b;
        sum=a+b;
        ans=0;
        if(sum==0)ans=1;
        while(sum>0){
            ans++;
            sum/=10;
        }
        cout<<ans<<endl;
    }
    return 0;
}

C++: #include <iostream>

int disit_number(int num)
{
	if (num / 10 == 0) {
		return 1;
	}
	return disit_number(num / 10) + 1;
}

int main()
{
	int a, b;
	while (std::cin >> a >> b) {
		std::cout << disit_number(a + b) << std::endl;
	}
	return 0;
}

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

int main()
{
  int a,b;
  int answer[20];
  int count = 0;
  while(cin >> a >> b){
    answer[count] = (int)log10(a+b) +1;
    count++;
  }
  for(int i=0; i<count; i++){
    cout << answer[i] << endl;
  }
  return 0;
}