Răspuns:
#include <iostream>
using namespace std;
int n;
int cnt;
int nr;
int a[1001];
bool are2(int n)
{
int cnt = 0;
while (n)
{
cnt++;
n /= 10;
}
if (cnt != 2)
return false;
return true;
}
int cate(int cnt)
{
for (int i = 1; i <= n; i++)
if (are2(a[i]))
cnt++;
return cnt;
}
void citestedate()
{
cin >> n;
for (int i = 1; i <= n; i++)
cin >> a[i];
}
int main()
{
citestedate();
cout << cate(cnt);
}