#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 | #64465880 | Utilizator | |
| Fișier | interclasm.cpp | Dimensiune | 951 B |
| Data încărcării | 08 Mai 2026, 12:13 | Scor/rezultat | 0 puncte |
interclasm.cpp: In function ‘int main()’: interclasm.cpp:12:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 12 | for(i=1;i<=n;i++) | ^~~ interclasm.cpp:14:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 14 | f>>m; | ^ interclasm.cpp:15:6: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 15 | for(i=1;i<=m;i++) | ^~~ interclasm.cpp:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | i=1; | ^ interclasm.cpp:50:4: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 50 | for(i=1;i<=n+m;i++) | ^~~ interclasm.cpp:54:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 54 | return 0; | ^~~~~~
| 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.042 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ă.