Go: package main

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

var scanner= bufio.NewScanner(os.Stdin)

func main() {
	result := make([][]int, 4)
	for i :=range result {
		result[i] = make([]int, 2)
	}
	for scanner.Scan() {
		buf := strings.Split(scanner.Text(), " ")
		l, _ := strconv.ParseFloat(buf[0], 64)
		r, _ := strconv.ParseFloat(buf[1], 64)
		if 1.1 <= l {
			result[0][0]++
		} else if 0.6 <= l && l < 1.1 {
			result[1][0]++
		} else if 0.2 <= l && l < 0.6 {
			result[2][0]++
		} else {
			result[3][0]++
		}
		if 1.1 <= r {
			result[0][1]++
		} else if 0.6 <= r && r < 1.1 {
			result[1][1]++
		} else if 0.2 <= r && r < 0.6 {
			result[2][1]++
		} else {
			result[3][1]++
		}
	}
	ans := make([][]string, 4)
	for i :=range ans {
		ans[i] = make([]string, 2)
	}
	for i := range result {
		for j := range result[i] {
			ans[i][j] = strconv.Itoa(result[i][j])
		}
	}
	for i := 0; i < 4; i++ {
		fmt.Println(strings.Join(ans[i], " "))
	}
}

C++: #include <iostream>

using namespace std;

