#include <stdio.h>
#include <stdlib.h>
void swap(int* a, int* b){
int tmp;
tmp = *a;
*a = *b;
*b = tmp;
}
int solve(){
int i,j,k,a,b,c;
int *v;
int ret=0;
v
=(int*)malloc(sizeof(int)*i
); for(k=0;k<i;k++){
}
for(a=0;a<i-1;a++){
for(b=1;b<i-a;b++){
if(v[b-1]>v[b]){
swap(&v[b-1],&v[b]);
}
}
}
for(c=0;c<j;c++){
v[i-1]=(0.5)*v[i-1];
for(a=0;a<i-1;a++){
for(b=1;b<i-a;b++){
if(v[b-1]>v[b]){
swap(&v[b-1],&v[b]);
}
}
}
}
for(k=0;k<i;k++){
ret+=v[k];
}
return ret;
}
int main(void){
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCnZvaWQgc3dhcChpbnQqIGEsIGludCogYil7CiAgICBpbnQgIHRtcDsKICAgIHRtcCA9ICphOwogICAgKmEgPSAqYjsKICAgICpiID0gdG1wOwp9CgppbnQgc29sdmUoKXsKICAgIGludCBpLGosayxhLGIsYzsKICAgIGludCAqdjsKICAgIGludCByZXQ9MDsKICAgIHNjYW5mKCIlZCIsJmkpOwogICAgc2NhbmYoIiVkIiwmaik7CiAgICB2PShpbnQqKW1hbGxvYyhzaXplb2YoaW50KSppKTsKICAgIGZvcihrPTA7azxpO2srKyl7CiAgICAgICAgc2NhbmYoIiVkIiwmdltrXSk7CiAgICB9CiAgICBmb3IoYT0wO2E8aS0xO2ErKyl7CiAgICAgICAgZm9yKGI9MTtiPGktYTtiKyspewogICAgICAgICAgICBpZih2W2ItMV0+dltiXSl7CiAgICAgICAgICAgICAgICBzd2FwKCZ2W2ItMV0sJnZbYl0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQogICAgZm9yKGM9MDtjPGo7YysrKXsKICAgICAgICB2W2ktMV09KDAuNSkqdltpLTFdOwogICAgICAgIGZvcihhPTA7YTxpLTE7YSsrKXsKICAgICAgICAgICAgZm9yKGI9MTtiPGktYTtiKyspewogICAgICAgICAgICAgICAgaWYodltiLTFdPnZbYl0pewogICAgICAgICAgICAgICAgICAgIHN3YXAoJnZbYi0xXSwmdltiXSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICAKICAgIGZvcihrPTA7azxpO2srKyl7CiAgICAgICAgcmV0Kz12W2tdOwogICAgfQogICAgZnJlZSh2KTsgCiAgICByZXR1cm4gcmV0Owp9CgppbnQgbWFpbih2b2lkKXsKICAgIHByaW50ZigiJWQiLHNvbHZlKCkpOwogICAgcmV0dXJuIDA7Cn0K