# data[].attributes.body
#include <bits/stdc++.h>

using namespace std;
fstream f("intrare_cod.txt");

int main()
{
int n, k = 0;
char b;
string s;
f >> n;
while (f >> b)
{
if (b == '2')
k++;
}
cout << k;
f.close();
return 0;
}

# data[].attributes.body
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
ifstream fisier("intrare_cod.txt");
int n,x,y;
y=0;
fisier>>n;
for (int i=1; i<=n; i++) {
fisier>>x;
if (x==2) {
y++;
}
}
fisier.close();
cout<<y;
return 0;
}

# data[].attributes.body
#include <bits/stdc++.h>

using namespace std;
fstream f ("parola.txt");
fstream f2 ("valide.txt");
int main()
{
string s;
int n = 0, N, k;
f >> N;
while (getline(f, s))
{
k = 0;
for (int i = 0; i < s.size(); i++)
{
if (s[i] >= 'a' && s[i] <= 'z')
k++;
}
if ( k != 0)
n++;
}
f2 << n;
f.close();
f2.close();
return 0;
}

# data[].attributes.body
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main()
{
int n,k=0,i,A;
ifstream f(".\intrare_cod.txt");
f>>n;
for(i=0;i<n;i++)
{
f>>A;
if(x==A) k++;
}
f.close();
cout<<k;
return 0;
}

# data[].attributes.headline
#include#include#includeusing namespace std;int main(){ string a;int n,i,k=0,j;ifstream f("parola.txt");    f>>n; for (i=0;i>a;    for(j=0;j=97 && int(a[j])<=112)  cout<<"parola valida"<

# data[].attributes.subject
#include#include#includeusing namespace std;int main(){ string a;int n,i,k=0,j;ifstream f("parola.txt");    f>>n; for (i=0;i>a;    for(j=0;j=97 && int(a[j])<=112)  cout<<"parola valida"<

# data[].attributes.body
Adelina

# data[].attributes.body
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main()
{
ifstream fisier("parola.txt");
int n,y,len,z;
string x,s;
z=0;
fisier>>n;
for (int i=1; i<=n; i++) {
y=0;
fisier>>x;
len=x.length();
for (int k=0; k<len; k++) {
s=s.substr(k,1);
if (x=="a" || x=="b" || x=="c" || x=="d" || x=="e" || x=="f" || x=="g" || x=="h" || x=="i" || x=="j" || x=="k" || x=="l" || x=="m" || x=="n" || x=="o" || x=="p" || x=="q" || x=="r" || x=="s" || x=="t" || x=="u" || x=="v" || x=="w" || x=="x" ||x=="y" || x=="z" ) {
y=1;
break;
}
}
if (y=1) {z++;}
}
}
fisier.close();
ofstream fisier2("valide.txt");
fisier2<<z;
fisier2.close();
return 0;
}

# data[].attributes.body
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
int main()
{ string a;int n,i,k=0,j;
ifstream f("parola.txt");
f>>n;
for (i=0;i<n;i++)
{ f>>a;
for(j=0;j<a.length();j++)
if(int(a[j])>=97 && int(a[j])<=112) cout<<"parola valida"<<endl; else cout<<"parola invalida"<<endl; } f.close(); return 0;}

# data[].attributes.body
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
int main()
{ string a;int n,i,k=0,j;
ifstream f("parola.txt");
f>>n;
for (i=0;i<n;i++)
{ f>>a;
for(j=0;j<a.length();j++)
if(int(a[j])>=97 && int(a[j])<=112) cout<<"parola valida"<<endl; else cout<<"parola invalida"<<endl; } f.close(); return 0;}

# data[].attributes.body
Catar Emil

# data[].attributes.body
1. #include <bits/stdc++.h>
using namespace std;

int main()
{
string s;
int N,K,z=0,m=0,n,p,f,min,aux;
ifstream F("fotbal.in.txt");
F>>N>>K;
for(int g=0;g<=N;g++){
for(int i=0;i<K;i++){
getline(cin,s);
for(int z=0;z<K;z++){
if(s[z]!=3){
m++;
}
if(m==K){f++;}
if(min>m){
min=m;
aux=z;
}
}

}

}

ofstream oF ("fotbal.out.txt");
oF<<aux<<" "<<f;
oF.close();
F.close();

return 0;
}

# data[].attributes.body
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
typedef char vector [30];
string s,ss;
vector v;
int i,max,zs;
ifstream F("vreme.in");
F>>s;
max=0;
for (i=0; i<s.length();i++)
{
v[i]=s[i];
}

zs=0;
for (i=0; i<10;i++)
{
if (v[i]=='S') zs++;
}
if (zs>max){max=zs;ss="1-10";}
zs=0;
for (i=10; i<20;i++)
{
if (v[i]=='S')  zs++;
}
if (zs>max){ max=zs;ss="11-20";};
zs=0;
for (i=20; i<30;i++)
{
if (v[i]=='S') zs++;
}
if (zs>max){ max=zs;ss="21-30";};

ofstream FI("vreme.out");
FI<<ss<<endl;
FI<<max;
FI.close();

return 0;
}

//profesor