Submission #858135

# Submission time Handle Problem Language Result Execution time Memory
858135 2023-10-07T12:58:30 Z Ludissey Exam (eJOI20_exam) C++14
0 / 100
5 ms 444 KB
#include <bits/stdc++.h>
#define int long long
using namespace std;



signed main(){
    int N; cin >> N;
    vector<int> A(N),B(N);
    for (int i = 0; i < N; i++) cin >> A[i];
    for (int i = 0; i < N; i++) cin >> B[i];
    sort(A.begin(),A.end());
    int sum=0;
    for (int i = 0; i < N; i++) {
        if(B[0]==A[i]) {
            sum+=i;
            break;
        }
    }
    for (int i = 0; i < N; i++) {
        if(B[0]==A[i]) sum++;
    }
    cout << sum << "\n";
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 444 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -