题目链接:https://ac.nowcoder.com/acm/contest/5668/L
手速签到题
代码:
#include<bits/stdc++.h> using namespace std; int main() { string s; cin >>s; if((s[0]=='L'||s[0]=='l')&&(s[1]=='O'||s[1]=='o')&&(s[2]=='V'||s[2]=='v')&&(s[3]=='E'||s[3]=='e')&&(s[4]=='L'||s[4]=='l')&&(s[5]=='Y'||s[5]=='y')) cout << "lovely" << endl; else { cout << "ugly" << endl; } }