# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
239045 |
2020-06-14T08:13:59 Z |
NONAME |
Vrtić (COCI18_vrtic) |
C++17 |
|
5 ms |
384 KB |
#include <iostream>
#include <vector>
#include <queue>
#include <fstream>
#include <algorithm>
using namespace std;
using ll = long long;
const int N = 2e5 + 10;
const ll oo = 1e18;
int n, a[N];
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
cin >> n;
for (int i = 0; i < n; ++i) {
int x;
cin >> x;
}
for (int i = 0; i < n; ++i)
cin >> a[i];
sort(a, a + n);
cout << a[n - 1] - a[0] << "\n";
for (int i = 0; i < n; ++i)
cout << a[i] << ' ';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
jury has better answer |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
384 KB |
jury has better answer |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
the dissatisfaction value doesn't match with your answer |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
256 KB |
the dissatisfaction value doesn't match with your answer |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
the dissatisfaction value doesn't match with your answer |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
the dissatisfaction value doesn't match with your answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
the dissatisfaction value doesn't match with your answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
384 KB |
the dissatisfaction value doesn't match with your answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
the dissatisfaction value doesn't match with your answer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
the dissatisfaction value doesn't match with your answer |
2 |
Halted |
0 ms |
0 KB |
- |