#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 | #64777067 | Utilizator | |
| Fișier | interclasm.cpp | Dimensiune | 891 B |
| Data încărcării | 29 Mai 2026, 17:21 | Scor/rezultat | 0 puncte |
interclasm.cpp: In function ‘int main()’: interclasm.cpp:26:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 26 | if(a[i]%x==0) | ^~ interclasm.cpp:28:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 28 | i++; | ^ interclasm.cpp:31:10: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 31 | {if(b[j]%x==0) | ^~ interclasm.cpp:33:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 33 | j++; | ^ interclasm.cpp:38:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 38 | if(a[i]%x==0) | ^~ interclasm.cpp:40:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 40 | i++; | ^ interclasm.cpp:44:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 44 | if(b[j]%x==0) | ^~ interclasm.cpp:46:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 46 | 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.018 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ă.