Submission #701746

#TimeUsernameProblemLanguageResultExecution timeMemory
701746chenyanSunčanje (COCI18_suncanje)C++17
65 / 130
4078 ms6604 KiB
#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)

suncanje.cpp: In function 'int main()':
suncanje.cpp:14:6: warning: unused variable 'u' [-Wunused-variable]
   14 |  int u,v,n,m,i,j,k;
      |      ^
suncanje.cpp:14:8: warning: unused variable 'v' [-Wunused-variable]
   14 |  int u,v,n,m,i,j,k;
      |        ^
suncanje.cpp:14:12: warning: unused variable 'm' [-Wunused-variable]
   14 |  int u,v,n,m,i,j,k;
      |            ^
suncanje.cpp:14:18: warning: unused variable 'k' [-Wunused-variable]
   14 |  int u,v,n,m,i,j,k;
      |                  ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...