#include<bits/stdc++.h>
using namespace std;
const int MX = 10000;
char s[MX + 10];
int n,i,j;
int main(){
cin >> n;
cin >> s;
int f_1 = 0;
int f_2 = 0;
if(s[0] == '|')
{
for(j = 1;j <= n;j++)
{
if(s[j] == '*' && f_1 == 0)
f_2 = 1;
if(s[j] == '|' && f_2 == 1)
f_1 = 1;
}
if(f_1 + f_2 == 2)
{
cout << "in" << endl;
return 0;
}
else
{
cout << "out" << endl;
return 0;
}
}
for(i = 1;i <= n;i++)
{
if(s[i] == '|')
{
for(j = i + 1;j <= n;j++)
{
if(s[j] == '*' && f_1 == 0)
f_2 = 1;
if(s[j] == '|' && f_2 == 1)
f_1 = 1;
}
}
if(f_1 + f_2 == 2)
{
cout << "in" << endl;
return 0;
}
else
{
cout << "out" << endl;
return 0;
}
}
return 0;
}
各位 dalao 帮忙看一下本菜鸡的代码,谢谢。