# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
390406 |
2021-04-16T02:45:35 Z |
ioi |
Cipele (COCI18_cipele) |
C++14 |
|
132 ms |
2860 KB |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n , m;
cin >> n >> m;
vector<int> a(n) , b(m);
for(int i = 0 ;i < n ; i ++)
cin >> a[i];
for(int i = 0 ; i < m ; i ++)
cin >> b[i];
if(n > m)swap(a , b) , swap(n , m);
long long mn = 0 ;
sort(a.begin() , a.end());
sort(b.begin() , b.end());
for(int i = 0 ; i < n ; i ++)
mn = max(mn , 1ll * abs(a[i] - b[i]));
cout << mn ;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
75 ms |
2500 KB |
Output is correct |
2 |
Correct |
132 ms |
2860 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
98 ms |
2856 KB |
Output is correct |
2 |
Correct |
104 ms |
2856 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
332 KB |
Output is correct |
2 |
Correct |
6 ms |
332 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
332 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
468 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
332 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
332 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
85 ms |
2332 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
90 ms |
2516 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
80 ms |
2316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |