Pagini recente » Borderou de evaluare (job #2154580) | Borderou de evaluare (job #1822818) | Borderou de evaluare (job #1207562) | Borderou de evaluare (job #2447515) | Borderou de evaluare (job #3214981)
Borderou de evaluare (job #3214981)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:3:249: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | std::fstream f("tricouri.in"),g("tricouri.out",std::_S_out);int n,m,k,p,t,q,l,i,j,w,A[32][32][8],s;void h(int k,int x,int i,int p){if(i==p){if(!k&&s<x&&x%p==0)s=x;return;}h(k,x,i+1,p);z(t,0,k){if(!A[p][i][t])return;x+=A[p][i][t];h(k-t-1,x,i+1,p);}}main(){f>>n>>m;z(q,0,n){f>>j;z(i,2,21){w=j%i;for(l=5;l&&j>A[i][w][l-1];l--)A[i][w][l]=A[i][w][l-1];A[i][w][l]=j;}}z(l,0,m){f>>k>>p;s=-1;h(k,0,0,p);g<<s<<'\n';}return 0;}
| ^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Incorect | 0 |
2 | 0ms | 303kb | Incorect | 0 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 1ms | 303kb | Incorect | 0 |
5 | 1ms | 303kb | Incorect | 0 |
6 | 2ms | 303kb | Incorect | 0 |
7 | 24ms | 303kb | Incorect | 0 |
8 | 24ms | 303kb | Incorect | 0 |
9 | 19ms | 303kb | Incorect | 0 |
10 | 9ms | 303kb | OK | 10 |
Punctaj total | 10 |