| Task: | Kortit |
| Sender: | rasastusni |
| Submission time: | 2020-09-26 13:21:09 +0300 |
| Language: | C++ (C++17) |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | WRONG ANSWER | 0 |
| #2 | WRONG ANSWER | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | WRONG ANSWER | 0.01 s | 1, 2 | details |
| #2 | WRONG ANSWER | 0.01 s | 2 | details |
Code
#include <iostream>
using namespace std;
int main()
{
int t;
cin >> t;
for (int i = 0; i < t; ++i) {
int n;
cin >> n;
int w = 0;
for (int a = 0; a < n / 2; ++a) {
int k;
cin >> k;
if (k > n / 2) ++w;
}
cout << w << endl;
}
}
