Submission #499444

#TimeUsernameProblemLanguageResultExecution timeMemory
499444Haboosh915Kutije (COCI21_kutije)C++17
0 / 70
781 ms2052 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...