time limit per test:1s
memory limit per test:256MB
The final exam results have come out, and Huan wants to know if he has failed the exam, but the school's query machine is broken and can only output a garbled code with mysterious information. Huan found that the garbled code contains information about the grades of various subjects, but he is too stupid to know how to look. Can you help him check whether he has failed the exam and what his grades in all subjects are?
Cleverly, you have discovered that in the garbled code, the information of each subject is separated by the '|
' character (without quotation marks). The paragraph separated by the '|
' character is arranged in reverse order for the name of the subject, and non alphabetical characters are arranged in positive order for the score of the subject. A score belowis considered a fail.
A string with a length of no more than , containing information on at least subjects, score ranging from 0 to 100, and possible decimals. The decimal part is or digits.
The first line outputs or , where represents no failure and represents failure.
From the second line to the number of subjects, add one line to output the subject name and score, separated by a space in the middle. The output score needs to include two decimal places for completion.
ngiseDdnasisy9la5nAm.hti3ro2glAgnitupmoC|noi5tac9ilp.pAn9ohtyPfongiseDehT|toboRdn8are6tupmoCfoslatnemadnuFehT
1 ComputingAlgorithmAnalysisandDesign 95.32 TheDesignofPythonApplication 59.90 TheFundamentalsofComputerandRobot 86.00
Don't participant in ACM but fail the exam.
时间限制: 1s
内存限制:256MB
期末考试成绩出来了,小焕想知道自己挂没挂科,可是学校查询成绩的机器坏掉了,只能输出一条写有神秘信息的乱码,小焕发现乱码里面有各科成绩的信息,可是他太笨了不知道该怎么看,聪明的你可以来帮他看一下他到底挂没挂科还有他的各科成绩都是多少吗?
聪明的你发现了,在乱码中每一科的信息由’|
’字符分割(不含引号),由’|
’字符分割出的段落中字母的倒序排列为该科名称,非字母的字符正序排列为该科成绩。分数低于分视为挂科。
一行字符串,长度不超过,其中包含至少科的信息,成绩范围在至,可能出现小数。小数部分为位或位。
第一行输出或,代表没挂科,代表挂科。
第二行至第科目数加一行输出科目名称与成绩,中间用空格隔开,输出的成绩需要含两位小数补全。
ngiseDdnasisy9la5nAm.hti3ro2glAgnitupmoC|noi5tac9ilp.pAn9ohtyPfongiseDehT|toboRdn8are6tupmoCfoslatnemadnuFehT
1 ComputingAlgorithmAnalysisandDesign 95.32 TheDesignofPythonApplication 59.90 TheFundamentalsofComputerandRobot 86.00
别打ACM打挂科了。
难度等级: | 0 |
总通过次数: | 25 |
总提交次数: | 200 |