Submission #42692

# Submission time Handle Problem Language Result Execution time Memory
42692 2018-03-02T17:19:37 Z iletavcioski Olivander (COCI18_olivander) C++14
0 / 50
2 ms 704 KB
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
int main()
{
    int n;
    cin>>n;
    vector<int> v1,v2;
    for(int i=100;i>=0;i--)
    {
        int a;
        cin>>a;
        v1.push_back(a);
        v2.push_back(a);
    }
    sort(v1.begin(),v1.end());
    sort(v2.begin(),v2.end());
    for(int i=0;i<n;i++)
    {
        if(v2[i]<v1[i])
        {
            cout<<"NE"<<endl;
            return 0;
        }

    }
    cout<<"DA"<<endl;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 248 KB Output is correct
2 Incorrect 1 ms 352 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 460 KB Output is correct
2 Incorrect 1 ms 512 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 544 KB Output is correct
2 Incorrect 2 ms 544 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 544 KB Output is correct
2 Incorrect 2 ms 600 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 632 KB Output is correct
2 Incorrect 2 ms 632 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 632 KB Output is correct
2 Incorrect 2 ms 636 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 636 KB Output is correct
2 Incorrect 1 ms 636 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 636 KB Output is correct
2 Incorrect 2 ms 636 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 704 KB Output is correct
2 Incorrect 1 ms 704 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 704 KB Output is correct
2 Incorrect 2 ms 704 KB Output isn't correct