# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
3737 | jihoon | Make superpalindrome! (kriii1_M) | C++98 | 0 ms | 1672 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<stdio.h>
#include<string.h>
char str[100003]={0};
char sv[100003]={0};
int len;
int seq[50001][2]={0};
int seqp=0;
int bs(int s,int e){
int i;
int mid=(s+e)/2;
if(s>e) return 0;
if((e-s)%2==0){
seqp++;
seq[seqp][0]=str[mid];
sv[mid]=str[mid];
seq[seqp][1]=mid;
// printf("%c\n",str[mid]);
}
bs(s,mid-1+((e-s)%2));
for(i=s;i<=mid;i++){
sv[s+e-i]=sv[i];
}
//printf("%s\n",sv);
return 0;
}
int main(){
int i;
bool dd=false;
scanf("%s",str);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |