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>
#include <cmath>
using namespace std;

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

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

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

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

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

C++: #include<iostream>
using namespace std;
     
int main(){
   int a[200],b[200],c[200],digit[200];
   int i,imax,j;
   i = 0;
   j = 1;
   do{
     cin >> a[i] >> b[i];
     i++;
   }while(a[i]!=NULL||b[i]!=NULL);
     
   imax = i;
   for(i=0;i<imax+1;i++){
     digit[i] = 1;
     c[i] = a[i] + b[i];
   }   
  
   for(i=0;i<imax+1;i++){
     while(c[i]>=10){
       c[i] /= 10;
       digit[i]++;
     }
   }
     
   for(i=0;i<imax+1;i++)cout << digit[i] << endl;
     
   return 0;
}

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

int digit(int a)
{
	int ret = 0;
	while(a)
	{
		a/=10;ret++;
	}
	return ret;
}

int main()
{
	int x,y;
	while(cin >> x >> y && x != EOF)
		cout << digit(x+y) << endl;
}

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

#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

int main(void){
    
    int number1,number2;
    int counter = 0;
    int answer[220] ={-1};
    while(scanf("%d %d",&number1,&number2) != EOF)
    {
        answer[counter]=((((number1+number2) /10))+1);
        counter++;
    }

    REP(i, counter)
    cout << answer[i] << endl;
    return 0;


}

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

using namespace std;

int main(void){
	unsigned int	a,b;

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

		cout << (int)log10(a+b)+1 << endl;
	}

	return 0;
}

C++: #include <stdio.h>

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



 return 0;
}

C++: /*
 * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002
 */
#include <iostream>
#include <sstream>

using namespace	std;

int
main()
{
	string line;
	while (getline(cin, line)) {
		int a, b;
		istringstream iss(line);
		ostringstream oss;
		iss >> a >> b;
		oss << a + b;
		cout << oss.str().length() << endl;
	}
}

C++: #include<cstdio>
using namespace std;
int main()
{
   int n,m,ans,sum;
   while(scanf("%d%d",&n,&m)!=EOF)
   {
       ans=0,sum=n+m;
       while(sum)
       {
           ans++;
           sum/=10;
       }
       //if(!ans)ans++;
       printf("%d\n",ans);
   }
}

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

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

C++: #include<bits/stdc++.h>
using namespace std;

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

C++: #include <iostream>

int main(int argc, char const *argv[])
{
	
	while(!std::cin.eof()){
		int a,b;
		std::cin >> a >> b;
		int p = 10;
		int i = 1;
		while((a+b)/p != 0){
			i ++;
			p *= 10;
		}
		std::cout << i << std::endl;
	}
	return 0;
}

C++: #include<stdio.h>
#include <stdlib.h>
#include<iostream>
#include<cstring> // ??????????????????????±???????????????????
using namespace std;

int main(){
	int a,b,s=0,l;
	while( cin >> a >> b  ){
		char str[100];
		s=a+b;
		itoa(s,str,10); // s???10?????°??§??????????????????
		l = strlen(str); // ???????????????????????????
		cout << l << "\n";
	}
	return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
    int a,b;
    char s[100];
    while(scanf("%d%d",&a,&b)!=EOF)
    {
        sprintf(s,"%d",a+b);
        printf("%d\n",strlen(s));
    }
    return 0;
}

C++: //
// Created by tac on 2016/10/27.
//

#include <cstdlib>
#include <iostream>
#include <cmath>

namespace {
int digit(int n) {
    return static_cast<int>(std::floor(std::log10(n)) + 1);
}
}

int main() {
    int a, b;
    while (true) {
        if (std::cin.eof()) {
            break;
        }
        std::cin >> a >> b;
        std::cout << digit(a + b) << std::endl;
    }
    return EXIT_SUCCESS;
}

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<1200) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

C++: #include <iostream>
using namespace std;
int ans[10];

int main() {
	int a,b;
	while(cin >> a >> b){
		if(cin.eof())break;
	int sum = a+b;
	int j=1;
	int i=1;

	while(i){
		if(sum/=10){
			j++;
		}else{
			cout << j << "\n";
			break;
		}
	}
	}
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77677";
	
	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 <cmath>
#include <algorithm>
#include <string>
using namespace std;
int main() {
    int a,b;
    while(cin >>a>>b){
        int c=0,d=a+b;
        while(d){
            d=d/10;
            c++;
        }
        cout <<c << endl;
    }
    return 0;
}

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

int main(){
	int a,b;
	cin >> a >> b;
	cout << (int)log10(double(a+b))+1 << endl;

	return 0;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,x=0;

	while (scanf("%d%d", &a, &b)!=EOF){
		
		if (a + b < 1000000){
			x=6;
		}else if(a + b < 100000){
			x=5;
		}else if (a + b < 10000){
			x=4;
		}else if (a + b < 1000){
			x=3;
		}else if (a + b < 100){
			x=2; 
		}else if (a + b < 10){
			x = 1;
		}printf("%d",x);
	}
	return 0;
}

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

using namespace std;

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