# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
492338 | Pety | Floppy (RMI20_floppy) | C++14 | 89 ms | 14116 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 <bits/stdc++.h>
#include "floppy.h"
using namespace std;
int dp[17][40002];
void read_array(int subtask_id, const vector<int> &v) {
string bits;
stack<int>st;
st.push(-1);
for (int i = 0; i < v.size(); i++) {
while (st.top() != -1 && v[st.top()] < v[i]) {
bits += '0';
st.pop();
}
st.push(i);
bits += '1';
}
save_to_floppy(bits);
}
vector<int> solve_queries(int subtask_id, int N, const string &bits, const vector<int>&a, const vector<int>&b) {
stack<int>st;
st.push(-1);
int ind = 0;
int ind2 = 0;
while (ind < N) {
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... |