# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
596463 | CaroLinda | Floppy (RMI20_floppy) | C++14 | 79 ms | 11168 KiB |
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 <stdlib.h>
#include <string.h>
#include <bits/stdc++.h>
#include "floppy.h"
const int LOG=20;
using namespace std;
void read_array(int subtask_id, const vector<int> &v) {
string ans;
stack<int> st;
for(int i = 0; i < v.size();i++){
while(!st.empty() && st.top() < v[i]){
st.pop();
ans.push_back('1');
}
ans.push_back('0');
st.push(v[i]);
}
save_to_floppy(ans);
}
vector<int> solve_queries(int subtask_id, int N,
const string &bits,
const vector<int> &a, const vector<int> &b) {
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... |