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++: // Tazoe

#include <iostream>
using namespace std;

int main()
{
	int cntLA = 0;
	int cntLB = 0;
	int cntLC = 0;
	int cntLD = 0;
	int cntRA = 0;
	int cntRB = 0;
	int cntRC = 0;
	int cntRD = 0;

	while(true){
		double L;
		cin >> L;

		if(cin.eof())
			break;

		double R;
		cin >> R;

		if(L>=1.1){
			cntLA++;
		}
		else if(L>=0.6){
			cntLB++;
		}
		else if(L>=0.2){
			cntLC++;
		}
		else{
			cntLD++;
		}

		if(R>=1.1){
			cntRA++;
		}
		else if(R>=0.6){
			cntRB++;
		}
		else if(R>=0.2){
			cntRC++;
		}
		else{
			cntRD++;
		}
	}

	cout << cntLA << ' ' << cntRA << '\n';
	cout << cntLB << ' ' << cntRB << '\n';
	cout << cntLC << ' ' << cntRC << '\n';
	cout << cntLD << ' ' << cntRD << '\n';

	return 0;
}

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

int classify(double d){
    if(d >= 1.1)    return 0;
    if(d >= 0.6)    return 1;
    if(d >= 0.2)    return 2;
    return 3;
}

int main(){
    int ans[4][2] = {};

    double l, r;
    while(cin >> l >> r){
        ans[classify(l)][0]++;
        ans[classify(r)][1]++;
    }

    for(int i = 0; i < 4; i++){
        printf("%d %d\n", ans[i][0], ans[i][1]);
    }

    return 0;
}

C++: #include<stdio.h>
int main()
{
	double l,r;
	int al=0,bl=0,cl=0,dl=0,ar=0,br=0,cr=0,dr=0;
	while(scanf("%lf%lf",&l,&r)!=EOF){
		if(l>=1.1){
			al++;
		}else if(l>=0.6){
			bl++;
		}else if(l>=0.2){
			cl++;
		}else{
			dl++;
		}
		if(r>=1.1){
			ar++;
		}else if(r>=0.6){
			br++;
		}else if(r>=0.2){
			cr++;
		}else{
			dr++;
		}
	}
	printf("%d %d\n%d %d\n%d %d\n%d %d\n",al,ar,bl,br,cl,cr,dl,dr);
	return 0;
}

C++: #include <bits/stdc++.h>
#define R(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  double c,b;
  int a[4][2]={0};
  while(cin>>c>>b){
    if(c>1.0)a[0][0]++;
    else if(c>0.5)a[0][1]++;
    else if(c>0.1)a[0][2]++;
    else a[0][3]++;
    if(b>1.0)a[1][0]++;
    else if(b>0.5)a[1][1]++;
    else if(b>0.1)a[1][2]++;
    else a[1][3]++;
  }
  R(i,4)cout<<a[i][0]<<' '<<a[i][1]<<endl;
}

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

int R[4], L[4];
int main()
{
    double r, l;
    while (cin >> r >> l)
    {
        if (r >= 1.1)
            R[0]++;
        else if (r >= 0.6)
            R[1]++;
        else if (r >= 0.2)
            R[2]++;
        else
            R[3]++;
        if (l >= 1.1)
            L[0]++;
        else if (l >= 0.6)
            L[1]++;
        else if (l >= 0.2)
            L[2]++;
        else
            L[3]++;
    }
    for( int i = 0; i < 4; i++ )cout << R[i] << ' ' << L[i] << endl;
    
}

C++: #include <stdio.h>

