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