ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1893. A380

aici raspunsuri
Posted by tudyrock 25 Oct 2012 13:44
#include<iostream>
using namespace std;
int n;
char c;
int main()
{
cin>>n>>c;
if (n>=1 && n<=2)
{ if(c=='A')
cout<<"window";
if(c=='D')
cout<<"window";
if(c=='B')
cout<<"aisle";
if(c=='C')
cout<<"aisle";
}
if(n>=3 && n<=20)
{ if(c=='A')
cout<<"window";
if(c=='F')
cout<<"window";
if(c=='B')
cout<<"aisle";
if(c=='E')
cout<<"aisle";
if(c=='C')
cout<<"aisle";
if(c=='D')
cout<<"aisle";
}
if(n>=21 && n<=65)
{ if(c=='A')
cout<<"window";
if(c=='K')
cout<<"window";
if(c=='B')
cout<<"neither";
if(c=='C')
cout<<"aisle";
if(c=='D')
cout<<"aisle";
if(c=='E')
cout<<"neither";
if(c=='F')
cout<<"neither";
if(c=='G')
cout<<"aisle";
if(c=='H')
cout<<"aisle";
if(c=='J')
cout<<"neither";
}
return 0;
}
si asta a lui rad

Edited by author 25.10.2012 13:44