# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
401508 | Drew_ | Floppy (RMI20_floppy) | C++14 | 123 ms | 10496 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdlib.h>
#include <string.h>
#include "floppy.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
void read_array(int subtask_id, const std::vector<int> &v) {
vector<int> st;
string s;
for (int i = 0; i < (int)v.size(); ++i)
{
while (!st.empty() && st.back() < v[i])
s.pb('0'), st.pop_back();
s.pb('1'); st.pb(v[i]);
}
//cerr << "s: " << s << '\n';
save_to_floppy(s);
}
std::vector<int> solve_queries(int subtask_id, int N,
const std::string &bits,
const std::vector<int> &a, const std::vector<int> &b) {
const int MAX = 4e4 + 7;
const int LG = (int)log2(MAX);
int up[MAX][LG];
컴파일 시 표준 에러 (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... |