답안 #499470

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
499470 2021-12-28T13:20:52 Z DolzX01 Kutije (COCI21_kutije) C++14
0 / 70
806 ms 1792 KB
#include <bits/stdc++.h>

using namespace std;

int main()
{
   int n,m,q,a[1005],x,y;
   cin>>n>>m>>q;
   for (int i=1;i<=n;i++)
   {
       cin>>a[i];

   }
   for (int i=0;i<q;i++)
   {
       cin>>x>>y;
       if (((a[x]==y)||(a[y]==x))||(x==y))
       {
           cout<<"DA"<<endl;
       }
       else
       {
           cout<<"NE"<<endl;
       }
   }



    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 806 ms 1792 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 806 ms 1792 KB Output isn't correct
2 Halted 0 ms 0 KB -