Submission #483647

#TimeUsernameProblemLanguageResultExecution timeMemory
483647Mostafa_AboalkasimOlivander (COCI18_olivander)C++17
50 / 50
1 ms288 KiB
#include <iostream> #include<algorithm> using namespace std; int main() { int n ; cin >> n ; int arr[n] , arr2[n]; for (int i = 0 ; i< n ; ++i) { cin >> arr[i]; } sort(arr, arr +n); for (int i = 0 ; i< n ; ++i) { cin >> arr2[i]; } sort(arr2, arr2 +n); for (int i = 0 ; i< n ; ++i) { if (arr[i] > arr2[i]) { cout << "NE"; return 0; } } cout << "DA"; return 0; }
#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...