Pagini recente » Borderou de evaluare (job #2411578) | Borderou de evaluare (job #191094) | Borderou de evaluare (job #300610) | Borderou de evaluare (job #3262226) | Borderou de evaluare (job #2631581)
Borderou de evaluare (job #2631581)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<fstream>
^~~~~~
main.cpp:2:86: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
std::ifstream f("twoton.in");std::ofstream g("twoton.out");int n,i,S=1,a[1<<17];main(){f>>n;for(i=0;i<n;i++)f>>a[i];for(i=n-2;i>=0;i--)if(a[i]>=a[i+1])a[i]=a[i+1],S=(2*S+1)%19997;else S++;g<<S%19997;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 100 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 3ms | 131kb | OK | 10 |
7 | 3ms | 131kb | OK | 10 |
8 | 5ms | 131kb | OK | 10 |
9 | 27ms | 524kb | OK | 10 |
10 | 28ms | 524kb | OK | 10 |
Punctaj total | 100 |