Pagini recente » Borderou de evaluare (job #143862) | Borderou de evaluare (job #2334607) | Borderou de evaluare (job #3127660) | Borderou de evaluare (job #3127736) | Borderou de evaluare (job #3127986)
Borderou de evaluare (job #3127986)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:145: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int n,d,k,v[512][512],i,j,t,I;void a(int p){for(I=1,t=0;I<=v[p][0]||I<=v[p-1][0]||t;t=t+v[p][I]+v[p-1][I],v[p][I]=t%10,I++,t=t/10);v[p][0]=I-1;}main(){std::ifstream("expozitie.in")>>n>>d>>k;std::ofstream g("expozitie.out");for(n-=d*k,k=n+d-1,n<0?g<<0,g.flush(),exit(0),1:0,k^=n^=k^=n,v[0][0]=v[0][1]=1;++i<=n;)for(j=i;j>=1;a(j--));for(i=v[k][0];i>=1;g<<v[k][i--]);}
| ^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 14ms | 1155kb | OK | 10 |
2 | 0ms | 557kb | OK | 10 |
3 | 0ms | 303kb | OK | 10 |
4 | 19ms | 1269kb | OK | 10 |
5 | 0ms | 303kb | OK | 10 |
6 | 19ms | 1269kb | OK | 10 |
7 | 0ms | 303kb | OK | 10 |
8 | 1ms | 557kb | OK | 10 |
9 | 0ms | 303kb | OK | 10 |
10 | 0ms | 303kb | OK | 10 |
Punctaj total | 100 |