#241
Se dau două şiruri a şi b, cu n, respectiv m elemente, numere naturale, ordonate crescător. Să se construiască un al treilea şir, c, care să conţină, în ordine crescătoare, elementele din şirurile a şi b.
| Problema | Interclasare | Operații I/O |
interclasare.in/interclasare.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 32 MB
|
| Id soluție | #64465792 | Utilizator | |
| Fișier | interclasare.cpp | Dimensiune | 954 B |
| Data încărcării | 08 Mai 2026, 12:05 | Scor/rezultat | 100 puncte |
interclasare.cpp: In function ‘int main()’: interclasare.cpp:9:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 9 | for(i=1;i<=n;i++) | ^~~ interclasare.cpp:11:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 11 | f>>m; | ^ interclasare.cpp:12:6: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 12 | for(i=1;i<=m;i++) | ^~~ interclasare.cpp:15:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | i=1; | ^ interclasare.cpp:49:1: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 49 | else | ^~~~ interclasare.cpp:52:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 52 | return 0; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 30 | 30 | ||
| 3 | 0.073 secunde | OK. | 50 | 50 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Interclasare 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ă.