摘要:
A LL “LL是什么?这都不知道的话,别说自己是程序猿啊!” “longlong?” “。。。肯定是LoveLive啊!” qwb为了检验你是否是真正的程序猿,决定出道题考考你:现在程序会输入一行字符串,如果恰好是lovelive(不区分大小写)就输出yes,否则输出no。 输入描述: 输出描述: 阅读全文
摘要:
链接:https://www.nowcoder.com/acm/contest/83/B来源:牛客网 题目描述 第一次期中考终于结束啦!沃老师是个语文老师,他在评学生的作文成绩时,给每位学生的分数都是一个小于10的非负小数。 Amy 8.9999999999999999999999999999999 阅读全文
摘要:
Pushok the dog has been chasing Imp for a few hours already. Fortunately, Imp knows that Pushok is afraid of a robot vacuum cleaner. While moving, the 阅读全文
摘要:
A. Cloning Toys Recently, he found a machine that can clone plush toys. Imp knows that if he applies the machine to an original toy, he additionally g 阅读全文
摘要:
A. Water The Garden A. Water The Garden It is winter now, and Max decided it's about time he watered the garden. The garden can be represented as n co 阅读全文
摘要:
You are given a graph with n nodes and m directed edges. One lowercase letter is assigned to each node. We define a path's value as the number of the 阅读全文
摘要:
A. Supermarket We often go to supermarkets to buy some fruits or vegetables, and on the tag there prints the price for a kilo. But in some supermarket 阅读全文
摘要:
中缀式对于人来说很好计算,但对于计算机来说就很麻烦了。 统计计算机算,考研将中缀式转换为后缀式来计算。 比如中缀式:(1+2)*3-4 转换为后缀式:12+3*4- 后缀式的计算:从左到有遍历,遇见运算符式,将前面的两个值进行计算。 以(1+2)*3-4为例,它的后缀式是:12+3*4- 1、第一个 阅读全文
摘要:
使用正则表达式 1、实现加减乘除及拓号优先级解析2、用户输入 1 - 2 * ( (60-30 +(-40/5) * (9-2*5/3 + 7 /3*99/4*2998 +10 * 568/14 )) - (-4*3)/ (16-3*2) )等类似公式后,必须自己解析里面的(),+,-,*,/符号和 阅读全文