#include <iostream>
#include <cstdio>
#include <queue>
#include <algorithm>
#include <cstring>
#include <string>
#include <string.h>
#include <vector>
#define int long long
#define rep(a,b,c) for(auto a=b;a<=c;++a)
#define per(a,b,c) for(auto a=b;a>=c;--a)
typedef long long LL;
const int N = 1e6 + 10;
const char s[] = {'0','s', 'v', 'p', 'o', 'l', 'l'};
const char G[] = {',','a','c','o','i','p','p'};
char a[N << 2];
namespace Space {
template < typename _Tp > inline
_Tp read() {
auto f = 1, a = 0;
char ch = getchar ();
while (ch < '0' || ch > '9') f = (ch == '-' ? -1 : f), ch = getchar ();
while (ch >= '0' && ch <= '9') a = (a << 1) + (a << 3) + (ch ^ '0'), ch = getchar ();
return{a * f};
}
}
using namespace Space;
void mystrlwr(char *ps) {
while (*ps) {
if ('A' <= *ps && *ps <= 'Z') *ps += 'a' - 'A';
ps ++;
}
}
signed main() {
int k = 0;
while (k <= 6){
a[++ k] = getchar ();
mystrlwr(a + k);
}
for(int i = 1;;++ i) {
if (a[i] == s[i]) std::cout << "Genshin" << '\n', exit(0);
else if (a[i] == G[i]) std::cout << "Luogu" << '\n', exit(0);
else std::cout << "Boring" << '\n', exit(0);
}
}
标签:ch,const,OI,Simple,题解,long,char,include
From: https://www.cnblogs.com/DIOsama/p/18006432