Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

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

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

C++: #include <iostream>

using namespace std;

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

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

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

// Digit Number(0002)
int main()
{
	int a, b;
	while (cin >> a >> b) {
		stringstream ss;
		ss << a + b;

		cout << ss.str().length() << endl;
	}

	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){
	int a,b;
	while (std::cin >> a >> b)
		std::cout << static_cast<int>(log10(a + b)) + 1 << std::endl;
	system("pause");
	return 0;
}

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

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

C++: #include <cstdio>
#include <cmath>
#define LOOP(index,times) for(int index=0;index<times;index++)
using namespace std;

int main(){

int a,b;

while(scanf("%d %d",&a,&b) != EOF){

printf("%d\n",int(log10(a+b))+1);

}
return 0;		
}

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(a<1172) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <iostream>

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

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

int main(){

	int a = 0;
	int b = 0;
	int c = 0;
	int i = 0;

	scanf_s("%d", &a);
	scanf_s("%d", &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(){
  long long a,b,ans;
  string s;
  for(int i=0;i<200;i++){
	cin >> a >> b;
	ans=a+b;
	s=to_string(ans);
	cout << s.size() << endl;
  }
  return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755555555555555555555555555555555555554555555555555555555555555555555555";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

int main()
{
	int num1, num2, sum;

	while(cin >> num1 >> num2){
		
		int count = 0;
		sum = num1 + num2;
		
		while(sum != 0){
			sum /= 10;
			count++;
		}
		
		cout << count << "\n";
	}
	
	return 0;
}

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

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

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int c = a+b;
		int cnt = 0;
		while (c != 0)
		{
			cnt++;c /= 10;
		}
		cout << cnt << endl;
	}
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(a!=1000000) 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;  
  
void solve()  
{  
    int res = 0;  
  
    a += b;  
  
    for (; a; a /= 10)  
        res++;  
  
    cout << res << endl;  
}  
  
int main()  
{  
    while (cin >> a >> b)  
        solve();  
  
    return 0;  
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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

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

int main()
{
 int a, b;

 while(cin >> a >> b){
  int mas = a + b;
  int n = 0
  while(mas /= 10 != 0) n++
  cout << n+1 << '\n';
 }

 return 0;
}

C++: #include<iostream>

using namespace std;

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

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

C++: 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
#include<stdio.h>
  
int main(){
  int i,j,count=0,sum;
int a[3],b[3];
  while(1){
if(scanf("%d %d",&a[i],&b[i]) == EOF){break;}
i++;
}
for(j = 0;j<i;j++){
sum = a[j]+b[j];
while(sum >0){
sum/=10;
count++;
}printf("%d\n",count);
count = 0;
}
}

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<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<string>
#define REP(i,n) for(long long int (i)=0;(i)<(n);i++)


using namespace std;


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

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

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

C++: #include<stdio.h>

int main(){

	int i,j;
	int data[6];

	for(i=0;i<6;i++){
		scanf("%d",&data[i]);
	}
	data[0]=data[0]+data[1];
	data[1]=data[2]+data[3];
	data[2]=data[4]+data[5];

	for(i=0;i<3;i++){
		for(j=0;j<10;j++){
			if(data[i]<10){
				data[i+3]=j;
			}else{
				data[i]=(int)data[i]/10;
			}
		}
		printf("%d",data[i+3]);
	}

	getchar();
    return 0;
???

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

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