# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
494335 | Tenis0206 | Floppy (RMI20_floppy) | C++17 | 88 ms | 14528 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;
/*string bglobal;
void save_to_floppy(string bits)
{
bglobal = bits;
}
*/
void read_array(int subtask, const vector<int> &v)
{
stack<int> st;
string bits;
for(int i=0;i<v.size();i++)
{
while(!st.empty() && v[i]>v[st.top()])
{
bits.push_back('0');
st.pop();
}
bits.push_back('1');
st.push(i);
}
save_to_floppy(bits);
}
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... |