# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
701746 | chenyan | Sunčanje (COCI18_suncanje) | C++17 | 4078 ms | 6604 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;
#define int long long
#define pii pair<int,int>
#define ff first
#define ss second
#define all(x) x.begin(),x.end()
#define pb emplace_back
#define N 200010
int x[N],y[N],a[N],b[N];
signed main(){
ios::sync_with_stdio(0);
cin.tie(0);
int u,v,n,m,i,j,k;
cin>>n;
for(i=0;i<n;i++)cin>>x[i]>>y[i]>>a[i]>>b[i],a[i]+=x[i],b[i]+=y[i];
for(i=0;i<n;i++){
for(j=i+1;j<n;j++){
if(a[i]<x[j]||x[i]>a[j]||b[i]<y[j]||y[i]>b[j])continue;
cout<<"NE\n";
break;
}
if(j==n){
cout<<"DA\n";
}
}
}
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... |
# | 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... |