/ OPS / 题库 /

J-Language

J-Language

#描述#
Following is the formatting contract of J-Language code:
1)J-Language is consisted of multiple blocks
2)Each block begins with { and ends with }, both of them occupy a single line
3)Block can nested into other block, the nested { is 4 spaces right to the outer {, the nested } is 4 spaces left to the outer }.
4)Each block may contain one or multiple statements
5)Each statement starts with % and ends with #
6)Each statement occupies just one line
7)Each statement is 4 spaces right to the {

#格式#
##输入格式##
A valid J-Language code. Processing to the end of file.

##输出格式##
Print the formatted code.

#样例1#
##样例输入1##

{{%var a=1#}  %var b=a#%printf(“b=”,b)# }
{}

##样例输出1##

{
{
            %var a=1#
}
%var b=a#
%printf(“b=”,b)#
}
{
}

#限制#
1000ms
32768KB

#提示#

#来源#

信息

ID
1340
难度
5
分类
category1 点击显示
标签
递交数
0
已通过
0
通过率
?
上传者