Submission #779077

# Submission time Handle Problem Language Result Execution time Memory
779077 2023-07-11T07:27:14 Z vjudge1 Cipele (COCI18_cipele) C++17
18 / 90
30 ms 3656 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define faster ios_base::sync_with_stdio(false);cin.tie(NULL);
#define OYY 1000000005
#define mod 998244353

int32_t main(){
    faster
    int n,m;cin>>n>>m;
    int dizi[n],dizi1[m];
    for(int i=0;i<n;i++)cin>>dizi[i];
    for(int i=0;i<n;i++)cin>>dizi1[i];
    sort(dizi,dizi+n);
    sort(dizi1,dizi1+n);
    int maxi=0;
    for(int i=0;i<n;i++){
        maxi=max(abs(dizi[i]-dizi1[i]),maxi);
    }
    cout<<maxi<<endl;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 17 ms 3404 KB Output is correct
2 Correct 30 ms 3656 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 28 ms 3636 KB Output is correct
2 Correct 29 ms 3636 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Incorrect 2 ms 468 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 2844 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 3224 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 19 ms 2948 KB Output isn't correct
2 Halted 0 ms 0 KB -