#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 | #64595636 | Utilizator | |
| Fișier | interclasm.cpp | Dimensiune | 430 B |
| Data încărcării | 17 Mai 2026, 19:00 | Scor/rezultat | 0 puncte |
interclasm.cpp: In function ‘int main()’: interclasm.cpp:9:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 9 | for (int i = 1; i <= n; i++) | ^~~ interclasm.cpp:11:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 11 | v [y]++; | ^ interclasm.cpp:13:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for (int i = 1; i <= m; i++) | ^~~ interclasm.cpp:15:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | v[y]++; | ^ interclasm.cpp:16:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for (int i =x ;i <= 1000000;i = i + x) | ^~~ interclasm.cpp:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | return 0; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 30 | 0 | ||
| 3 | 0.016 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ă.