Baciu+Raul

B A C
 * 1) include


 * 1) include

using namespace std;

int main

{

int n,i,x,y,z,s1,s2,k,c1,c2,c3,y1,y2,b=0;

ifstream f("date.in");

f>>s1>>s2;

y1=s1;

y2=s2;

if(s1>9)

{

y1=9;

x=s1-9;

}

else x=1;

if(s2>9)

{

y2=9;

y=s2-9;

}

else y=0;

for(c1=x;c1<=y1;c1++)

{

for(c2=0;c2<=9;c2++)

{

for(c3=y;c3<=y2;c3++)

{

b++;

cout<>n; for(i=1;i<=n;i++) f>>a[i]; f>>G; }
 * 1) include
 * 2) include

int main {int s=0,nr=1,i,j; citire; sort(a,n+a); for(i=1;i<=n;i++) if(a[i]>G) a[i]=0; for(i=n;i>0;i--) {if(a[i]!=0) {s=a[i]; cout<G) { nr++; s=0; cout<>n>>k; for(i=1;i<=n;i++) f>>a[i]; for(i=1;i<=n;i++) f>>b[i]; }

int verifica {int ok=1,i; for(i=1;i<=n;i++) if(a[i]!=b[i]) ok=0; return ok; }

void aplica(int i) {int j; for(j=i;j<i+k;j++) a[j]=-a[j]; }

int main {int i,j,k=0; citire; for(i=1;i<=n;i++) if(a[i]!=b[i]) {aplica(i); v[k]=i; k++; if(verifica==1) i=n+1; else i=1; } cout<<k<<" operatii"<<endl; for(i=0;i<k;i++) cout<<v[i]<<" "; }