Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

C++: #include <iostream>

int main()
{
    for (int i = 0; i < 200; i++) {
        int a;
        int b;
        std::cin >> a;
        std::cin >> b;

        int c = a + b;
        int digit = 1;
        bool loop = true;
        while (loop) {
            if (c / 10 >= 1) {
                digit += 1;
                c = (c - (c % 10)) / 10;
            } else {
                loop = false;
                break;
            }
        }
        std::cout << digit << std::endl;
    }
}

C++: #include<iostream>
using namespace std;
int keta(int a,int b)
{
	return (a+b)/10-(a+b)%10;
}
int main()
{
	int a[200],b[200];
	int i=0;
	while(cin){
		cin>>a[i],b[i];
		i++;
	}
	int j = 0;
	while(i<j){
		cout<<a[j],b[j];
		cout<<"\n";
		j++;
	}
	getchar();
	getchar();
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char const* argv[])
{
	int hoge,a,b;

	cin >> a >> b;

	hoge = a + b;

	int i;
	for( i = 0;(hoge /= 10) != 0 ; i++ );

	cout << ++i;

}

C++: #include<iostream>

using namespace std;

int main()
{
	int n1,n2;
	int ans;
	int sum;
	
	for(;cin >> n1;)
	{
		cin >> n2;
		
		ans=1;
		sum=n1+n2;
		
		for(;sum/10>0;sum/=10)
			ans++;
		
		cout << ans << endl;
	}
}

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

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

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

using namespace std;

int main()
{
	int deta;
	int deta2;
	int a, total;

	while (scanf ("%d %d", &deta, &deta2) != EOF){
		a = deta + deta2;
		total = 0;

		while (1){
			if (a < 10){
				total++;
				break;
			}
			else {
				a = a / 10;
				total++;
			}
		}
		printf("%d\n", total);
	}

	return 0;
}

C++: #include<iostream>

int Digit(int x)
{
	int n=0;

	do
	{
		x/=10;

		++n;
	}
	while(x>=1);

	return n;
}

int main()
{
	int a, b;

	while(std::cin >> a >> b)
	{
		std::cout << Digit(a+b) << '\n';
	}
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[3];
  int b[3];
  int ans;
  for(int i=0;i<3;i++){
    cin >> a[i] >> b[i];
    ans = a[i] + b[i];
    if(ans>=0 && ans<=99){
      cout << "2" <<endl;
    }
    if(ans>=100 && ans<=999){
      cout << "3" <<endl;
    }
    if(ans>=1000 && ans<=1999){
      cout << "4" <<endl;
    }
  }
  return 0;
}

C++: #include <sstream>
#include <iostream>
#include <string>
 
using namespace std;
int main(){
	string str1, str2;
	cin >> str1 >> str2;
	cout << str1.length()+str2.length() << endl;
}

C++: #include <cstdio>
#include <algorithm>
#define ele long
using namespace std;
ele a,b;
inline ele d(ele x){
	if (x==0) return 1;
	ele s=0;
	while (x>0){
		++s;
		x/=10;
	}
	return s; 
}
int main(){
	while (~scanf("%d%d",&a,&b)) printf("%d\n",d(a+b));
	return 0;
}

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

int main(){
	int a, b;
	while(cin >> a >> b){
		if(a+b<10) cout << "1" << endl;
		else if(a+b<100) cout << "2" <<endl;
		else if(a+b<1000) cout << "3" <<endl;
		else if(a+b<10000) cout << "4" <<endl;
		else if(a+b<100000) cout << "5" <<endl;
		else if(a+b<1000000) cout << "6" <<endl;
		else if(a+b<10000000) cout << "7" <<endl;
	}
}

C++: #include <cstdio>
#include <algorithm>
#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int a,b,c,i;
    while(cin>>a>>b){
    	for(i=1;i<=7;i++){
    		c=pow(10,i);
    		if((a+b)/c==0){
    			cout<<i<<endl;break;goto p1;
    		}
    	}
    }
    p1:return 0;
}

C++: #include<iostream>
#include<vector>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <map>
#include <sstream>
#include <cmath>
#include <ctime>
#include <bitset>
#include <utility>
#include <set>
#include <numeric>

using namespace std;

int main()
{
    long long a,b,c,sum;
    //freopen("11854.txt","r",stdin);
    while(scanf("%llu %llu",&a,&b)==2)
    {
        sum=0;
        c=0;
        sum=a+b;
        while(sum!=0)
        {
            sum=sum/10;
            c++;
        }
        printf("%llu\n",c);
    }
    return 0;
}

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

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

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

int main() {
	int a, b;
	scanf("%d%d", &a, &b);
	int c = to_string(a + b).length();
	printf("%d\n", c);
}

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

using namespace std;

int main(){
	int a,b;
while(cin>>a>>b){
	}
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(2>99){
		cout<<5<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767556";
	
	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>
#include <math.h>
using namespace std;

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

}
return 0;
}

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

int main() {
	double a, b;
	while (scanf("%d %d", &a, &b)){
		printf("%d\n",(int)log10(double)(a+b) + 1);
	}
	return 0;
}

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

using namespace std;

int digit(int num){
	if((num / 10) > 0){
		return (digit(num/10))+1;
	}
	else return 1;
}

int main(){
	int num1,num2,result=0;
	char buf[64];
	while(1){
		fgets(buf, 64, stdin);
		if(buf[0] == '\0')break;
		num1 = 0;
		num2 = 0;
		sprintf(buf,"%d %d",num1,num2);
		result += digit(num1);
		result += digit(num2);
		cout << result << endl;
	}
	return 0;
}

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

C++: #include <stdio.h>

int main() {
    
    int l, m, n, i;
    
    while (1) {
        
        scanf("%d %d", &l, &m);
        if (l == EOF || m == EOF) break;
        n = l + m;
        
        for (i = 1; n >= 9; i++) {
            n /= 10;
        }
        
        
        printf("%d\n", i);
        
    }
    return 0;
}

C++: #include<iostream>


using namespace std;


int main(){
	int a=0,b=0,c,i;

	while(cin >> a >> b){
		i=1;
		c = a+b;
	
		while(c>=10){
			c = c/10;
			i++;
		}
	cout << i << endl;

	}
}

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

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

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

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