Submission #151423

#TimeUsernameProblemLanguageResultExecution timeMemory
151423phillipCipele (COCI18_cipele)C++14
18 / 90
162 ms2936 KiB
#include <bits/stdc++.h> using namespace std; int n,m,a[100009],b[100009],ans; int main() { cin>>n>>m; for(int i=0;i<n;i++) { cin>>a[i]; } for(int i=0;i<n;i++)cin>>b[i]; sort(a,a+n); sort(b,b+n); for(int i=0;i<n;i++) { ans=max(ans,abs(a[i]-b[i])); } cout<<ans; }
#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...