Submission #237497

# Submission time Handle Problem Language Result Execution time Memory
237497 2020-06-07T06:16:06 Z NONAME Olivander (COCI18_olivander) C++17
50 / 50
6 ms 384 KB
#include <bits/stdc++.h>
using namespace std;
int n, a[100], b[100];
int main() {
  	cin >> n;
  	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++)
      	if (a[i] > b[i]) {
          	cout << "NE";
          	return 0;
        }
  
  	cout << "DA";
}
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 5 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 5 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 5 ms 384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 5 ms 384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 5 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 256 KB Output is correct
2 Correct 5 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 384 KB Output is correct
2 Correct 4 ms 384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 4 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 384 KB Output is correct
2 Correct 5 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 5 ms 256 KB Output is correct