Submission #6001

#TimeUsernameProblemLanguageResultExecution timeMemory
6001kriii라멘 (JOI14_ramen)C++98
20 / 100
0 ms1180 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...