-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1893.cpp
69 lines (69 loc) · 1.13 KB
/
1893.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include"iomanip"
#include"iostream"
#include"limits"
#include"cmath"
#include"vector"
#include"algorithm"
#include"list"
#include"queue"
#include"stack"
#include"set"
#include"unordered_set"
#include"map"
#include"unordered_map"
#include"string"
#include"cstring"
#include"assert.h"
using namespace std;
#define ff first
#define ss second
#define all(v) v.begin(),v.end()
#define mp make_pair
#define pb push_back
#define mset(a,b) memset(a,b,sizeof(a))
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string x;
cin>>x;
string y=x.substr(0,x.length()-1);
int len=y.length();
int n;
char c=x[x.length()-1];
if(len==1)
n=y[0]-'0';
else
{
n=(y[1]-'0')+10*(y[0]-'0');
}
if(n<=2)
{
if(c=='A'||c=='D')
cout<<"window\n";
else cout<<"aisle\n";
return 0;
}
if(n<=20)
{
if(c=='A'||c=='F')
cout<<"window\n";
else cout<<"aisle\n";
return 0;
}
auto a=string::npos;
string b="AK",d="BEFJ";
if(b.find(c)!=a)
{
cout<<"window\n";
}
else if(d.find(c)!=a)
{
cout<<"neither\n";
}
else cout<<"aisle\n";
}