Type: Default 1000ms 256MiB

【栈】打字练习

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

在打字时,经常会因为打错了需要按退格键删除,现在给出一段打字时的按键,其中可能包含若干退格键(用@表示),请输出最终实际打出的内容

输入格式

一行一个字符串s,不含空格

输出格式

一行一个字符串

样例 #1

样例输入 #1

@hello123@@@world

样例输出 #1

helloworld

提示

0<strlen(s)<1000<strlen(s)<100

栈与单调栈

Not Claimed
Status
Done
Problem
12
Open Since
2025-5-15 0:00
Deadline
2025-5-22 23:59
Extension
24 hour(s)