# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
796096 | amirhoseinfar1385 | Abracadabra (CEOI22_abracadabra) | C++17 | 173 ms | 15764 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>
using namespace std;
const int maxn=1000+10;
int n,q;
int all[maxn][maxn];
void solve(int ind){
int i=1,j=n/2+1;
int z=1;
while(i<=(n/2)&&j<=n){
if(all[ind-1][i]<all[ind-1][j]){
all[ind][z]=all[ind-1][i];
z++;
i++;
}
else{
all[ind][z]=all[ind-1][j];
j++;
z++;
}
}
while(i<=(n/2)){
all[ind][z]=all[ind-1][i];
i++;
z++;
}
while(j<=n){
all[ind][z]=all[ind-1][j];
j++;
z++;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |