# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
499475 |
2021-12-28T13:30:24 Z |
DolzX01 |
Kutije (COCI21_kutije) |
C++14 |
|
790 ms |
1736 KB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,m,q,a[1005],x,y;
cin>>n>>m>>q;
for (int j=0;j<m;j++)
{
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 |
790 ms |
1736 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
790 ms |
1736 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |