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 1877. Bicycle Codes

Accepted (sudo rm -rf)
Posted by Dan 1 Dec 2012 16:36
//SESC USU SUDO RM -RF

var a,b,c,d,i:integer;
begin
readln(a);
readln(b);
for i:=1 to 10000 do
  begin
    if i mod 2 = 0 then
    if b-c <> 0 then
    c:=c+1
      else d:=d+1
    else if a-c <> 0 then
    c:=c+1
      else d:=d+1;
  end;
case d of
  1..200000 : writeln ('yes');
  0 : writeln ('no');
  end;
end.

Edited by author 01.12.2012 17:39

Edited by author 01.12.2012 17:39

Edited by author 01.12.2012 17:39
Re: Accepted (sudo rm -rf)
Posted by mediant 8 Feb 2013 01:34
no go