Submission #69223

#TimeUsernameProblemLanguageResultExecution timeMemory
69223FedericoSBoat (APIO16_boat)C++14
0 / 100
2072 ms360 KiB
#include <iostream> #include <vector> #include <algorithm> #include <iostream> using namespace std; typedef long long int ll; typedef pair<ll,ll> pll; ll M=1000000007; int N; ll X[505],Y[505]; vector<int> G; pll T[1005]; int main(){ cin>>N; for(int i=0;i<N;i++){ cin>>X[i]>>Y[i]; Y[i]++; G.push_back(X[i]); G.push_back(Y[i]); } sort(G.begin(),G.end()); for(int i=1;i<G.size();i++) if(G[i-1]!=G[i]) for(int i=0;i<1000;i++) for(int j=0;j<500;j++) for(int k=j;k<500;k++) N=(N+N)%M; cout<<0; }

Compilation message (stderr)

boat.cpp: In function 'int main()':
boat.cpp:27:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<G.size();i++)
              ~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...