Submission #882821

# Submission time Handle Problem Language Result Execution time Memory
882821 2023-12-03T19:20:59 Z unexpectedbro Studentsko (COCI14_studentsko) C++14
0 / 100
3 ms 860 KB
#include<bits/stdc++.h>
using namespace std;
int main() {
	int n, k; cin >> n >> k;
	int a[n],b[n];
	for (int i = 0; i < n; i++) {
		cin >> a[i];
	}
	sort(b, b + n);
	int cnt = 0;
	for (int i = 0; i < k; i++) {
		bool ok = false;
		for (int j = 0; j < k; j++) {
			if (b[i] == a[j])ok = true;
		}
		cnt += ok;
	}
	cout << k - cnt << endl;

}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 860 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -