http://www.cs.ubbcluj.ro/admitere/nivel-licenta/admiterea-la-facultatea-de-matematica-si-informatica-nivel-licenta/
http://www.cs.ubbcluj.ro/concursul-mate-info-ubb/
Orar semigroup #2
Archive for martie 2013
Concurs UBB
vineri, 29 martie 2013
by DlMuresan
Categories:
admitere,
concurs,
ubb
|
Leave a comment
BAC - ultima problema. V100
#include<fstream>Fisier
#include<iostream>
using namespace std;
int main()
{ifstream g("bac");
long x, k,p,i;
g>>x>>k;
char n[5000]; // numarul de k cifre citit intr-un sir de caractere
g>>n;
/*cout<<k<<endl;
cout<<n<<endl;
cout<<endl;*/
int f[100];
f[0]=0;
f[1]=1;
for(i=2;;i++)
{f[i]=f[i-1]+f[i-2];
if(f[i]==k)
{p=f[i]-f[i-1];
break;}
}
for(i=0;i<k-p;i++)
cout<<n[i];
}
2 5
32332
vineri, 8 martie 2013
by DlMuresan
Categories:
BAC,
info,
variante
|
Leave a comment