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

test 1 dan qaytvotti xatosi qatta?
Posted by Chornovek 20 Nov 2012 17:42
VAR
s:string;
k,n,l,c:Longint;
begin
read(s);      l:=length(s);
val(s,n,c);
if (n<3) and (n>0) then
begin
k:=0;
    case s[l] of
    'a','A': write('window');
    'D','d': write('window');
    'b','B': write('aisle');
    'c','C': write('aisle');
    end;
end;
if (n>=3) and (n<=20) then
begin
k:=0;
    case s[l] of
    'a','A': write('window');
    'f','F': write('window');
    'b','B': write('aisle');
    'd','D': write('aisle');
    'E','e': write('aisle');
    'c','C': write('aisle');
    end;
end;
if (n>=21) and (n<=65) then
begin
k:=0;
    case s[l] of
    'a','A': write('window');
    'k','K': write('window');
    'g','G': write('aisle');
    'd','D': write('aisle');
    'h','H': write('aisle');
    'c','C': write('aisle');
    'b','B': write('neither');
    'e','E': write('neither');
    'f','F': write('neither');
    'J','j': write('neither');
    end;
end;
if n>65 then  write('neither');
end.

Edited by author 20.11.2012 23:14
Re: test 1 dan qaytvotti xatosi qatta?
Posted by IRussianGamerI 17 Feb 2020 14:26
Please, write your messages in English, because it's international language. We, Russians, don't understand O'zbek