int main()
{
    double l,r;
    int rn[4]={0},ln[4]={0};
    while(cin>>l>>r)
    {
        int ls=0;
        if(l>=0.2)ls++;
        if(l>=0.6)ls++;
        if(l>=1.1)ls++;
        ln[ls]++;
        int rs=0;
        if(r>=0.2)rs++;
        if(r>=0.6)rs++;
        if(r>=1.1)rs++;
        rn[rs]++;
    }
    for(int i=3;i>=0;--i){
        cout<<ln[i]<<" "<<rn[i]<<endl;
    }
    return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

double arr[] = {-9999999, 0.2, 0.6, 1.1, 999999999};

int main() {
  
  double a, b;
  int cntL[4] = {};
  int cntR[4] = {};
  while(cin >> a >> b) {
    for(int i=0; i<4; i++) {
      if(arr[i] <= a && a < arr[i+1]) cntL[3-i] ++;
      if(arr[i] <= b && b < arr[i+1]) cntR[3-i] ++;
    }
  }
  for(int i=0; i<4; i++)
    cout << cntL[i] << " " << cntR[i] << endl;
  
  return 0;
}

C++: #include<bits/stdc++.h>

using namespace std;

int main()
{
  vector<double> left_eye;
  vector<double> right_eye;

  int result1[4] = {0};
  int result2[4] = {0};

  double a,b;

  while(cin>>a>>b){
    left_eye.push_back(a);
    right_eye.push_back(b);
  }

  for(double e : left_eye){
    if(e >= 1.1){
      result1[0] += 1;
    }
    else if(e >= 0.6 && e < 1.1){
      result1[1] += 1;
    }
    if(e >= 0.2 && e < 0.6){
      result1[2] += 1;
    }
    if(e < 0.2){
      result1[3] += 1;
    }
  }

  for(double e : right_eye){
    if(e >= 1.1){
      result2[0] += 1;
    }
    else if(e >= 0.6 && e < 1.1){
      result2[1] += 1;
    }
    if(e >= 0.2 && e < 0.6){
      result2[2] += 1;
    }
    if(e < 0.2){
      result2[3] += 1;
    }
  }

  for(int i = 0;i < 4;++i){
    cout<<result1[i]<<" "<<result2[i]<<endl;
  }

  return 0;
}

C++: #include <iostream>
using namespace std;
int m[4][2];
int main()
{
  float l,r;
  while(cin >> l >> r){
    if(l > 1.1) m[0][0]++;
    else if(l > 0.6) m[1][0]++;
    else if(l > 0.2) m[2][0]++;
    else m[3][0]++;
    if(r > 1.1) m[0][1]++;
    else if(r > 0.6) m[1][1]++;
    else if(r > 0.2) m[2][1]++;
    else m[3][1]++;
  }
  int i;
  for(i=0;i<4;i++){
    cout << m[i][0] << " " << m[i][1] << endl;
  }
  return 0;
}

C++: #include <stdio.h>

int main( ) {

	double eye[ 40 ][ 2 ]; 
	int num = 0;
	int lr_change = 0;
	int al=0;
	int ar=0;
	int bl=0;
	int br=0;
	int cl=0;
	int cr=0;
	int dl=0;
	int dr=0;

	while( 1 ) {

		scanf("%lf",& eye[ num ][lr_change] );

		if( eye[ num ][lr_change] == EOF) {
			break;
		}

		if( eye[ num ][lr_change] <= 1,1 ) {
			if( lr_change == 0 ){
				al++;
			}else{
				ar++;
			}
		}else if( 0.6 <= eye[ num ][lr_change] && eye[ num ][lr_change] < 1.1 ){
			if( lr_change == 0 ){
				bl++;
			}else{
				br++;
			}
		}else if( 0.2 <= eye[ num ][lr_change] && eye[ num ][lr_change] < 0.6 ){
			if( lr_change == 0 ){
				cl++;
			}else{
				cr++;
			}
		}else if( eye[ num ][lr_change] < 0.2 ){
			if( lr_change == 0 ){
				dl++;
			}else{
				dr++;
			}
		}

		if( lr_change == 0 ) {
			lr_change = 1;
		}else{
			num++;
			lr_change = 0;
		}

	}

	printf("%d %d\n",al,ar);
	printf("%d %d\n",bl,br);
	printf("%d %d\n",cl,cr);
	printf("%d %d\n",dl,dr);

	return 0;
}

C++: #include<bits/stdc++.h>

using namespace std;

int main(){

  double l;
  double r;

  int l_a = 0;
  int l_b = 0;
  int l_c = 0;
  int l_d = 0;
  int r_a = 0;
  int r_b = 0;
  int r_c = 0;
  int r_d = 0;
  
  while(cin >> l >> r){
	if(l >= 1.1)
	  l_a++;
	else if(l >= 0.6 && l < 1.1)
	  l_b++;
	else if(l >= 0.2 && l < 0.6)
	  l_c++;
	else if(l < 0.2)
	  l_d++;

	if(r >= 1.1)
	  r_a++;
	else if(r >= 0.6 && r < 1.1)
	  r_b++;
	else if(r >= 0.2 && r < 0.6)
	  r_c++;
	else if(r < 0.2)
	  r_d++;
	
  }

  cout << l_a << " " << r_a << endl;
  cout << l_b << " " << r_b << endl;
  cout << l_c << " " << r_c << endl;
  cout << l_d << " " << r_d << endl;
  
}

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

int main() {
    double x,y;
    int xs[4]={},ys[4]={};
    while(cin>>x>>y){
        if(x>=1.1)xs[0]++;
        else if(x>=0.6)xs[1]++;
        else if(x>=0.2)xs[2]++;
        else xs[3]++;
        if(y>=1.1)ys[0]++;
        else if(y>=0.6)ys[1]++;
        else if(y>=0.2)ys[2]++;
        else ys[3]++;
    }
    for(int i=0;i<4;i++)
        cout << xs[i] << ' ' << ys[i] << endl;
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    int leye[4]={0,0,0,0},reye[4]={0,0,0,0};
    double lef,righ;
    while(cin>>lef>>righ){
        if(lef==0.1)leye[0]++;else if(lef<0.6)leye[1]++;else if(lef<1.1)leye[2]++;else leye[3]++;
        if(righ==0.1)reye[0]++;else if(righ<0.6)reye[1]++;else if(righ<1.1)reye[2]++;else reye[3]++;
    }
    for(int i=3;i>-1;i--)cout<<leye[i]<<" "<<reye[i]<<endl;
}

C++: #include <iostream>
using namespace std;
int main(){
  double l,r;
  double ll[4] = {0},rr[4]= {0};
  while( cin >> l >> r){

    if(l >= 1.1 )ll[0]++;
    else if(l >= 0.6 )ll[1]++;
    else if(l >= 0.2 )ll[2]++;
    else ll[3]++;
    if(r >= 1.1 )rr[0]++;
    else if(r >= 0.6 )rr[1]++;
    else if(r >= 0.2 )rr[2]++;
    else rr[3]++;
  }
  for(int i = 0 ; i < 4 ; i++){
    cout << ll[i] <<" " << rr[i] << endl;
  }
  return 0;
}

C++: #include<stdio.h>
int main(void)
{
    float a,c;
	int b[8],i;
	while(scanf("%f %f",&a,&c)!=EOF){
		if(a>=1.1){
			b[0]=b[0]+1;
		}
		else if(a>=0.6){
			b[1]=b[1]+1;
		}
		else if(a>=0.2){
			b[2]=b[2]+1;
		}
		else{
			b[3]=b[3]+1;
		}
		if(a>=1.1){
			b[4]=b[4]+1;
		}
		else if(a>=0.6){
			b[5]=b[5]+1;
		}
		else if(a>=0.2){
			b[6]=b[6]+1;
		}
		else{
			b[7]=b[7]+1;
		}
	}
	for(i=0;i<8;i++){
	    printf("%d %d\n",b[i],b[i+4]);
	}
	return 0;
}

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

int main(){

	int cnt[4][4] = {0};
	double l, r, sight[5];

	sight[0] = 2.1;
	sight[1] = 1.1;
	sight[2] = 0.6;
	sight[3] = 0.2;
	sight[4] = 0.0;

	while(cin >> l >> r){
		for(int i=0; i<4; i++){
			if(sight[i+1] <= l && l < sight[i]){
				cnt[0][i]++;
			}
			if(sight[i+1] <= r && r < sight[i]){
				cnt[1][i]++;
			}
		}
	}

	for(int i=0; i<4; i++){
		cout << cnt[0][i] << " " << cnt[1][i] << endl;
	}

	return 0;

}

C++: 1.0 1.2
0.8 1.5
1.2 0.7
2.0 2.0