#4015
Dându-se un șir de numere naturale, să se determine câte dintre ele apar o singură dată.
| Problema | unique | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 0.2 MB
/
Stivă 0.2 MB
|
| Id soluție | #64594069 | Utilizator | |
| Fișier | unique.cpp | Dimensiune | 265 B |
| Data încărcării | 17 Mai 2026, 16:50 | Scor/rezultat | 0 puncte |
unique.cpp: In function ‘int main()’: unique.cpp:6:21: warning: unused variable ‘max1’ [-Wunused-variable] 6 | int n,i,cnt=0,x,max1=-1,ok=0; | ^~~~ unique.cpp:6:29: warning: unused variable ‘ok’ [-Wunused-variable] 6 | int n,i,cnt=0,x,max1=-1,ok=0; | ^~ unique.cpp:9:14: warning: ‘n’ is used uninitialized [-Wuninitialized] 9 | for(i=0;i<=n;i++) | ~^~~ unique.cpp:6:9: note: ‘n’ was declared here 6 | int n,i,cnt=0,x,max1=-1,ok=0; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0.001 secunde | Exited with error status 127 | 5 | 0 | Exemplu | |
| 1 | 0 secunde | Exited with error status 127 | 5 | 0 | ||
| 2 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
| 3 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
| 4 | 0.001 secunde | Exited with error status 127 | 10 | 0 | ||
| 5 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
| 6 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
| 7 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
| 8 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
| 9 | 0.001 secunde | Exited with error status 127 | 10 | 0 | ||
| 10 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema unique 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ă.