Submission #499444

# Submission time Handle Problem Language Result Execution time Memory
499444 2021-12-28T12:27:29 Z Haboosh915 Kutije (COCI21_kutije) C++17
0 / 70
781 ms 2052 KB
#include <bits/stdc++.h>

using namespace std;



int main(){

    int n , m , q ; cin >> n >> m >> q ;

    int a[n+4] ;

    for (int i = 1 ; i <= n ; i ++ ) {
        cin >> a[i] ;
    }

    for ( int i = 1 ; i <= q ; i ++ ) {
        int x , y ;
        cin >> x >> y ;

        if ( x == y ) cout << "DA" ;
        else if ( a[y] == x ) cout << "DA" ;
        else cout << "NA" ;

        cout << endl ;
    }

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 781 ms 2052 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 781 ms 2052 KB Output isn't correct
2 Halted 0 ms 0 KB -