Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		if len(chunks) != 2 {
			break
		}
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(a + b)
	}
}

C++: #include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
    long long int num,a,b,sum,i,j,k,len;
    char str[1000],ch[1000];
    while(scanf("%lld %lld",&a,&b)==2)
    {
        sum=a+b;
        itoa(sum,str,10);
        len=strlen(str);
        printf("%lld\n",len);
    }
return 0;
}

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

int main(void)
{
#if 0
    int i;
    int x, y;

    for (;;) {
        if (scanf("%d %d", &x, &y) == EOF) {
            break;
        }
        x += y;
        for (i = 1; ; i++) {
            x /= 10;
            if (x == 0) {
                break;
            }
        }
        printf("%d\n", i);
    }
#else
    int i;
    int x, y;
    char st[10];

    for (;;) {
        if (scanf("%d %d", &x, &y) == EOF) {
            break;
        }
        x += y;
        sprintf(st, "%d", x);
        printf("%d\n", strlen(st));
    }
#endif
    return 0;
}

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

using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define REP(i,j,n) for(int i = j; i < n; i++)


int main(){

	int a,b;
	int sum = 0;
	cin >> a >> b;

	sum = a + b;

	int x = 1;

	while(sum / 10 > 0){
		x++;
		sum = sum / 10;
	}

	if(x != 0){
		cout << x << endl;
	}
	else{
		cout << 0 << endl;
	}
	return 0;
}

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

int main() {
	int a[100];
	int i=0;
	int x,y;
	while(cin>>x>>y){
		a[i]=x+y;
		i++;
	}
	for(int j=0;j<i;j++){
		int count=1;
		while(a[j]>=10){
			a[j]=a[j]/10;
			count++;
		}
		cout<<count<<endl;
	}
	// your code goes here
	return 0;
}

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

#pragma warning(disable:4996)
#define MAX_DATA (200)
int main()
{
	char Work[MAX_DATA][256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);


	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt2][nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0;; nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

		printf("%d\n", Keta);
	}
	

	return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		char s[7];
		sprintf(s, "%d", a + b);
		cout << strlen(s) << endl;
	}


	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
typedef long long int ll;
using namespace std;

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

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

int main()
{
	int a,b,c;
	stringstream s;
	while(cin >> a >> b)
	{
	c = a+b;

	s << c;
	cout << s.str().size() << endl;
	}
	return 0;
}

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

int hoge(int sum,int cnt){
	if(sum/10<=9) return cnt;
	else return hoge(sum/10,++cnt);
}

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

C++: #include<cstdio>
#include <vector>
#include <algorithm>
#include <functional>

#include <cstdlib>
#include <iostream>
#include <string>
#include <typeinfo>
using namespace std;

int GetDigit(int num);

int main(){
	std::vector<int> r;
	while(true) {
		int nums[2];

		string str;
		int a =0;
		getline(cin, str); 
		string n[2];
		int nn[2];
		for(int i=0; i<str.size(); ++i){
			if(str[i] == ' ') a++;
			n[a] += str[i];
		}
		if(n[1].size() == 0) break;
		nn[0] = std::stoi(n[0]);
		nn[1] = std::stoi(n[1]);


		r.push_back(nn[0]+nn[1]);
	}

	for(int i=0; i<r.size(); ++i) {
		printf("%d\n", GetDigit(r[i]));
	}
	

	return 0;
}

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

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		if (sum != 0){
			++cou;
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++cou;
			}
		}
		printf("%d\n", cou);
		cou = 0;
	}
}

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

#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

int main(){
  int a, b, sum;
  int res = 0;

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

  return 0;
}

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


using namespace std;

int main() 
{
	
	int a,b;
	string input;
	int size[200];
	int i = 0;
	int count = 0;	
	//cout << "input two numbers" << endl;
	for(i=0;i<200;i++){
	cin >> a >> b;
	//if(a==""){break;}
	b += a;
	input = to_string(b);
	size[i] = input.size();	
	count++;
}
for(i=0;i < count;i++){
	cout << size[i] << endl;
}

}

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

	int main()
	{
	
		int a,b,c[3];
		char str[16];
		for(int i=0;i<3;++i){
			cin >> a >>b;

			c[i] = sprintf(str,"%d",a + b);
		}
		for(int i=0;i<3;++i)
			cout << c[i] << endl;
		return 0;
	}

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

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

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

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

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

int main()
{
	int x, y;
	while (cin >> x >> y)
		cout << x + y << "\n";
	cout.flush();
}

C++: #include <iostream>
#include <string>
using namespace std;
int main()
{
	int a, b;
	while (1){
		cin >> a;
		if (a < 0){
			break;
		}
		cin >> b;
		auto sum = a + b;
		string str(to_string(sum));
		cout << str.size();
	}

}

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

typedef long long ll;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, n) for(int i = 0; i < (n); i++)
#define dep(i, a, n) for(int i = a; i >= (n); i--)
#define FOR(i, a, n) for(int i = a; i < (n); i++)
#define mod (ll)(1e9+7)
#define int ll
#define INF 100000000

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
	ll a, b;
  while(cin >> a >> b) {
    cout << to_string(a + b).size() << endl;
  }
	return 0;
}

C++: #include <iostream> 
#include <math.h> 
#include <iomanip> 
using namespace std;  
  
int main()  
{  
int input1,input2,sum,i;
cin >> input1 >> input2;
int a=input1;
int b=input2;
int c=0;
for(i=1;i<=1;i++)
{sum=input1+input2;
for(int i=1;sum!=0;i++)
{sum=sum/10;
c=c+1;}
cout << c << endl;
c=0;
}
for(int i=1;i<=1000;i++)
{cin >> input1 >> input2;
if(a==input1 && b==input2)
{break;}
sum=input1+input2;
for(i=1;sum!=0;i++)
{sum=sum/10;
c=c+1;}
cout << c << endl;
a=input1;
b=input2;
c=0;
}
}