Borderou de evaluare (job #2600971)

Utilizator alex_benescubenescu alexandru alex_benescu Data 13 aprilie 2020 15:07:17
Problema Patrate2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] #import<fstream> ^~~~~~ main.cpp:2:201: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] using namespace std;ifstream I("patrate2.in");ofstream O("patrate2.out");int i,j,t,n,p[10101];void m(int a){for(t=0,j=1;j<=p[0];++j)p[j]=p[j]*a+t,t=p[j]/10,p[j]%=10;while(t)p[++p[0]]=t%10,t/=10;}main(){p[0]=p[1]=1;for(I>>n,i=2;i<=n;++i)m(i);for(i=1;i<=n*n;i++)m(2);for(i=p[0];i;i--)O<<p[i];} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
42ms131kbOK10
52ms131kbOK10
64ms131kbOK10
713ms131kbOK10
832ms131kbOK10
956ms131kbOK10
10140ms131kbOK10
Punctaj total100

Ceva nu functioneaza?