Submission #672720

# Submission time Handle Problem Language Result Execution time Memory
672720 2022-12-17T18:30:29 Z Charizard2021 Cipele (COCI18_cipele) C++17
18 / 90
91 ms 3648 KB
#include<bits/stdc++.h>
using namespace std;
int main(){
    int n, m;
    cin >> n >> m;
    vector<long long> l(n);
    vector<long long> r(m);
    for(int i = 0; i < n; i++){
        cin >> l[i];
    }
    for(int i = 0; i < m; i++){
        cin >> r[i];
    }
    sort(l.begin(), l.end());
    sort(r.begin(), r.end());
    if(n == m){
        long long ans = INT_MIN;
        for(int i = 0; i < n; i++){
            ans = max(ans, abs(l[i] - r[i]));
        }
        cout << ans << "\n";
    }
}
# Verdict Execution time Memory Grader output
1 Correct 63 ms 1880 KB Output is correct
2 Correct 79 ms 3648 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 91 ms 1748 KB Output is correct
2 Correct 85 ms 3644 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 364 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 75 ms 1564 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 84 ms 1676 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 62 ms 1492 KB Output isn't correct
2 Halted 0 ms 0 KB -