1)
#include
#include
#include
#include
using namespace std;
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int N;
cin >> N;
int ans = 0;
for(int i = 0; i < N; i++)
{
float k;
cin >> k;
if(k > 0)
ans++;
}
cout << ans;</strong>
}
2)
#include
#include
#include
#include
using namespace std;
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int N;
cin >> N;
float k;
cin >> k;
int ans = 0;
for(int i = 0; i < N; i++)
{
float m;
cin >> m;
if(m == k)
ans++;
}
cout << ans;</p>
}
3)
#include
#include
#include
#include
using namespace std;
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int N;
cin >> N;
int ans = 1;
for(int i = 0; i < N; i++)
{
int m;
cin >> m;
if(m % 2 == 1)
ans *= m;
}
cout << ans;</strong>
}