Submission #499456

# Submission time Handle Problem Language Result Execution time Memory
499456 2021-12-28T12:56:08 Z adam Kutije (COCI21_kutije) C++14
0 / 70
776 ms 1816 KB
#include <bits/stdc++.h>
 
using namespace std;
 
 
 
int main(){
 
    int n , m , k ; 
   cin >> n >> m >> k ;
 
    int c[n] ;
 
    for (int i = 0 ; i < n ; i ++ ) {
        cin >> c[i] ;
    }
 
    for ( int i = 0 ; i < k ; i ++ ) {
        int a , b ;
        cin >> a >> b ;
 
        if ( a == b ) cout << "DA" ;
        else if ( c[b] == a ) cout << "DA" ;
        else cout << "NE" ;
 
        cout << endl ;
    }
 
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 776 ms 1816 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 776 ms 1816 KB Output isn't correct
2 Halted 0 ms 0 KB -