#1630
Se dă un număr n. Afișați figura din exemplu.
| Problema | Morisca | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64967853 | Utilizator | |
| Fișier | morisca.cpp | Dimensiune | 1.06 KB |
| Data încărcării | 28 Iunie 2026, 09:03 | Scor/rezultat | 100 puncte |
morisca.cpp: In function ‘int main()’: morisca.cpp:15:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 15 | for (int j = 1; j <= 2 * n - 2 * i; j++) | ^~~ morisca.cpp:17:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 17 | for (int j = 1; j <= n; j++) | ^~~ morisca.cpp:44:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 44 | for (int j = 1; j <= 2 * n - 2 * i; j++) | ^~~ morisca.cpp:46:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 46 | for (int j = 1; j <= n; j++) | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.002 secunde | OK. | 20 | 20 | ||
| 4 | 0.001 secunde | OK. | 20 | 20 | ||
| 5 | 0.001 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Morisca 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ă.