#242
Se dă un număr natural x și două șiruri a și b, cu n, respectiv m elemente, numere naturale, ordonate strict crescător. Să se afișeze, în ordine crescătoare, multiplii lui x care se află doar în unul dintre cele două șiruri.
Variante Bacalaureat 2009
| Problema | InterclasM | Operații I/O |
interclasm.in/interclasm.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64228019 | Utilizator | |
| Fișier | interclasm.cpp | Dimensiune | 918 B |
| Data încărcării | 24 Aprilie 2026, 08:11 | Scor/rezultat | 0 puncte |
interclasm.cpp: In function ‘int main()’: interclasm.cpp:11:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 11 | for (int i=0; i<n; i++) | ^~~ interclasm.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 13 | fin>>m; | ^~~ interclasm.cpp:14:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for (int i=0; i<m; i++) | ^~~ interclasm.cpp:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 16 | int i=0, j=0; | ^~~ interclasm.cpp:45:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 45 | if (b[j]%x==0) | ^~ interclasm.cpp:47:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 47 | j++; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 30 | 0 | ||
| 3 | 0.024 secunde | Raspuns gresit. | 50 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InterclasM 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ă.