Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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

using namespace std;

int main(){
  int sum, ans, n1, n2;
  scanf("%d%d", &n1, &n2);
  sum = n1+n2;
  ans = (int)log10((double)sum) + 1;
  cout<<ans<<endl;
  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<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]>=10){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  cout<<endl;
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

C++: #include<iostream>
#include<math.h>
using namespace std;
int main()
{
	float a,b,sum;
	int cont=0;
	cin>>a;cin>>b;
	sum=a+b;
	do
	{
		sum=sum/10;
		cont++;
	}while(floor(sqrt(sum))!=0);
	cout<<cont<<endl;
	return 0;
}

C++: 
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

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

int main(){
	int a, b, sum, cou = 0;
	cin >>a >>b;
	sum = a + b;
	
	while(sum != 0){
		sum = sum / 10;
		cou++;
	}
	
	cout <<cou<<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>
using namespace std;
int main()
{
	int a,b;
	while(cin>>a>>b)
	{
		int sum = a+b;
		int count=0;
		while(sum>0)
		{
			count++;
			sum /=10;
		} 
		cout<<count<<endl;
	}
	return 0;
}

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

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


	while (cin >> a >> b) {
		ab = a + b;
		for (ab; ab > 0; ab /= 10) {
			c++;
		}
		cout<<c<<endl;
		c = 0;
	}
	return 0;
}

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

int main()
{
	int a, b, sum, result=0;
	do{
		scanf("%d %d", &a, &b);
	}while(a < 0 || b < 0);
	sum = a + b;
	while (sum > 0){
		sum /= 10;
		result++;
	}
	cout << result;
	return 0;
}

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

int main(){

	array<int, 6> t{ {10, 100, 1000, 10000, 100000, 1000000} };
	int a, b;
	while (cin >> a >> b) {
		 int sum;
		 
		 sum = a + b;
		 auto result = find_if(t.begin(), t.end(), [sum](const int x){return sum < x; });
		 auto output = result - t.begin() + 1;
		 cout << output << endl;
	}


	return 0;
}

C++: #include <iostream>

using namespace std;

int countDigits(int n)
{
	int digits = 0;
	while (n>0) {
		n /= 10; digits++;
	}
	
	return digits;
}

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

C++: #include "stdafx.h"
#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++: File Edit Options Buffers Tools C++ Development Help                               
#include<iostream>                                                                 
#include<stdio.h>                                                                  
                                                                                   
                                                                                   
int main(void){                                                                    
  int x,y,z,keta=0;                                                                
  scanf("%d %d",&x,&y);                                                            
  z =x+y;                                                                          
  while(z>0){                                                                      
    z = z/10;                                                                      
    keta++;                                                                        
  }                                                                                
  std::cout << keta << std::endl;                                                  
  return 0;                                                                        
}

C++: #include <iostream>
#include <cmath>
int main()
{
	double a,b;
	while(std::cin>>a>>b)
	{
		int digit=(int)log10(a+b);
		std::cout << digit+1 << std::endl;
	}
	return 0;
}

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

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

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

int main()
{ 
	int i1, i2;
	cin >> i1 >> i2;
	i1 += i2;
	i2 = 0;
	while (i1) {
		i2++;
		i1 /= 10;
	}
	cout << i2 << endl;
    return 0;
}

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

int main() {
	long long int a, b, c;
	int x;
	bool flg = true;

	while (1) {
		cin>>a;
		if (a==EOF)
			break;
		cin>>b;

		c=a+b;

		x = 1;
		flg = true;
		while (flg) {
			if ((c=c/10)>0)
				x++;
			else
				flg = false;
		}
		cout<<x<<endl;
	}
	return 0;
}

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

int main()
{
    int a;
    int b;
    int sum;
    int digit;
    bool flag = true;
    while (flag) {
        std::cin >> a >> b;
        if (a == 0 && b == 0) {
            flag = false;
            break;
        } else {
            sum = a + b;
            digit = 0;
            while (sum != 0) {
                sum = sum / 10;
                digit++;
            }
            std::cout << digit << std::endl;
        }
    }
    return 0;
}

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

using namespace std;

int main()
{
    int a;
    int b;
    int sum;
    while(cin >> a >> b)
    {
        sum = a + b;
        string sum = to_string(a + b);
        cout << sum.length() << endl;
    }
}

C++: #include "iostream"
using namespace std;

int main(void)
{
    long num1, num2;

    while (cin >> num1 >> num2) {

        num1 += num2;

        num2 = 0;
        while(num1 > 0) {
            num2++;
            num1 /= 10;
        } 

        cout << num2 << endl;
    }
    
    return 0;
}

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    while(cin >> a >> b){
        int sum = a + b;
        string ans = to_string(sum);
        cout << ans.size() << endl;
    }
    return 0;
}

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

int main(){
string s;
int a,b,c;
while (getline(cin, s ))
{
std::istringstream iss1(s.substr(0,SpaceInd));
iss1 >> a;

std::istringstream iss2(s.substr(SpaceInd+1));
iss2 >> b;
cout<<(int)log10(a+b)<<endl;
}
return 0;
}