#4248
Un jucător de jocuri video pe calculator vrea să ajungă primul în clasament. El cunoaște punctajele celorlalți jucători și vrea să știe care este poziția sa în clasament după fiecare rundă a jocului.
| Problema | Game player | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64659375 | Utilizator | |
| Fișier | game_player.cpp | Dimensiune | 1.21 KB |
| Data încărcării | 21 Mai 2026, 08:31 | Scor/rezultat | 30 puncte |
game_player.cpp: In function ‘int main()’: game_player.cpp:10:4: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 10 | for(int i=0;i<n;i++) | ^~~ game_player.cpp:12:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 12 | cin>>m; | ^~~ game_player.cpp:13:1: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for(int i=0;i<m;i++) | ^~~ game_player.cpp:15:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | ma=x[0]; | ^~ game_player.cpp:7:73: warning: unused variable ‘mm’ [-Wunused-variable] 7 | int x[200000],y[200000],m,v=0,mi,nn,n,xxx,vf=0,z[200000],ma,ci=1,j=0,mm; | ^~ game_player.cpp:59:16: warning: ‘mi’ may be used uninitialized [-Wmaybe-uninitialized] 59 | if(x[mi]>xxx) | ~~~~^ game_player.cpp:7:34: note: ‘mi’ was declared here 7 | int x[200000],y[200000],m,v=0,mi,nn,n,xxx,vf=0,z[200000],ma,ci=1,j=0,mm; | ^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.006 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.002 secunde | OK. | 10 | 10 | ||
| 3 | 0.002 secunde | OK. | 10 | 10 | ||
| 4 | 0.008 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.189 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.102 secunde | Raspuns gresit. | 20 | 0 | ||
| 7 | 0.213 secunde | Raspuns gresit. | 20 | 0 | ||
| 8 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 30 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Game player face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.