# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
86288 | kraljlavova1 | Kocka (COCI18_kocka) | C++11 | 171 ms | 2284 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int polje[4*n];
for(int i=0;i<4*n;i++){
cin>>polje[i];
}
for(int i=0;i<3*n;i++){
if(i<n or i>=2*n and i<3*n){
if(polje[i]==-1 && polje[i+n]!=-1 || polje[i+n]==-1 && polje[i]!=-1){
cout<<"NE";
return 0;
}
else if(polje[i]+polje[i+n]>=n){
cout<<"NE";
return 0;
}
}
}
cout<<"DA";
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |