#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]);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1180 KB |
Output is correct |
2 |
Correct |
0 ms |
1180 KB |
Output is correct |
3 |
Correct |
0 ms |
1180 KB |
Output is correct |
4 |
Correct |
0 ms |
1180 KB |
Output is correct |
5 |
Correct |
0 ms |
1180 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
1180 KB |
Wrong Answer [2] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
1180 KB |
Wrong Answer [2] |
2 |
Halted |
0 ms |
0 KB |
- |