# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
171163 | itiam | Kocka (COCI18_kocka) | C++11 | 209 ms | 4440 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 <iostream>
using namespace std;
int L[100004],R[100004],U[100004],D[100004];
int main(){
int N,x;
string rj="DA";
cin >> N;
for (int i=0;i<N;i++){
cin >> x;
L[i]=x;
}
for (int i=0;i<N;i++){
cin >> x;
R[i]=x;
}
for (int i=0;i<N;i++){
cin >> x;
U[i]=x;
}
for (int i=0;i<N;i++){
cin >> x;
D[i]=x;
}
for (int i=0;i<N;i++){
if ((L[i]==-1 && R[i]!=-1) || (R[i]==-1 && L[i]!=-1) || L[i]+R[i]>=N){
rj="NE";
break;
}
# | 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... |