P10125 「Daily OI Round 3」Simple 题解
P10125 「Daily OI Round 3」Simple 题解
将字符串和目标串全部转为大写字母,然后直接判断即可。
Code
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<map>
#include<set>
#include<vector>
#include<string>
#include<iostream>
#define ll long long
#define re register
#define inf 0x3f3f3f3f
#define il inline
#define db double
#define F(i,a,b) for(re int i=(a);i<=(b);i++)
#define f(i,a,b) for(re int i=(a);i>=(b);i--)
il int read(){int w=1,c=0;char ch=getchar();for(;ch>'9'||ch<'0';ch=getchar()) if(ch=='-') w=-1;for(;ch>='0'&&ch<='9';ch=getchar()) c=(c<<3)+(c<<1)+ch-48;return w*c;}
void printt(int x){if(x/10) printt(x/10);putchar(x%10+48);}
il void print(int x){if(x<0) putchar('-'),printt(-x);else printt(x);}
il void put(int x){print(x);putchar(' ');}
const int N=1e5+10;
std::string s;
int main()
{
std::cin>>s;
int len=s.size();
F(i,0,len-1) if(s[i]>='a'&&s[i]<='z')
{
s[i]=s[i]-'a'+'A';
}
// std::cout<<s;
if(s=="ACOIPP") return puts("Luogu"),0;
if(s=="SVPOLL") return puts("Genshin"),0;
return puts("Boring"),0;
}