# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
488393 | alexander707070 | Floppy (RMI20_floppy) | C++14 | 1114 ms | 5448 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 s;
int curr,lgn;
vector<long long> vv;
map<long long,int> mp;
/*
void save_to_floppy(string ss){
}
*/
void read_array(int subtask_id,const vector<int> &v){
for(int i=0;i<v.size();i++){
vv.push_back(v[i]);
}
sort(vv.begin(),vv.end());
for(int i=0;i<vv.size();i++){
mp[vv[i]]=i;
}
for(int i=1;i<v.size();i*=2){
lgn++;
}
lgn++;
for(int i=0;i<v.size();i++){
curr=mp[v[i]];
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... |