Submission #580119

# Submission time Handle Problem Language Result Execution time Memory
580119 2022-06-20T15:43:53 Z vqpahmad Planinarenje (COCI18_planinarenje) C++14
0 / 160
2 ms 372 KB
#include <bits/stdc++.h>    // Hippity hoppity, this code is Faro0osa's property
 
// Munther(My friend): "Eat carrots"
 
#define endl '\n'
 
#define ll long long
 
using namespace std;
 
int main(){
 
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
 
    int n;
    cin >> n;
    int wnd[n];
    int bx[n];
    for(int i = 0;i < n;i++){
        cin >> wnd[i];
    }
    for(int i = 0;i < n;i++){
        cin >> bx[i];
    }
    sort(wnd,wnd + n);
    sort(bx,bx + n);
    bool flag = 0;
    for(int i = 0;i < n;i++){
        if(bx[i] < wnd[i]){
            flag = 1;
            break;
        }
    }
    if(flag == 1){
        cout << "NE";
    }else{
        cout << "DA";
    }
 
 
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 372 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -