Pagini recente » Borderou de evaluare (job #1595481) | Borderou de evaluare (job #297714) | Borderou de evaluare (job #3253257) | Borderou de evaluare (job #2928207) | Borderou de evaluare (job #2335479)
Borderou de evaluare (job #2335479)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<fstream>
^~~~~~
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];++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 | 131kb | Lungime incorecta! | 0 | 0 |
2 | 3ms | 131kb | Lungime incorecta! | 0 | 0 |
3 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
4 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
5 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
6 | 3ms | 131kb | Lungime incorecta! | 0 | 0 |
7 | 3ms | 131kb | Lungime incorecta! | 0 | 0 |
8 | 35ms | 917kb | Lungime incorecta! | 0 | 0 |
9 | 37ms | 917kb | Corect! | 10 |
10 | 33ms | 917kb | Lungime incorecta! | 0 |
Punctaj total | 0 |