# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
499517 |
2021-12-28T14:35:41 Z |
Abito |
Kutije (COCI21_kutije) |
C++14 |
|
772 ms |
1964 KB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,m,q;
cin>>n>>m>>q;
pair<int,int> x[n+1];
for (int i=1;i<=n;i++)
{
x[i].first=i;
}
int l;
for (int i=1;i<=n;i++)
{
cin>>l;
x[l].second=i;
}
int a,b;
while (q--)
{
cin>>a>>b;
if (a==b)
cout<<"DA"<<endl;
else if (x[a].second==b)
{
cout<<"DA"<<endl;
}
else
cout<<"NE"<<endl;
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
772 ms |
1964 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 |
772 ms |
1964 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |