Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define INF 1 << 30
- #define mp make_pair
- #define pb push_back
- #define ii pair<int,int>
- #define OK cout<<"OK"<<endl
- #define debug(x) cout << #x " = " << (x) << endl
- #define ff first
- #define ss second
- #define int long long
- int adj[6][256];
- signed main () {
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- for(int i = 0; i < 6; i++)
- adj[i]['z'] = 1;
- int arr[] = {'#', 'e', 'l', 'd', 'a'};
- for(int i = 1; i < 5; i++) {
- adj[i][arr[i]] = i+1;
- }
- string x;
- cin >> x;
- for(char &c: x) {
- c = tolower(c);
- }
- int state = 0;
- for(int i = 0; i < x.size(); i++) {
- state = adj[state][x[i]];
- if(state == 5) {
- cout << "Link Bolado" << endl;
- return 0;
- }
- }
- cout << "Link Tranquilo" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement