답안 #499444

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 781 ms 2052 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 781 ms 2052 KB Output isn't correct
2 Halted 0 ms 0 KB -