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 "ramen.h"
#include <vector>
using namespace std;
void Ramen(int N) {
vector<int> A; A.push_back(0);
for (int i=1;i<N;i++){
int l = 0, r = A.size(), m;
while (l < r){
m = (l + r) / 2;
Compare(A[m],i) > 0 ? r = m : l = m+1;
}
A.insert(A.begin()+l,i);
}
Answer(A[0],A[N-1]);
}
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... |