# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
642895 | lis05st | Floppy (RMI20_floppy) | C++17 | 129 ms | 21192 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 "floppy.h"
#include<bits/stdc++.h>
using namespace std;
const int NMAX=2e5;
int ARR[NMAX+5],L[NMAX+5],R[NMAX+5],pr[NMAX+5];
string floppy;
vector<int>vec;
void dfs(int v){
floppy+='0'+(L[v]==-1?0:1);
floppy+='0'+(R[v]==-1?0:1);
if(L[v]!=-1)dfs(L[v]);
vec.push_back(ARR[v]);
if(R[v]!=-1)dfs(R[v]);
}
int sL[NMAX+5],sR[NMAX+5],spr[20][NMAX+5];
int TIME=1,ID=0;
vector<int>arr;
int dfs2(string&s){
bool haveLeft=s[ID]=='1';
bool haveRight=s[ID+1]=='1';
ID+=2;
if(haveLeft){
int x=dfs2(s);
sL[TIME]=x;
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... |