* $**concat("hello","world")**$: "eoo";
* $**substr("helloworld",2,9,3)**$: "eor";
Se cere să se evalueze o expresie formată din apeluri ale acestor funcții și cuvinte puse între $" "$.
Se cere să se evalueze o expresie formată din apeluri ale acestor funcții și cuvinte puse între ghilimele ($" "$).
h2. Date de intrare
h2. Date de ieșire
În fișierul de ieșire $cuvinte1.out$ se va afișa rezultatul obținut în urma evaluării, între $" "$.
În fișierul de ieșire $cuvinte1.out$ se va afișa rezultatul obținut în urma evaluării, între ghilimele ($" "$).
h2. Restricții
* $1 ≤ strlen(**expresie**) ≤ 30000$
* $1 ≤ strlen(**s**) ≤ 100$, pentru orice cuvânt $**s**$;
* În teste, toate cuvintele $**s**$ sunt puse între $" "$;
* 1 ≤ strlen(**expresie**) ≤ 30000
* 1 ≤ strlen(**s**) ≤ 100, pentru orice cuvânt **s**
* Cuvintele conțin doar litere mici
* În teste, toate cuvintele **s** se află între ghilimele ($" "$)
h2. Exemplu
table(example).
|_. cuvinte1.in |_. cuvinte1.out |
| "helloworld"
| "helloworld"
|
h3. Explicație
Nu există prelucrări de efectuat.
table(example).
|_. cuvinte1.in |_. cuvinte1.out |
| reverse(order(concat("hello",substr("world",1,5,1))))
| "ooe"
|
h3. Explicație
$substr("world",1,5,1)$: "world"
$concat("hello",substr("world",1,5,1))$: "eoo"
$order(concat("hello",substr("world",1,5,1)))$: "eoo"
$reverse(order(concat("hello",substr("world",1,5,1))))$: "ooe"
|_. cuvinte1.in |_. cuvinte1.out |_. Explicații |
| "helloworld"
| "helloworld"
| Nu există prelucrări de efectuat.
|
| reverse(order(concat("hello",substr("world",1,5,1))))
| "ooe"
| substr("world",1,5,1): "world"
concat("hello",substr("world",1,5,1)): "eoo"
order(concat("hello",substr("world",1,5,1))): "eoo"
reverse(order(concat("hello",substr("world",1,5,1)))): "ooe"
|
== include(page="template/taskfooter" task_id="cuvinte1") ==