前言
这次天梯赛表现没有达到预期,L1的分没有拿全,L2有2题没考虑完全,总之很愧疚拖了队友后腿。今天先补上L1没拿满分的题。
L1-078 吉老师的回归
输入样例1
5 1
L1-1 is a qiandao problem.
L1-2 is so...easy.
L1-3 is Easy.
L1-4 is qianDao.
Wow, such L1-5, so easy.
输出样例1
L1-4 is qianDao.
输入样例2
5 4
L1-1 is a-qiandao problem.
L1-2 is so easy.
L1-3 is Easy.
L1-4 is qianDao.
Wow, such L1-5, so!!easy.
输出样例2
Wo AK le
思路
用C++ String类的find()函数查找字符串,没找到返回-1.
不了解的小伙伴可以戳这里
代码实现
#include <bits/stdc++.h>