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<bits/stdc++.h>
using namespace std;
int main(){
	double a,b;
	int A=0,B=0,C=0,D=0;
	int rA=0,rB=0,rC=0,rD=0;
	
	while(cin>>a>>b){
		if(a>=1.1){
			A++;
		}else if(a>=0.6){
			B++;
		}else if(a>=0.2){
			C++;
		}else{
			D++;
		}
		if(b>=1.1){
			rA++;
		}else if(b>=0.6){
			rB++;
		}else if(b>=0.2){
			rC++;
		}else{
			rD++;
		}
	}
		printf("%d %d\n",A,rA);
		printf("%d %d\n",B,rB);
		printf("%d %d\n",C,rC);
		printf("%d %d\n",D,rD);
}

C++: #include<stdio.h>
int main(void)
{
	double h,m;
	int cMA,cHA;
	int cMB,cHB;
	int cMC,cHC;
	int cMD,cHD;
	cMA=0;
	cHA=0;
	cMB=0;
	cHB=0;
	cMC=0;
	cHC=0;
	cMD=0;
	cHD=0;
		while(scanf("%lf %lf",&h,&m)!=EOF){
			if(h>=1.1){
				cHA++;
			}
			else if(0.6<=h){
				cHB++;
			}
			else if(0.2<=h){
				cHC++;
			}
			else{
				cHD++;
			}
			if(m>=1.1){
				cMA++;
			}
			else if(0.6<=m){
				cMB++;
			}
			else if(0.2<=m){
				cMC++;
			}
			else{
				cMD++;
			}
		}
	printf("%d %d\n%d %d\n%d %d\n%d %d\n",cHA,cMA,cHB,cMB,cHC,cMC,cHD,cMD);
	return 0;
}

C++: #include<stdio.h>

void orz( float eye ,int LR[] )
{
	if( eye < 0.2 )
		LR[ 3 ]++ ;
	else if( eye < 0.6 )
		LR[ 2 ]++ ;
	else if( eye < 1.1 )
		LR[ 1 ]++ ;
	else
		LR[ 0 ]++ ;
	return ;
}

int main()
{
	float eye_r ,eye_l ;
	int r[ 4 ] = { 0 } ,l[ 4 ] = { 0 } ;

	while( scanf( "%f %f" ,&eye_r ,&eye_l ) != EOF )
	{
		orz( eye_r ,l ) ;
		orz( eye_l ,r ) ;
	}

	for( int i = 0 ; i < 4 ; i++ )
		printf( "%d %d\n" ,l[ i ] ,r[ i ] ) ;

	return 0 ;
}

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

int main(){
	int cntA[2]={0},cntB[2]={0},cntC[2]={0},cntD[2]={0};
	double right,left;
	while(cin>>left){
		cin>>right;
		if(right>=1.1)cntA[0]++;
		else if(right>=0.6)cntB[0]++;
		else if(right>=0.2)cntC[0]++;
		else cntD[0]++;
		if(left>=1.1)cntA[1]++;
		else if(left>=0.6)cntB[1]++;
		else if(left>=0.2)cntC[1]++;
		else cntD[1]++;
	}
	cout<<cntA[1]<<" "<<cntA[0]<<endl;
	cout<<cntB[1]<<" "<<cntB[0]<<endl;
	cout<<cntC[1]<<" "<<cntC[0]<<endl;
	cout<<cntD[1]<<" "<<cntD[0]<<endl;
	return 0;
}

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

int eyeTest(double eyesight);

int main()
{
    double l;
    double r;
    int result_left[4] = {};
    int result_right[4] = {};
    while(cin >> l >> r)
    {
        result_left[eyeTest(l)]++;
        result_right[eyeTest(r)]++;
    }
    for(int i=0; i<4; i++)
    {
        cout << result_left[i] << " " <<result_right[i] << endl;
    }
    return 0;
}

int eyeTest(double eyesight)
{
    int ret_value;

    if(isgreaterequal(eyesight, 1.1))
    {
        ret_value = 0;
    }
    else if(isgreaterequal(eyesight, 0.6))
    {
        ret_value = 1;
    }
    else if(isgreaterequal(eyesight, 0.2))
    {
        ret_value = 2;
    }
    else
    {
        ret_value = 3;
    }
    return ret_value;
}

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

int main() {
	int a[4][2] = {0};
	double in[2];
	while(cin >> in[0] >> in[1]) {
		for(int i = 0; i < 2; i++) {
			if(in[i] < 0.2)
				a[3][i]++;
			else if(in[i] < 0.6)
				a[2][i]++;
			else if(in[i] < 1.1)
				a[1][i]++;
			else
				a[0][i]++;
		}
	}
	for(int i = 0; i < 4; i++)
		cout << a[i][0] << " " << a[i][1] << endl;
}

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

