Nu aveti permisiuni pentru a descarca fisierul grader_test2.in
Borderou de evaluare (job #2605130)
Utilizator | Alex Ben alex_benescu | Data | 24 aprilie 2020 14:44:42 |
---|---|---|---|
Problema | Secvente | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 100 |
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 I("secvente.in");std::ofstream O("secvente.out");int r[4],n,x,j,i;main(){for(i=1;i<4;i++){I>>n;long long s=0;r[0]=r[1]=r[2]=0;for(j=1;j<=n;j++){I>>x;s+=x;s%=3;r[x%3]=1;}if(s!=0)O<<n-2+r[s];else O<<n;O<<"\n";}}
^
Test | Timp executie | Memorie folosita | Mesaj | Punctaj/test |
---|---|---|---|---|
1 | 8ms | 131kb | OK | 10 |
2 | 7ms | 131kb | OK | 10 |
3 | 8ms | 131kb | OK | 10 |
4 | 6ms | 131kb | OK | 10 |
5 | 10ms | 131kb | OK | 10 |
6 | 14ms | 131kb | OK | 10 |
7 | 20ms | 131kb | OK | 10 |
8 | 23ms | 131kb | OK | 10 |
9 | 38ms | 131kb | OK | 10 |
10 | 28ms | 131kb | OK | 10 |
Punctaj total | 100 |
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !