#3974
Se dau 2 mulţimi de numere naturale. Să se afișeze mulţimea rezultată în urma efectuării unei operații.
| Problema | IRDDS | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.3 secunde | Limita memorie |
Total: 8 MB
/
Stivă 4 MB
|
| Id soluție | #64333633 | Utilizator | |
| Fișier | irdds.cpp | Dimensiune | 1.76 KB |
| Data încărcării | 30 Aprilie 2026, 10:15 | Scor/rezultat | 80 puncte |
irdds.cpp: In function ‘int main()’: irdds.cpp:14:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for(int i=1;i<=m;i++) | ^~~ irdds.cpp:16:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 16 | sort(a+1,a+n+1);///ord crescator | ^~~~ irdds.cpp:49:13: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 49 | while(i<=n && j<=m) | ^~~~~ irdds.cpp:53:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 53 | while(i<=n) | ^~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.13 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.13 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.114 secunde | OK. | 10 | 10 | ||
| 4 | 0.129 secunde | OK. | 10 | 10 | ||
| 5 | 0.158 secunde | OK. | 10 | 10 | ||
| 6 | 0.123 secunde | OK. | 10 | 10 | ||
| 7 | 0.168 secunde | OK. | 10 | 10 | ||
| 8 | 0.13 secunde | OK. | 10 | 10 | ||
| 9 | 0.086 secunde | OK. | 10 | 10 | ||
| 10 | 0.18 secunde | OK. | 10 | 10 | ||
| Punctaj total | 80 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema IRDDS 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ă.