# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
701746 | 2023-02-22T03:26:22 Z | chenyan | Sunčanje (COCI18_suncanje) | C++17 | 4000 ms | 6604 KB |
#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
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 28 ms | 724 KB | Output is correct |
2 | Correct | 66 ms | 896 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 56 ms | 1140 KB | Output is correct |
2 | Correct | 2983 ms | 3384 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 54 ms | 1828 KB | Output is correct |
2 | Execution timed out | 4048 ms | 4012 KB | Time limit exceeded |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 173 ms | 2380 KB | Output is correct |
2 | Correct | 3010 ms | 3360 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1085 ms | 3476 KB | Output is correct |
2 | Execution timed out | 4056 ms | 4244 KB | Time limit exceeded |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 813 ms | 3596 KB | Output is correct |
2 | Correct | 2948 ms | 3900 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 3737 ms | 3592 KB | Output is correct |
2 | Correct | 141 ms | 4668 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 4078 ms | 5068 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 3724 ms | 5492 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 4054 ms | 6604 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |