#include <iostream> using namespace std; int n; int main(){ while(cin>>n){ int a=0,b=0; while(n--){ string s; cin>>s; if(s=="L1") a--; else if(s=="R1") a++; else if(s=="B1") b--; else if(s=="F1") b++; } int x,y; cin>>x>>y; if(x==a&&y==b) cout<<"MEME IS SO LUCKY"<<endl; else cout<<"GPS ERROR"<<endl; } return 0; } |
Double click to view unformatted code.