Submission #135790

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
1357902019-07-24 11:12:50mirbek01Robots (IOI13_robots)C++11
Compilation error
0 ms0 KiB
#include "robots.h"
#include "grader.cpp"
#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 2;
int n, used[N];
vector <int> x, y, w, s;
vector < pair <int, int> > v1, v2;
bool check(int c){
memset(used, 0, sizeof(used));
int pt = -1, sz = (int)x.size();
set < pair <int, int> > st;
for(int i = 0; i < sz; i ++){
while(pt + 1 < n && v1[pt + 1].first < x[i]){
pt ++;
st.insert( {-s[ v1[pt].second ], v1[pt].second} );
}
int cn = c;
while(cn > 0 && !st.empty()){
cn --;
int id = st.begin()->second;
st.erase(st.begin());
used[id] = 1;
}
}
stack <int> stk;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

robots.cpp:2:10: fatal error: grader.cpp: No such file or directory
 #include "grader.cpp"
          ^~~~~~~~~~~~
compilation terminated.