Pagini recente » Borderou de evaluare (job #2130678) | Borderou de evaluare (job #617215) | Borderou de evaluare (job #748933) | Borderou de evaluare (job #1825728) | Borderou de evaluare (job #2335481)
Borderou de evaluare (job #2335481)
Raport evaluator
Compilare:
main.cpp: In function 'int a(int, int)':
main.cpp:2:171: warning: no return statement in function returning non-void [-Wreturn-type]
std::ifstream f("scmax.in");std::ofstream g("scmax.out");const int N=2e5;int v[N],p[N],q[N],i,j,n,Q,x;int a(int I,int Z){while(p[Z]!=I)Z--;if(I>1)a(I-1,Z-1);g<<v[Z]<<" ";}int main(){f>>n;for(i=1;i<=n;i++){f>>v[i];x=v[i];j=1;while(x>q[j]&&j<=Q)j++;q[j]=x;p[i]=j;Q=Q>j?Q:j;}g<<Q<<"\n";a(Q,n);}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 262kb | Corect! | 10 | 10 |
2 | 8ms | 262kb | Corect! | 10 | 10 |
3 | 2ms | 131kb | Corect! | 10 | 10 |
4 | 3ms | 131kb | Corect! | 10 | 10 |
5 | 2ms | 131kb | Corect! | 10 | 10 |
6 | 3ms | 131kb | Corect! | 10 | 10 |
7 | 3ms | 131kb | Corect! | 10 | 10 |
8 | 71ms | 917kb | Corect! | 10 | 30 |
9 | 36ms | 917kb | Corect! | 10 |
10 | 70ms | 917kb | Corect! | 10 |
Punctaj total | 100 |