int main(void){
    int cnt[8] = {0};
    double l,r;
    
    while (scanf("%lf%lf",&l,&r)!=EOF){
        if (l<0.2) cnt[3]++;
        else if (l<0.6) cnt[2]++;
        else if (l<1.1) cnt[1]++;
        else cnt[0]++;
        if (r<0.2) cnt[7]++;
        else if (r<0.6) cnt[6]++;
        else if (r<1.1) cnt[5]++;
        else cnt[4]++;
    }
    for (int i=0; i<4; i++){
        printf("%d %d\n",cnt[i],cnt[i+4]);
    }
    
    return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	double right,left;
	int A , B , C , D;
	int a , b , c , d;
	
	A = B = C = D = 0;
	a = b = c = d = 0;
	
	while(cin>>left>>right){
		if(left >= 1.1){
			A++;
		}
		else if(left < 1.1 && left >= 0.6){
			B++;
		}
		else if(left < 0.6 && left >= 0.2){
			C++;
		}
		else{
			D++;
		}
		
		if(right >= 1.1){
			a++;
		}
		else if(right < 1.1 && right >= 0.6){
			b++;
		}
		else if(right < 0.6 && right >= 0.2){
			c++;
		}
		else{
			d++;
		}
	}
	
	printf("%d %d\n",A,a);
	printf("%d %d\n",B,b);
	printf("%d %d\n",C,c);
	printf("%d %d\n",D,d);
	
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(void)
{
	int i,j,k,left[4]={0},right[4]={0};
	double s1,s2;
	while(scanf("%lf %lf",&s1,&s2)!=EOF) {
		if(s1>=1.1) right[0]++;
		else if(s1>=0.6) right[1]++;
		else if(s1>=0.2) right[2]++;
		else right[3]++;
		if(s2>=1.1) left[0]++;
		else if(s2>=0.6) left[1]++;
		else if(s2>=0.2) left[2]++;
		else left[3]++;
	}
	for(i=0;i<4;i++) cout<<right[i]<<" "<<left[i]<<endl;
}

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

int main()
{
	double a, b;
	int i;
	vector<int> v1(4), v2(4);
	while (cin>>a>>b) {
		v1[(a>=1.1)+(a>=0.6)+(a>=0.2)]++;
		v2[(b>=1.1)+(b>=0.6)+(b>=0.2)]++;
	}
	for (i = 3; i >= 0; i--) cout<<v1[i]<<" "<<v2[i]<<endl;

	return 0;
}

C++: #include <iostream>
using namespace std;
int ar,al,br,bl,cr,cl,dr,dl;
double l,r;
void classify()
{
	if(l>=1.1)al++;
	else if(l>=0.6)bl++;
	else if(l>=0.2)cl++;
	else dl++;
	if(r>=1.1)ar++;
	else if(r>=0.6)br++;
	else if(r>=0.2)cr++;
	else dr++;
}
int main()
{
	while(cin >> l >> r)
	{
		classify();
	}
	cout << al << ' ' << ar << endl;
	cout << bl << ' ' << br << endl;
	cout << cl << ' ' << cr << endl;
	cout << dl << ' ' << dr << endl;
	return 0;
}

C++: #include <iostream>
using namespace std;
int ppl[4][2];

int c(double n){
	if(n>=1.1)return 0;
	if(n>=0.6)return 1;
	if(n>=0.2)return 2;
	return 3;
}

int main(){
	double t,t2;
	while(cin >> t >> t2){	
		ppl[c(t)][0]++;
		ppl[c(t2)][1]++;
	}
	for(int i=0;i<4;i++){
			cout << ppl[i][0] << " " << ppl[i][1] << endl;
	}
}

C++: //Name: Eye Test
//Level: 1
//Category: やるだけ
//Note:

/**
 * 表を写して引けば良い。
 */
#include <iostream>

using namespace std;

bool solve(bool first) {
    int res[2][4] = {0};
    double s[2];
    while(cin >> s[0] >> s[1]) {
        for(int i = 0; i < 2; ++i) {
            if(s[i] >= 1.1) {
                res[i][0]++;
            } else if(s[i] >= 0.6) {
                res[i][1]++;
            } else if(s[i] >= 0.2) {
                res[i][2]++;
            } else {
                res[i][3]++;
            }
        }
    }
    for(int i = 0; i < 4; ++i) {
        std::cout << res[0][i] << ' ' << res[1][i] << std::endl;
    }
    return false;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout.setf(ios::fixed);
    cout.precision(10);

    bool first = true;
    while(solve(first)) {
        first = false;
    }
    return 0;
}

C++: #include<stdio.h>
int main(void)
{
    float a,b;
	int c1,c2,d1,d2,e1,e2,f1,f2;
	c1=0;
	c2=0;
	d1=0;
	d2=0;
	e1=0;
	e2=0;
	f1=0;
	f2=0;
	while(scanf("%f %f",&a,&b)!=EOF){
		if(a>=1.1){
			c1=c1+1;
		}
		else if(a>=0.6){
			d1=d1+1;
		}
		else if(a>=0.2){
			e1=e1+1;
		}
		else{
			f1=f1+1;
		}
		if(b>=1.1){
			c2=c2+1;
		}
		else if(b>=0.6){
			d2=d2+1;
		}
		else if(b>=0.2){
			e2=e2+1;
		}
		  else{
			f2=f2+1;
		}
	}
	printf("%d %d\n",c1,c2);
	printf("%d %d\n",d1,d2);
	printf("%d %d\n",e1,e2);
	printf("%d %d\n",f1,f2);
	return 0;
}