Pagini recente » Borderou de evaluare (job #2795873) | Borderou de evaluare (job #379919) | Borderou de evaluare (job #3182908) | Borderou de evaluare (job #2601548) | Borderou de evaluare (job #2591124)
Borderou de evaluare (job #2591124)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<bits/stdc++.h>
^~~~~~
main.cpp:2:11: warning: multi-character character constant [-Wmultichar]
int n,x,v['썐'],t['썐'],k;main(){std::ifstream fin("scmax.in");std::ofstream fout("scmax.out");for(fin>>n;n--;){fin>>x;auto it=std::upper_bound(v, &v[k+1], x-1);if(it>&v[k])v[++k]=x;else*it=x;}fout<<k<<'\n';for(n=0;n++<k;)fout<<v[n]
^~~~~
main.cpp:2:20: warning: multi-character character constant [-Wmultichar]
int n,x,v['썐'],t['썐'],k;main(){std::ifstream fin("scmax.in");std::ofstream fout("scmax.out");for(fin>>n;n--;){fin>>x;auto it=std::upper_bound(v, &v[k+1], x-1);if(it>&v[k])v[++k]=x;else*it=x;}fout<<k<<'\n';for(n=0;n++<k;)fout<<v[n]
^~~~~
main.cpp:2:34: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
int n,x,v['썐'],t['썐'],k;main(){std::ifstream fin("scmax.in");std::ofstream fout("scmax.out");for(fin>>n;n--;){fin>>x;auto it=std::upper_bound(v, &v[k+1], x-1);if(it>&v[k])v[++k]=x;else*it=x;}fout<<k<<'\n';for(n=0;n++<k;)fout<<v[n]
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 3ms | 131kb | Corect! | 10 | 10 |
2 | 4ms | 131kb | Corect! | 10 | 10 |
3 | 2ms | 131kb | Subsir incorect! | 5 | 5 |
4 | 3ms | 131kb | Subsir incorect! | 5 | 5 |
5 | 3ms | 131kb | Subsir incorect! | 5 | 5 |
6 | 3ms | 131kb | Subsir incorect! | 5 | 5 |
7 | 3ms | 131kb | Subsir incorect! | 5 | 5 |
8 | 45ms | 131kb | Subsir incorect! | 5 | 20 |
9 | 34ms | 131kb | Corect! | 10 |
10 | 44ms | 131kb | Subsir incorect! | 5 |
Punctaj total | 65 |