This shows you the differences between two versions of the page.
programare-cc:laboratoare:10 [2020/12/12 10:23] andrei.simescu [Problema 2] |
programare-cc:laboratoare:10 [2020/12/12 11:14] (current) andrei.simescu [Problema 2] |
||
---|---|---|---|
Line 66: | Line 66: | ||
== Date de intrare == | == Date de intrare == | ||
- | O secvenţă de instrucţiuni ca mai sus, câte una pe linie | + | Un numar n, numarul de instructiuni urmat de o secvenţă de instrucţiuni ca mai sus, câte una pe linie |
== Date de ieşire == | == Date de ieşire == | ||
Outputul cerut de secvenţă | Outputul cerut de secvenţă | ||
== Exemplu == | == Exemplu == | ||
^ Intrare ^ Iesire ^ | ^ Intrare ^ Iesire ^ | ||
- | | A 5 \\ A 8 \\ P \\ C 5 \\ D 5 \\ C 5 \\ P | 5 8 \\ DA \\ NU \\ 8 | | + | |7 \\ A 5 \\ A 8 \\ P \\ C 5 \\ D 5 \\ C 5 \\ P | 5 8 \\ DA \\ NU \\ 8 | |
==== Problema 3 ==== | ==== Problema 3 ==== |