Submission #882821

#TimeUsernameProblemLanguageResultExecution timeMemory
882821unexpectedbroStudentsko (COCI14_studentsko)C++14
0 / 100
3 ms860 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...