#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 | #64333780 | Utilizator | |
| Fișier | irdds.cpp | Dimensiune | 1.75 KB |
| Data încărcării | 30 Aprilie 2026, 10:19 | Scor/rezultat | 100 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:48:13: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 48 | while(i<=n && j<=m) | ^~~~~ irdds.cpp:52:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 52 | while(i<=n) | ^~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.132 secunde | OK. | 10 | 10 | ||
| 2 | 0.131 secunde | OK. | 10 | 10 | ||
| 3 | 0.185 secunde | OK. | 10 | 10 | ||
| 4 | 0.155 secunde | OK. | 10 | 10 | ||
| 5 | 0.16 secunde | OK. | 10 | 10 | ||
| 6 | 0.125 secunde | OK. | 10 | 10 | ||
| 7 | 0.17 secunde | OK. | 10 | 10 | ||
| 8 | 0.122 secunde | OK. | 10 | 10 | ||
| 9 | 0.083 secunde | OK. | 10 | 10 | ||
| 10 | 0.215 secunde | OK. | 10 | 10 | ||
| Punctaj total | 100 | |||||
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ă.