# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
499469 |
2021-12-28T13:19:57 Z |
DolzX01 |
Kutije (COCI21_kutije) |
C++14 |
|
786 ms |
1992 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;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
786 ms |
1992 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
786 ms |
1992 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |