Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

C++: #include<iostream>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
        else if(a[i]+b[i]<10000000){
            cout<<"7"<<endl;
        }
    }
    return 0;
}

C++: #include <iostream>

u_int getDigit(u_int n){
	u_int count = 1;
	
	while(n / 10 != 0){
		n /= 10;
		++count;
	}
	
	return count;
}
  
int main(){
    u_int a, b;
    
    while(std::cin >> a >> b){
        std::cout << getDigit(a + b) << std::endl;
    }
	
    return 0;
}

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

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

int main(){
    int A[200];
    int B[200];
    int i;
    for(i = 0; i < 200; i++){ A[i] = -1; B[i] = -1; }
    for(i = 0; i < 200; i++){ cin >> A[i] >> B[i]; }
    i = 0;
    int sum, digit;
    while(A[i] >= 0){
        sum = A[i] + B[i];
        while(digit){
            sum /= 10;
            digit++;
        };
        cout << digit << endl;
    };
    return 0;
}

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

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

C++: #include<stdio.h>


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

	
	
}

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

C++: #include <iostream>
#include <cmath>
int main()
{
  int a, b;
  while (std::cin >> a >> b) {
    std::cout << "a:" << a << " b:" << b << std::endl;
    for (int i = 1; i < 7; i++) {
      if (a + b < pow(10, i)) {
        std::cout << i << std::endl;
        break;
      }
    }
  }
  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;

	return 0;
}

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

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

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

int get_digit(int num);

int main() {
	int first;
	int second;
	int data_cnt = 0;
	std::vector<int> inputs;

	while ((cin >> first >> second) || (data_cnt < 200)) {
		data_cnt++;
		inputs.push_back(first + second);
	}

	for (int i = 0; i < data_cnt; i++) {
		cout << get_digit(inputs[i]) << endl;
	}

	return 0;
}

int get_digit(int num) {
	return log10(num) + 1;
}

C++: #include <stdio.h>

int main(void){
	unsigned long int i,j,sum;
	unsigned int count = 0;
	while(1){
		if(scanf("%ld %ld",&i,&j)==EOF)	break;
		
		sum = i+j;
		count = 0;
		for(unsigned long int dec=10;dec<=1000000;dec*=10){
			if(sum < dec)	break;
			count ++;
		}
		printf("%d\n",count+1);
	}
	return 0;
}

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

int digit(int d){
  return (int)log10((double)d) + 1;
}

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

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



int main(void)
{
  //string stream s;

  int a,b,c;
  vector<int> array;
  int i=0;
  while(1)
    {
	 ostringstream s;
     string os;	
	 cin>>a>>b;
     cout<<a<<","<<b<<endl;
	 if(!cin)break;
	  c=a+b;
	  cout<<c<<endl;
      s <<c;
	  os=s.str();
	  cout<<os<<endl;
	  cout<<os.size()<<endl;
	  s.clear();
	  os.clear();
      array.push_back(os.size());
	  if(array.size()==200)break;
	  
    }

  while(i<array.size())
    {
      cout<<array[i]<<endl;
	  i++;
    }
  array.clear();
}

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

int main(void){
	int a,b,T,c,d,e,f,g,h,i,A=0;
	while(1){
		cin>>a>>b;
		T=a+b;
		
		c=T/1000000;
		if(c>=1) A=A+1;
		
		d=T/100000;
		if(d>=1)A=A+1;
		
		e=T/10000;
		if(e>=1)A=A+1;
		
		f=T/1000;
		if(f>=1)A=A+1;
		
		g=T/100;
		if(f>=1)A=A+1;
		
		h=T/10;
		if(h>=1)A=A+1;
		
		i=T/1;
		if(i>=1)A=A+1;
		
		cout<<A<<endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

class digit{
private:
	int len;
public:
	int scan(int num);
};

int digit::scan(int num){
	len = 0;
	while(num != 0){
		num /= 10;
		len++;
	}
	return len;
}

int main(void){

	int a,b;
	int data[200];
	int i,j;
	i=j=0;
	digit digit;


	while(cin>>a>>b){
		data[i] = digit.scan(a+b);
		i++;
	}

	while(j<i){
		cout << data[j] << endl;
		j++;
	}

	return 0;
}

C++: #include<iostream>
#include<string>
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++: //
//  main.cpp
//  AizuOnlineJudge
//
//  Created by TomoyaYamaguchi on 2016/08/05.
//  Copyright ?? 2016??´ TomoyaYamaguchi. All rights reserved.
//

#include <iostream>

using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    int height[10];//?±±?????????
    int tmp = 0;
    int end = 0;
    
    for(int i=0;i<10;i++){
        cin >> height[i];
    }
    
    while(end == 0){
        end = 1;
        for(int i=0;i<9;i++){
            if(height[i] < height[i+1]){
                end = 0;
                tmp = height[i];
                height[i] = height[i+1];
                height[i+1] = tmp;
            }
        }
    }
    
    for(int i=0;i<3;i++){
        cout << height[i] << endl;
    }
    
    return 0;
}

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

using namespace std;

int main()
{
	unsigned int a, b;
	string sa,sb;
	while (cin)
	{
		cin >> a >> b;
		cout << std::to_string(a+b).size() << endl;
	}
	return 0;
}