Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么这样会错?

Posted by wintokk at 2005-03-22 19:44:44 on Problem 2311
{
我的想法:
2*2,2*3,3*3都是必败的,我们姑且称之为"必败方块",其余的为"必胜方块",一个"必胜方块"可以分解为两个"必胜方块"(不能有边长为1)或者两个"必败方块",这样在选择策略时保证"必胜方块"的个数是偶数就能保证取胜.

请问有什么不正确的地方吗?
}
var
  x,y:longint;
begin
  while not seekeof do
  begin
    read(x,y);
    if (x<=3)and(y<=3)or(x<=3)and(y=7)or(x=7)and(y<=3)or(x=7)and(y=7) then
      writeln('LOSE') else
      writeln('WIN');
  end;
end.

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator