Mai intai trebuie sa te autentifici.
Borderou de evaluare (job #2605678)
| Utilizator | Data | 25 aprilie 2020 17:22:24 | |
|---|---|---|---|
| Problema | Numere 5 | 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:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){long long p,x,i,n,s=0,S,k=0;std::ifstream I("numere5.in");std::ofstream O("numere5.out");I>>n;for(i=1;i<=n*n;i++){I>>x;if(x==0)k++;s+=x;}S=n*n*(n*n+1)/2-s;p=S-k*(k-1)/2;O<<p/k<<" "<<p/k+k-1;}
^
| Test | Timp executie | Memorie folosita | Mesaj | Punctaj/test | Punctaj/grupa |
|---|---|---|---|---|---|
| 1 | 57ms | 131kb | OK | 10 | 50 |
| 2 | 2ms | 131kb | OK | 10 | |
| 3 | 65ms | 131kb | OK | 10 | |
| 4 | 38ms | 131kb | OK | 10 | |
| 5 | 87ms | 131kb | OK | 10 | |
| 6 | 157ms | 131kb | OK | 10 | 50 |
| 7 | 176ms | 131kb | OK | 10 | |
| 8 | 232ms | 262kb | OK | 10 | |
| 9 | 180ms | 131kb | OK | 10 | |
| 10 | 199ms | 131kb | OK | 10 | |
| Punctaj total | 100 | ||||
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