int main() {
  double d, e;
  int a[4] = {0}, b[4] = {0};
  while(cin >> d >> e) {
    if(d >= 1.1) ++a[0];
    else if(d >= 0.6) ++a[1];
    else if(d >= 0.2) ++a[2];
    else ++a[3];
    if(e >= 1.1) ++b[0];
    else if(e >= 0.6) ++b[1];
    else if(e >= 0.2) ++b[2];
    else ++b[3];
  }
  for(int i = 0; i < 4; ++i) cout << a[i] << " " << b[i] << endl;
  return 0;
}

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

using namespace std;

int ans[5][10];
double ch[] = {1.1,0.6,0.2,0.1};
double d[3];

int main(){
	int l,r;
//	int la = 0,lb = 0,lc = 0,ld = 0,ra = 0,rb = 0,rc = 0,rd = 0;
	while(cin >> d[0] >> d[1]){
//		if(d[0] + d[1] == 0)break;
		for(int l = 0;l < 2;l++){
			for(int i = 0;i < 4;i++){
				if(d[l] >= ch[i]){
					ans[l][i]++;
					break;
				}
			}
		}
	}
	for(int i = 0;i < 4;i++){
		cout << ans[0][i] << " " <<  ans[1][i] << endl; 
	}
}

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

int main() {
	double l, r;
	int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;
	while (cin >> l >> r) {
		if (l >= 1.1) { a++; }
		else if (l >= 0.6&&1.1 > l) { c++; }
		else if (l >= 0.2&&0.6 > l) { e++; }
		else { g++; }

		if (r >= 1.1) { b++; }
		else if (r >= 0.6&&1.1 > r) { d++; }
		else if (l >= 0.2&&0.6 > r) { f++; }
		else { h++; }
	}
	cout << a << " " << b <<'\n'<< c << " " << d << '\n' << e << " " << f <<'\n'
		<<g << " " << h ; 
		return 0;
}

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

int main(){
	
	double a[2];
	int b[4][2]={0};
	cin>>n;
	while(cin>>a[0]>>a[1]){
	for(int i=0;i<2;i++){
	if(a[i]<0.2)
		b[3][i]++;
	else if(a[i]<0.6)
		b[2][i]++;
	else if(a[i]<1.1)
		b[1][i]++;
	else
		b[0][i]++;
	}
	}
	for(int i=0;i<4;i++)
		cout<<b[i][0]<<" "<<b[i][1]<<endl;
	

}

C++: #include<stdio.h>
int main(){
  double l,r;
  int a[4][2]={};
  for(int i=0;i<4;i++){
    scanf("%lf %lf",&l,&r);
    if(l >= 1.1) a[0][0]++;
    else if(l >= 0.6) a[1][0]++;
    else if(l >= 0.2) a[2][0]++;
    else a[3][0]++;
    if(r >= 1.1) a[0][1]++;
    else if(r >= 0.6) a[1][1]++;
    else if(r >= 0.2) a[2][1]++;
    else a[3][1]++;
  }
  for(int i=0;i<4;i++){
    printf("%d %d\n",a[i][0],a[i][1]);
  }
  return (0);
}

C++: #include<iostream>

using namespace std;

int d[4][2];

int c(double x){
	if(x<0.2)return 3;
	if(x<0.6)return 2;
	if(x<1.1)return 1;
	return 0;
}
int main(){
	double a,b;
	while(cin>>a>>b){
		d[c(a)][0]++;
		d[c(b)][1]++;
	}
	for(int i=0;i<4;i++)cout<<d[i][0]<<" "<<d[i][1]<<endl;
}

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

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

double leye, reye;
int A[2], B[2], C[2], D[2];

int main() {
    for (int i = 0; i < 4; i++) { 
            cin >> leye;
            if (leye >= 1.1) A[0]++;
            else if (leye >= 0.6 && leye < 1.1) B[0]++;
            else if (leye >= 0.2 && leye < 0.6) C[0]++;
            else if (leye < 0.2) D[0]++;
            
            cin >> reye;
            if (reye >= 1.1) A[1]++;
            else if (reye >= 0.6 && reye < 1.1) B[1]++;
            else if (reye >= 0.2 && reye < 0.6) C[1]++;
            else if (reye < 0.2) D[1]++;
    }
    
    cout << A[0] << " " << A[1] << endl;
    cout << B[0] << " " << B[1] << endl;
    cout << C[0] << " " << C[1] << endl;
    cout << D[0] << " " << D[1] << endl;
    
    return 0;
}