国庆训练赛

Description

Consider the following programming language. This language contains only two types of statements: simple statements and compound statements. The simple statement is in the form “write (literal)”, where “write” is a key word indicating that the content of the literal should be written to the standard output. The content of literals is surrounded by a pair of double quotes. The compound statement is in the form “if (<expression>) <statement>” or “if (<expression>) <statement> else <statement>”. Here “if” and “else” are key words and “expression” can be either “1” or “0” indicating “true” or “false”. Statement can be either compound or simple, which means compound statements can be nested. Note that each “else” should match the nearest “if”.

Input

The input has multiple test cases. Every test case is exactly a statement. Every test case is ended with an empty line and there will be no empty lines within a statement. Please pay attention that empty lines separate the statements and adjacent statements are independent of each other.

Output

For all the contents of literals that should be written to the standard output, print them on a single line, without the double quotes. The contents of literals will contain only lower case letters.

Sample Input

write(“q”)

if(0) write(“x”) else write(“y”)

if(1) if(0) write(“x”) else write(“y”)

if(0) if(0) write(“x”) else write(“y”)

Sample Output

q
y
y


        
  

Hint

   
   
The 4th test case has no output.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
功能强大的通用脱壳机.rar ╭═══════════════╮ ║ 零度软件园 ║ ╭══════┤ 网址 :www.05sun.cn ├══════╮ ║ ║ 电子书 :books.05sun.Com ║ ║ ║ ╰═══════════════╯ ║  ║ 大量的绿色软件下载,电影下载,音乐下载, ║ ║ 你最好的资源下载网站,每日大量更新海量资源。 ║ ║ 提供破解软件及商业软件注册,欢迎访问! ║  ║声明: ║ ║ 1) 本站不保证所提供软件或程序的完整性和安全性。 ║ ║ 2) 请在使用前查毒。 ║ ║ 3) 转载本站提供的资源请勿删除本说明文件。 ║ ║ 4) 本站提供的程序均为网上搜集,如果该程序涉及或侵害到您║ ║ 的版权请立即写信通知我们。 ║ ║ 5) 本站提供代码只可供研究使用,请在下载24小时内删除, ║ ║ 切勿用于商业用途,由此引起一切后果与本站无关。 ║ ║ ║ ║ 1. 推荐使用:WinRAR V3.4以上版本解压本站软件 ║ ║ 2. 本站空间支持:Www.05sun.com ║  ║ ║ ║ 优秀网站推荐: ║ ║ www.05sun.com books.05sun.com ║ ║ ║ ║ Oicq:2963458(广告合作) 3169873(软件收录) ║ ║ E-mail:mxder@163.Com ║ ║ 技术支持:Www.05sun.Com ║ ║ 本站致力于免费代码下载,国内原创的商业代码推广 ║ ║ 及商业注册,如果您有好的原创程序请联系我们! ║ ║ ╭───────────────────────╮ ║ ╰══┤ 零度软件园 http://www.05sun.com ├══╯ ╰─────────────
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值