# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
401506 | Berted | Floppy (RMI20_floppy) | C++14 | 115 ms | 13020 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 <algorithm>
#include <iostream>
#include "floppy.h"
#define pii pair<int, int>
#define ppi pair<pii, int>
#define fst first
#define snd second
using namespace std;
void read_array(int subtask_id, const vector<int> &v)
{
vector<int> S;
string ret = "";
for (const auto &u : v)
{
while (S.size() && S.back() <= u) {S.pop_back(); ret.push_back('0');}
S.push_back(u);
ret.push_back('1');
}
save_to_floppy(ret);
}
vector<int> solve_queries(int subtask_id, int N, const string &bits, const vector<int> &a, const vector<int> &b)
{
//cerr << "S: " << bits << "\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... |