C++ 代码
#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int a,s1,s2;
int main()
{
int i,x;
cin>>a;
for (int i=1;i<=a;i++)
{
cin>>x;
if (x>=10&&x<=20) s1++;
else s2++;
}
cout<<s1<<" in";
cout<<endl;
cout<<s2<<" out";
}