tbug1071.pp 713 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. var i: int64;
  2. il: longint;
  3. begin
  4. for il:=-20 to 20 do
  5. begin
  6. i:=il;
  7. case i of
  8. -3:
  9. if (i<>-3) then
  10. halt(1);
  11. -7..-5:
  12. if (i<-7) or (i>-5) then
  13. halt(1);
  14. -9..-8:
  15. if (i<-9) or (i>-8) then
  16. halt(1);
  17. 0:
  18. if (i<>0) then
  19. halt(1);
  20. 1:
  21. if (i<>1) then
  22. halt(1);
  23. 2:
  24. if (i<>2) then
  25. halt(1);
  26. 3..6:
  27. if (i<3) or (i>6) then
  28. halt(1);
  29. 8..10:
  30. if (i<8) or (i>10) then
  31. halt(1);
  32. end;
  33. end;
  34. halt(0);
  35. end.