现在变成50分了
```c
#include <bits/stdc++.h>
using namespace std;
long long n,m,c,d,e;
char a,s[301][301];
int main(){
cin>>n>>m>>a;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cin>>s[i][j];
if(s[i][j]=='x'){
e++;
}
}
}
if(e==0){
cout<<"OK";
return 0;
}
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
if(s[i][j]=='o'){
if(a=='v'){
for(int o=i;o<=n;o++){
if(s[o][j]=='x'){
cout<<"GG";
return 0;
}
}
}
else if(a=='>'){
for(int o=j;o<=m;o++){
if(s[i][o]=='x'){
cout<<"GG";
return 0;
}
}
}
else if(a=='<'){
for(int o=j;o<=m;o--){
if(s[i][o]=='x'){
cout<<"GG";
return 0;
}
}
}
else if(a=='^'){
for(int o=i;o<=n;o--){
if(s[o][j]=='x'){
cout<<"GG";
return 0;
}
}
}
}
}
}
cout<<"OK";
return 0;
}
```
by jngrkek11 @ 2024-04-18 16:57:08
不用管了已AC
[AC](https://www.luogu.com.cn/record/156211343)
by jngrkek11 @ 2024-04-18 17:20:32