All pastes #1049943 Raw Edit

Untitled

public cpp v1 · immutable
#1049943 ·published 2008-06-18 08:11 UTC
rendered paste body
собственно кодint left, right;bool direction;left = 0;right = 9;direction = true;while(left!=right){    if(direction)    {        if(a[right]<0)         {            swap(a[left],a[right]);            left++;            direction = false;        }    }    else    {        if(a[left]>=0)         {            swap(a[left],a[right]);            right++;            direction = true;        }    }}if(a[left]<0)left++;if((left==0)||(left==10)) nomad_huita(left);b = a;c = b + left;