#2281
Pentru un număr n, o săgeată este formată din n steluțe (*) pe fiecare linie și 2*n - 1 linii.
Admiterea la clasa de Excelență din Bistrița, 2017
| Problema | Sageata | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64625357 | Utilizator | |
| Fișier | sageata.cpp | Dimensiune | 441 B |
| Data încărcării | 19 Mai 2026, 10:35 | Scor/rezultat | 100 puncte |
sageata.cpp: In function ‘int main()’: sageata.cpp:10:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 10 | for(j=1;j<=i-1;j++) | ^~~ sageata.cpp:12:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 12 | for(j=1;j<=n;j++) | ^~~ sageata.cpp:12:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] sageata.cpp:14:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 14 | cout<<endl; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.002 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 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 Sageata 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ă.