#include <iostream>
using namespace std;
void shuru(int shuzu[5][2])
{
cout << "请输入您要创立的5个数组数" << endl;
for (int i = 0; i < 5; i++)
{
int b = i + 1;
cout<<"请输入第" << b <<"个数组";
cin >> shuzu[i][0] >> shuzu[i][1];
}
}
int check(int shuzu[5][2], int coutnum) {
cout << "请输入你要确定的最小边长";
int len;
cin >> len;
int max[5];
for (int i = 0; i < 5; i++)
{
if (shuzu[i][0] <= shuzu[i][1])
{
max[i] = shuzu[i][0];
}
else {
max[i] = shuzu[i][1];
}
}
for (int i = 0; i < 5; i++) {
if (max[i] >= len) {
coutnum += 1;
}
}
return coutnum;
}
void main() {
int shuzu[5][2];
shuru(shuzu);
int coutnum=0 ;
cout<<check(shuzu,coutnum);
}


