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<string>
using namespace std;
int main()
{
  int a,b;
  char ans[16];
  while(scanf("%d %d",&a,&b) != EOF){
    if(a == 0 && b == 0)break;
    sprintf(ans,"%d",a+b);
    int len = strlen(ans);
    cout << len << endl;
  }
}

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

int main(){
	int m,n;
	while(cin >> m >>n)
	{
		int i = m +n;
		
		int count = 0;
		while(i){
				count++;
			i = i/10;
		
		}
		cout << count << endl;
	}
	
    return 0;
	
}

C++: #include <stdio.h>
#define N 16
int main(){
	char temp[N];
	int a[200],b[200];
	int i,j,k,n;
	for(i=0;i<200;i++){
		fgets(temp,N,stdin);
		if(temp[1]!='\0'){
			sscanf(temp,"%d %d",&a[i],&b[i]);
		}else{
			j=i;
			break;
		}
	}
	for(i=0;i<j;i++){
		k=1,n=0;
		while(a[i]+b[i]>=k){
			k*=10;
			n+=1;
		}
		printf("%d\n",n);
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    long long x,y,z;
    int count;
    while(cin >> x >> y){
        z = x + y;
        count=1;
        while(z/=10){
            count++;
        }
        cout<<count<<"\n";
    }
}

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

int main(void){
    std::vector<int> a,b;
    int x,y,c=0,z;
    while(std::cin>>x>>y){
      a.push_back(x);
      b.push_back(y);
    }
    for(int i=0;i<a.size();i++){
     z=a[i]+b[i];
      while(z!=0){
        z = z/10;
        ++c;
      }
      std::cout<<c<<"\n";
    }
    return 0;
  }

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

C++: #include<iostream>

int add(int,int);
int digit (int);

int main()
{
    int a,b;
    while(std::cin >> a >> b)
    {
        std::cout << digit(add(a,b)) << std::endl;
    }
    return 0;
}

int add(int x, int y)
{
    return (x + y);
}

int digit(int num)
{
    int count = 0;
    while(num >= 10){
        num /= 10;
        count++;
    }
    return (count + 1);
}

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

using namespace std;

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

C++: #include <iostream>

using namespace std;

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

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		int sum = i + j ;

		if( sum > 10 )
		{
			for( int x = 1 ; x < 7 ; x ++ )
			{
				if( (sum / x*10) < 10 )
				{
					cout << x + 1 << endl ;
				}
			}
		}
		else
		{
			cout << 1 << endl ;
		}
	}

	return 0 ;
}

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

int calcdigit(int c){
	int res=1;
	while(1){
		if(c/10==0){
			break;
		}
		++res;
		c=c/10;
	}
	return res;

}
int main() {
    clock_t cTimeStart, cTimeEnd;
    cTimeStart = clock();           // 現在時刻
    int a,b;
   	while(cin>>a>>b){
	    cout<<calcdigit(a+b)<<endl;
   	}


    cTimeEnd = clock();           // 現在時刻
//    cout<< "処理時間:" <<(cTimeEnd - cTimeStart)/1000 << "[ms]" << endl;

	return 0;
}

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

int main()
{
	int a, b;

	cin >> a >> b;

	int sum = a + b;

	int keta;

	if (sum / 1000000 >= 1) keta = 7; 
	else if (sum / 100000 >= 1) keta = 6; 
	else if (sum / 10000 >= 1) keta = 5; 
	else if (sum / 1000 >= 1) keta = 4; 
	else if (sum / 100 >= 1) keta = 3; 
	else if (sum / 10 >= 1) keta = 2;
	else keta = 1;

	cout << keta << endl;

	return 0;
}

C++: #include <iostream>
#include <string>   
using namespace std;
 
int main(){
int a[2],b,c = 1;
cin >> a[0] >> a[1];
b = a[0] + a[1];
while(b >= 10){
	b = b/10;
	c++;
}
cout<<c<<endl;

}

C++: #include <stdio.h>
 int main( void ){
    int a,b;
    scanf( "%d %d",&a,&b );
    a = a + b;
     int n = 1;
    int j = 0;
    while( true ){
        if( a / n >= 1 ) n *= 10;
        else               break;
        j++;
    }
    printf( "%d",j );
    return 0;
}

C++: #include <iostream>

int main() {
  int a, b;
  int i;

  for(;;) {

    std::cin >> a >> b;

    if( std::cin.eof() ) { break; }

    a = a + b;

    for(i = 1; i < 9; i++) {
      if(a <= 9) {
        break;
      }
      a /= 10;
    }
    std::cout << i << std::endl;

  }

  return 0;
}

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

int main(){
	int a,b,i,sum=1;
	cin>>a;
	while(a != EOF){
		cin>>b;	
		a=a+b;
		while(a>10){
			a=a%10;
			sum++;
		}
		cout<<sum<<endl;
		sum=1;
		cin>>a;
	}
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b = 1;
    int ans,line = 0;
    
    while(std::cin >>a>>b){
        ans = a + b;
        ans /= 10;
        if(ans  <= 9){
            ans = 2;
        }
        else if(ans <= 99){
            ans = 3;
        }
        else if(ans <= 999){
            ans = 4;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
        int a,b,c,d=1000000,e=7;
	for(int i=1;i<=200;i++){
		cin>>a>>b;
		if(a==-1 || b==-1){//EOF?????¨???break;
			break;
		}
		c=a+b;
		if(c==0){
			cout<<"1"<<endl;
		}
		else if(c>0){
			while(1){
				if(1<=c/d){
					cout<<e<<endl;
					break;
				}
				else{
					d/=10,e--;
				}
			}
		}
		d=1000000,e=7;
	}
	
		
	return 0;
}

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

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

int main() {
	for(int a, b; cin >> a >> b;) {
		const int sum = a + b;
		cout << to_string(sum).size() << endl;
	}
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (cin>>a>>b) {
        int sum = a + b;
        int cnt = 1;
        while (sum /= 10) {
            cnt++;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

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

using namespace std;

int main(void)
{
  int i, sum, dig;
  int a, b;

  while (scanf("%d %d", &a, &b) != EOF) {
    sum = a + b;
    dig = 1;
    for (i = 1; i < 7; i++) {
      if (sum - pow(10, i) < 0) break;
      dig++;
    }
    printf("%d\n", dig);
  }

  return 0;
}

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

int main()
{
	int a,b,c,count = 0;
	char dummy[256];
	
	cin >> a >> b;
	c  = a + b;
	
	count = sprintf(dummy,"%d",c);
	
	cout << count;
	
	return 0;
}

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

int main(){
int a,b;

while(scanf(" %d %d",&a,&b)){
int cnt=1;
for(int i=1;i<8;i++){
if(a+b-i*10<0)break;
cnt++;
}
}

cout << cnt << endl;

return 0;
}

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

int main(void){
	int a,b;
	int c = 0;
	int count = 0; //入力回数の制限

	while(scanf("%d %d", &a,&b) != EOF){
		if(++count>200)	break; //200回以上は中止
		if(a<0 || a> 1000000 || b<0 || b> 1000000)
			cout<<"0から1000000までの値を入力してください."<<'\n';
		else{
			c = a+b;
			int digit = 0;
			do{
				digit++;
				c /= 10;
			}while(c != 0);
			cout<<digit<<'\n';
		}
	}

	//終了
	return 0;
}